T - public class DBPermittedValuesOperator<T> extends DBOperator
Support DBvolution at Patreon
| Modifier and Type | Field and Description |
|---|---|
protected DBOperator |
operator |
| Constructor and Description |
|---|
DBPermittedValuesOperator(Collection<T> permitted)
Provides an operator that checks that the column matches the provided
values.
|
DBPermittedValuesOperator(T... permitted)
Provides an operator that checks that the column matches the provided
values.
|
| Modifier and Type | Method and Description |
|---|---|
DBOperator |
copyAndAdapt(QueryableDatatypeSyncer.DBSafeInternalQDTAdaptor typeAdaptor)
Adds TypeAdaptor support to DBOperator.
|
BooleanExpression |
generateWhereExpression(DBDefinition db,
DBExpression column)
Create the expression to be used in the query generation.
|
void |
invertOperator(Boolean invertOperator)
Make this operator an exclusive rather than inclusive comparison.
|
void |
not()
Make this operator an exclusive rather than inclusive comparison.
|
equals, getFirstValue, getSecondValue, getThirdValue, hashCode, includeNulls, setFirstValue, setSecondValue, setThirdValueprotected DBOperator operator
public DBPermittedValuesOperator(Collection<T> permitted)
permitted - a list of strings that are permitted values.public DBPermittedValuesOperator(T... permitted)
permitted - a list of strings that are permitted values.public DBOperator copyAndAdapt(QueryableDatatypeSyncer.DBSafeInternalQDTAdaptor typeAdaptor)
DBOperatorcopyAndAdapt in class DBOperatortypeAdaptor - Support DBvolution at Patreon
public BooleanExpression generateWhereExpression(DBDefinition db, DBExpression column)
DBOperatorgenerateWhereExpression in class DBOperatorcolumn - Support DBvolution at Patreon
public void invertOperator(Boolean invertOperator)
DBOperatorBasically switches the operator from, for instance, "==" to "!=".
invertOperator in class DBOperatorpublic void not()
DBOperatorBasically switches the operator from, for instance, "==" to "!=".
not in class DBOperatorCopyright © 2017. All Rights Reserved.