Package net.tirasa.connid.commons.db
Class FilterWhereBuilder
java.lang.Object
net.tirasa.connid.commons.db.FilterWhereBuilder
The Filter Where builder is component intended to be used within subclass of *
AbstractFilterTranslator to help create the database WHERE query clause.
The main functionality of this helper class is create SQL WHERE query clause
The builder can return a List of params to be used within preparedStatement creation
- Since:
- 1.0
- Version:
- $Revision 1.0$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd name value pair bindings with operator, this is lazy bindings resolved atgetWhereClause()voidAdd null value.getWhere()booleanisIn()There is a need to put the content into bracketsvoidjoin(String operator, FilterWhereBuilder l, FilterWhereBuilder r) Compound join operator
-
Constructor Details
-
FilterWhereBuilder
public FilterWhereBuilder()
-
-
Method Details
-
join
Compound join operator- Parameters:
operator- AND/ORl- leftFilterQueryBuilerr- rightFilterQueryBuiler
-
getParams
- Returns:
- the params
-
getWhere
- Returns:
- the where
-
addBind
Add name value pair bindings with operator, this is lazy bindings resolved atgetWhereClause()- Parameters:
param- value to builderoperator- an operator to comparelowercase- whether case-insensitive comparison should be performed- See Also:
-
addNull
Add null value.- Parameters:
name- of the column- See Also:
-
isIn
public boolean isIn()There is a need to put the content into brackets- Returns:
- boolean a in
-
getWhereClause
- Returns:
- the where clause as a String
-