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 |
addNotNullRestriction(String alias,
String propertyName)
Adds
IS NOT NULL restriction. |
void |
addNullRestriction(String propertyName,
boolean addAlias)
Adds
IS NULL restriction. |
void |
addNullRestriction(String alias,
String propertyName)
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 leftAlias,
String left,
String op,
QueryBuilder right) |
void |
addWhere(String aliasLeft,
String left,
String op,
String aliasRight,
String right) |
void |
addWhereOrNullRestriction(String left,
boolean addAliasLeft,
String op,
String right,
boolean addAliasRight)
Add where clause with a null restriction: (left = right or (left is null and right is null))
|
void |
addWhereWithFunction(String alias,
String left,
String leftFunction,
String op,
Object paramValue) |
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 |
addWhereWithParam(String alias,
String left,
String op,
Object paramValue) |
void |
addWhereWithParams(String alias,
String left,
String opStart,
Object[] paramValues,
String opEnd) |
Parameters |
deepCopy() |
public static final String AND
public static final String OR
public Parameters deepCopy()
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 addNullRestriction(String alias, String propertyName)
IS NULL
restriction.alias
- the alias which should be added to the property name.propertyName
- Property name.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 addNotNullRestriction(String alias, String propertyName)
IS NOT NULL
restriction.alias
- the alias which should be added to the property name.propertyName
- Property name.public void addWhere(String left, boolean addAliasLeft, String op, String right, boolean addAliasRight)
public void addWhere(String aliasLeft, String left, String op, String aliasRight, String right)
public void addWhereWithFunction(String alias, String left, String leftFunction, String op, Object paramValue)
public void addWhereWithParam(String alias, String left, String op, Object paramValue)
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 alias, String left, String opStart, Object[] paramValues, String opEnd)
public void addWhere(String left, boolean addAlias, String op, QueryBuilder right)
public void addWhere(String leftAlias, String left, String op, QueryBuilder right)
public void addWhereOrNullRestriction(String left, boolean addAliasLeft, String op, String right, boolean addAliasRight)
left
- Left property name.addAliasLeft
- Whether to add the alias to the left property.op
- The operator.right
- Right property name.addAliasRight
- Whether to add the alias to the right property.Copyright © 2021 JBoss by Red Hat. All rights reserved.