Graph composer

In the query template file, an optional graph composer Java class can be specified in the ENTITY section within the PROFILE block. This Java class allows you to augment the final graph of physical SDOs. It can perform data aggregation from other sources and can merge multiple graphs of physical SDOs into a single graph if there is more than one associated SQL statement defined in the profile for the base table object.

The graph composer is needed for two-step queries that use multiple association SQL statements. You need to implement your own graph composer only if the result sets of the association SQL statements retrieve identical records from tables other than the base table.

If specified, the graph composer must subclass from the abstract class and implement the abstract composeGraph() method.

For example:



<!-- must subclass from -->
<!-- used to compose the final graph --> 
<!-- if more than one associated SQL statement defined -->