Using the Query Builder Platform to Generate Code
You can also use the query builder platform to generate Java source that implements the query builder defined by the configuration file. The generated Java source extends and uses classes contained in the query builder platform JAR file (TIB_tps_qbp.jar). Therefore, you must include the TIB_tps_qbp.jar file in the class path of any application that uses the generated query builder classes. However, the full configuration file is not needed at run time.
| — | For generated single table record matching queries, a configuration file is not required at run time. The exception is when a custom query builder class requires a configuration file. |
| — | For compound record matching queries a run time configuration file is required that defines the options for the compound query builder. The tool generates this configuration. |
In most cases, no practical advantage is realized by using the generated code. It might run slightly faster, however in most cases the performance difference is not noticeable. Avoiding the need for loading configurations might be an advantage in certain applications where a file system or other data store is not available. The primary use for generating the Java source is where manual editing is necessary to provide special functionality. The general query structure can be generated from a configuration, and then customized manually.