The Generated Code Dialog |
![]() |
Above we have the code dialog, which can be opened from the SELECT, UPDATE, CREATE,
INSERT or DELETE statement dialogs, by using the "CodeIt!" button. The aim of this dialog
is to provide a means for copying the generated code and putting it into an
IDE environment for processing. This is done either by selecting the code in the
dialog and hitting CNTRL-C or by using the button "Copy to Clipboard and Close". This
will copy the code in the format shown and close the window. It can then be pasted using CNTRL-V. The generated code format can be changed so that the open bracket '{' is placed on a new line. This therefore supports the main two coding formats available. The actual code generated represents a separate class, but all the code, except the main and outer class, can be pasted into an existing class. The code itself contains all the required components to control information and procedural flow within the application from connection, to statement creation with serialisation, to finally providing the listener that receives the data. Some modifications may be required if many statements are being run simultaneously. For example, if we decide to update one database with data from another, then we will have 2 connections and at least 2 statements (1 INSERT and 1 SELECT that feeds the data). As the result is returned in the rowset listener we need to check for the statement by using its ID, so that we know when to exit the application. Furthermore, the logs that are generated during execution will provide status information. |
![]() |