Class GenericFunctionSelectField

All Implemented Interfaces:
Serializable

public class GenericFunctionSelectField extends GenericSelectField
Allows to specify a function to be applied to a generic select field.

Example:

To get a query like this:

        SELECT MAX( {code} ) FROM {Product} ...
 

you do this:

 GenericQuery q = new GenericQuery("Product");

 q.addSelectField(new GenericFunctionSelectField("code", "MAX"));
 
See Also: