Registering a Query Type

If it does not already exist, create a file called configuration-root/com/escenic/framework/datasource/DatasourceEditorConfig.properties in one of your configuration layers and register your query type as follows:

query.number = query-definition 

where:

  • number is an integer used to distinguish multiple query entries from each other

  • query-definition is the full path of the query type definition file within the query definition .jar file you deployed

You should add one such line for each query type you have deployed in the .jar file. So for the example .jar file structure shown in Deploying a Query Type Definition, you should enter something like this:

query.1001 = /com/mycompany/datasource/query/customQuery1.xml
query.1002 = /com/mycompany/datasource/query/customQuery2.xml
query.1003 = /com/mycompany/datasource/query/customQuery3.xml