public class Parameters extends Object
QueryBuilder
.Modifier and Type | Method and Description |
---|---|
Parameters |
addNegatedParameters()
Adds negated parameters, by default with the "and" connective.
|
void |
addNotNullRestriction(String propertyName,
boolean addAlias)
Adds
IS NOT NULL restriction. |
void |
addNullRestriction(String propertyName,
boolean addAlias)
Adds
IS NULL restriction. |
Parameters |
addSubParameters(String newConnective)
Adds sub-parameters with a new connective.
|
void |
addWhere(String left,
boolean addAlias,
String op,
QueryBuilder right) |
void |
addWhere(String left,
boolean addAliasLeft,
String op,
String right,
boolean addAliasRight) |
void |
addWhere(String left,
String op,
QueryBuilder right) |
void |
addWhere(String left,
String op,
String right) |
void |
addWhereWithNamedParam(String left,
boolean addAlias,
String op,
String paramName) |
void |
addWhereWithNamedParam(String left,
String op,
String paramName) |
void |
addWhereWithParam(String left,
boolean addAlias,
String op,
Object paramValue) |
void |
addWhereWithParam(String left,
String op,
Object paramValue) |
void |
addWhereWithParams(String left,
String opStart,
Object[] paramValues,
String opEnd) |
public static final String AND
public static final String OR
public Parameters addSubParameters(String newConnective)
newConnective
- New connective of the parameters.public Parameters addNegatedParameters()
public void addNullRestriction(String propertyName, boolean addAlias)
IS NULL
restriction.propertyName
- Property name.addAlias
- Positive if an alias to property name shall be added.public void addNotNullRestriction(String propertyName, boolean addAlias)
IS NOT NULL
restriction.propertyName
- Property name.addAlias
- Positive if an alias to property name shall be added.public void addWhere(String left, boolean addAliasLeft, String op, String right, boolean addAliasRight)
public void addWhereWithParam(String left, boolean addAlias, String op, Object paramValue)
public void addWhereWithNamedParam(String left, boolean addAlias, String op, String paramName)
public void addWhereWithParams(String left, String opStart, Object[] paramValues, String opEnd)
public void addWhere(String left, String op, QueryBuilder right)
public void addWhere(String left, boolean addAlias, String op, QueryBuilder right)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.