Controlling how pureQuery utilities process interfaces

The interface-level @Group annotation lets you control the pureQuery Generator and StaticBinder utility options for the interface in a named group. You can also control related interfaces that have similar characteristics in your project. The name specified in this annotation corresponds to a name specified on a groupOptions entry in the options file for one or both of those utilities.
Read syntax diagramSkip visual syntax diagram
>>-@Group--(--group_name--)------------------------------------><

To understand the conventions that are used in the syntax diagram, see How to read syntax diagrams.

The interface-level @Group annotation specifies the value used with the option groupOptions. The value group_name is case sensitive. To control how the utility creates implementation classes for the interface, you specify the option with the Generator utility. To control the bind options specified when a bind operation is performed with the interface, you specify the option with the StaticBinder utility.

Use the annotation and option to specify settings for groups of pureQuery interfaces when you generate implementations for the annotated methods in the interface. The annotation is also used when you perform bind operations on the annotated methods in the interface.

The following example @Group annotation is specified for the interface CalculateTax:
@Group ("Payroll")
public Interface CalculateTax {
…
}
When the following groupOptions option is specified in a Generator utility options file, the Generator utility generates implementation classes for interface CalculateTax with the specified option settings.
groupOptions.Payroll= -collection Payroll -url "jdbc:db2://com.prod.hr:50000/DB01" 
If you specify the option groupOptions.Payroll in a StaticBinder utility options file, the StaticBinder utility performs a bind operation on the annotated methods in the interface CalculateTax with the specified option settings.
groupOptions.Payroll -bindOptions "QUALIFIER(Payroll), COLLECTION(Payroll)" -url "jdbc:db2://com.prod.hr:50000/DB01"  

Feedback