public class SQLMap.SelectBuilder

  1. Object
  2. SQLMap.SelectBuilder
Used to build the where statement as a builder pattern

Methods

public SQLMap.SelectBuilder orderBy(PropertyBase property, boolean ascending)An orderBy clause
public SQLMap.SelectBuilder equals(PropertyBase property)An equals = operator
public SQLMap.SelectBuilder notEquals(PropertyBase property)A not equals <> operator
public SQLMap.SelectBuilder gt(PropertyBase property)A greater that > operator
public SQLMap.SelectBuilder lt(PropertyBase property)A lesser than < operator
public List<PropertyBusinessObject> build(PropertyBusinessObject obj, int maxElements, int page) throws IOException, InstantiationException

Inherited methods

Method details

orderBy

public SQLMap.SelectBuilder orderBy(PropertyBase property, boolean ascending)
An orderBy clause

Parameters

property PropertyBase
the property
ascending boolean
direction of the order by

Returns

the builder instance

equals

public SQLMap.SelectBuilder equals(PropertyBase property)
An equals = operator

Parameters

property PropertyBase
the property

Returns

the builder instance

notEquals

public SQLMap.SelectBuilder notEquals(PropertyBase property)
A not equals <> operator

Parameters

property PropertyBase
the property

Returns

the builder instance

gt

public SQLMap.SelectBuilder gt(PropertyBase property)
A greater that > operator

Parameters

property PropertyBase
the property

Returns

the builder instance

lt

public SQLMap.SelectBuilder lt(PropertyBase property)
A lesser than < operator

Parameters

property PropertyBase
the property

Returns

the builder instance

build

public List<PropertyBusinessObject> build(PropertyBusinessObject obj, int maxElements, int page) throws IOException, InstantiationException