public class SQLMap.SelectBuilder
- Object
- SQLMap.SelectBuilder
Used to build the where statement as a builder pattern
Methods
Inherited methods
Method details
orderBy
public SQLMap.SelectBuilder orderBy(PropertyBase property, boolean ascending)An orderBy clause
Parameters
propertyPropertyBase- the property
ascendingboolean- direction of the order by
Returns
the builder instance
equals
public SQLMap.SelectBuilder equals(PropertyBase property)An equals
= operatorParameters
propertyPropertyBase- the property
Returns
the builder instance
notEquals
public SQLMap.SelectBuilder notEquals(PropertyBase property)A not equals
<> operatorParameters
propertyPropertyBase- the property
Returns
the builder instance
gt
public SQLMap.SelectBuilder gt(PropertyBase property)A greater that
> operatorParameters
propertyPropertyBase- the property
Returns
the builder instance
lt
public SQLMap.SelectBuilder lt(PropertyBase property)A lesser than
< operatorParameters
propertyPropertyBase- the property
Returns
the builder instance
build
public List<PropertyBusinessObject> build(PropertyBusinessObject obj, int maxElements, int page)
throws IOException, InstantiationException