public class Parameters
extends java.lang.Object
QueryBuilder
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AND |
static java.lang.String |
OR |
Modifier and Type | Method and Description |
---|---|
Parameters |
addNegatedParameters()
Adds negated parameters, by default with the "and" connective.
|
void |
addNotNullRestriction(java.lang.String propertyName,
boolean addAlias)
Adds
IS NOT NULL restriction. |
void |
addNotNullRestriction(java.lang.String alias,
java.lang.String propertyName)
Adds
IS NOT NULL restriction. |
void |
addNullRestriction(java.lang.String propertyName,
boolean addAlias)
Adds
IS NULL restriction. |
void |
addNullRestriction(java.lang.String alias,
java.lang.String propertyName)
Adds
IS NULL restriction. |
Parameters |
addSubParameters(java.lang.String newConnective)
Adds sub-parameters with a new connective.
|
void |
addWhere(java.lang.String left,
boolean addAlias,
java.lang.String op,
QueryBuilder right) |
void |
addWhere(java.lang.String left,
boolean addAliasLeft,
java.lang.String op,
java.lang.String right,
boolean addAliasRight) |
void |
addWhere(java.lang.String leftAlias,
java.lang.String left,
java.lang.String op,
QueryBuilder right) |
void |
addWhere(java.lang.String aliasLeft,
java.lang.String left,
java.lang.String op,
java.lang.String aliasRight,
java.lang.String right) |
void |
addWhereOrNullRestriction(java.lang.String left,
boolean addAliasLeft,
java.lang.String op,
java.lang.String right,
boolean addAliasRight)
Add where clause with a null restriction: (left = right or (left is null and right is null))
|
void |
addWhereWithFunction(java.lang.String alias,
java.lang.String left,
java.lang.String leftFunction,
java.lang.String op,
java.lang.Object paramValue) |
void |
addWhereWithNamedParam(java.lang.String left,
boolean addAlias,
java.lang.String op,
java.lang.String paramName) |
void |
addWhereWithNamedParam(java.lang.String left,
java.lang.String op,
java.lang.String paramName) |
void |
addWhereWithParam(java.lang.String left,
boolean addAlias,
java.lang.String op,
java.lang.Object paramValue) |
void |
addWhereWithParam(java.lang.String left,
java.lang.String op,
java.lang.Object paramValue) |
void |
addWhereWithParam(java.lang.String alias,
java.lang.String left,
java.lang.String op,
java.lang.Object paramValue) |
void |
addWhereWithParams(java.lang.String alias,
java.lang.String left,
java.lang.String opStart,
java.lang.Object[] paramValues,
java.lang.String opEnd) |
Parameters |
deepCopy() |
public static final java.lang.String AND
public static final java.lang.String OR
public Parameters deepCopy()
public Parameters addSubParameters(java.lang.String newConnective)
newConnective
- New connective of the parameters.public Parameters addNegatedParameters()
public void addNullRestriction(java.lang.String propertyName, boolean addAlias)
IS NULL
restriction.propertyName
- Property name.addAlias
- Positive if an alias to property name shall be added.public void addNullRestriction(java.lang.String alias, java.lang.String propertyName)
IS NULL
restriction.alias
- the alias which should be added to the property name.propertyName
- Property name.public void addNotNullRestriction(java.lang.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(java.lang.String alias, java.lang.String propertyName)
IS NOT NULL
restriction.alias
- the alias which should be added to the property name.propertyName
- Property name.public void addWhere(java.lang.String left, boolean addAliasLeft, java.lang.String op, java.lang.String right, boolean addAliasRight)
public void addWhere(java.lang.String aliasLeft, java.lang.String left, java.lang.String op, java.lang.String aliasRight, java.lang.String right)
public void addWhereWithFunction(java.lang.String alias, java.lang.String left, java.lang.String leftFunction, java.lang.String op, java.lang.Object paramValue)
public void addWhereWithParam(java.lang.String left, java.lang.String op, java.lang.Object paramValue)
public void addWhereWithParam(java.lang.String alias, java.lang.String left, java.lang.String op, java.lang.Object paramValue)
public void addWhereWithParam(java.lang.String left, boolean addAlias, java.lang.String op, java.lang.Object paramValue)
public void addWhereWithNamedParam(java.lang.String left, java.lang.String op, java.lang.String paramName)
public void addWhereWithNamedParam(java.lang.String left, boolean addAlias, java.lang.String op, java.lang.String paramName)
public void addWhereWithParams(java.lang.String alias, java.lang.String left, java.lang.String opStart, java.lang.Object[] paramValues, java.lang.String opEnd)
public void addWhere(java.lang.String left, boolean addAlias, java.lang.String op, QueryBuilder right)
public void addWhere(java.lang.String leftAlias, java.lang.String left, java.lang.String op, QueryBuilder right)
public void addWhereOrNullRestriction(java.lang.String left, boolean addAliasLeft, java.lang.String op, java.lang.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 © 2001-2018 Red Hat, Inc. All Rights Reserved.