public abstract class DBOperator extends Object implements Serializable
Support DBvolution at Patreon
| Constructor and Description |
|---|
DBOperator()
Create a DBOperator with all NULL values.
|
DBOperator(DBExpression first)
Create a DBOperator with the first parameter specified.
|
DBOperator(DBExpression first,
DBExpression second)
Create a DBOperator with first and second parameters specified.
|
DBOperator(DBExpression first,
DBExpression second,
DBExpression third)
Create a DBOperator with first, second, and third parameters specified.
|
| Modifier and Type | Method and Description |
|---|---|
abstract DBOperator |
copyAndAdapt(QueryableDatatypeSyncer.DBSafeInternalQDTAdaptor typeAdaptor)
Adds TypeAdaptor support to DBOperator.
|
boolean |
equals(Object otherObject) |
abstract BooleanExpression |
generateWhereExpression(DBDefinition db,
DBExpression column)
Create the expression to be used in the query generation.
|
DBExpression |
getFirstValue()
Support DBvolution at Patreon |
DBExpression |
getSecondValue()
Support DBvolution at Patreon |
DBExpression |
getThirdValue()
Support DBvolution at Patreon |
int |
hashCode() |
void |
includeNulls()
Makes this operator treat NULL values as if they match the operator.
|
void |
invertOperator(Boolean invertOperator)
Make this operator an exclusive rather than inclusive comparison.
|
void |
not()
Make this operator an exclusive rather than inclusive comparison.
|
void |
setFirstValue(DBExpression firstValue) |
void |
setSecondValue(DBExpression secondValue) |
void |
setThirdValue(DBExpression thirdValue) |
public DBOperator()
public DBOperator(DBExpression first)
first - the first parameter of the operator.public DBOperator(DBExpression first, DBExpression second)
first - the first parameter of the operator.second - the second parameter of the operator.public DBOperator(DBExpression first, DBExpression second, DBExpression third)
first - the first parameter of the operator.second - the second parameter of the operator.third - the third expression of the operator.public void invertOperator(Boolean invertOperator)
Basically switches the operator from, for instance, "==" to "!=".
invertOperator - public void not()
Basically switches the operator from, for instance, "==" to "!=".
public void includeNulls()
Basically this means an equals operation becomes an (equals or null) operation.
public abstract DBOperator copyAndAdapt(QueryableDatatypeSyncer.DBSafeInternalQDTAdaptor typeAdaptor)
typeAdaptor - Support DBvolution at Patreon
public abstract BooleanExpression generateWhereExpression(DBDefinition db, DBExpression column)
db - column - Support DBvolution at Patreon
public DBExpression getFirstValue()
Support DBvolution at Patreon
public void setFirstValue(DBExpression firstValue)
firstValue - the firstValue to setpublic DBExpression getSecondValue()
Support DBvolution at Patreon
public void setSecondValue(DBExpression secondValue)
secondValue - the secondValue to setpublic DBExpression getThirdValue()
Support DBvolution at Patreon
public void setThirdValue(DBExpression thirdValue)
thirdValue - the thirdValue to setCopyright © 2017. All Rights Reserved.