public class WhereObject extends Operation
| Modifier and Type | Class and Description |
|---|---|
static class |
WhereObject.WhereOperator
Valid operators for a WhereObject.
|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
AS, COMMA, DEFAULT_SEPARATOR, EMPTY, EMPTY_ARRAY, INDENT, LEFT_PAREN, NEWLINE, RIGHT_PAREN, SPACE| Constructor and Description |
|---|
WhereObject()
Creates an empty WhereObject.
|
WhereObject(SQLFragment exp)
Where object with only one clause.
|
WhereObject(SQLFragment[] expressions,
WhereObject.WhereOperator logic)
Creates a WhereObject with the given expressions.
|
| Modifier and Type | Method and Description |
|---|---|
WhereObject.WhereOperator |
getOperator()
Gets whether this is an AND or OR condition.
|
java.lang.String |
getOperatorText() |
java.lang.String |
getType()
Returns the type of this object.
|
void |
setOperator(WhereObject.WhereOperator logic)
Sets whether this is an AND or OR condition.
|
addArgument, addArgument, addArguments, checkArgument, checkNewSize, copyToImpl, equalsImpl, getArgumentCount, getArguments, getDataTypeID, getDistinctText, getSeparator, getSQLText, removeArgument, setArguments, setCommutative, setFunctionFormat, setSeparatorappendToBuffer, appendToBuffer, argsToString, getName, getStartOffset, getTextOrNull, getTextOrNull, setStartOffset, surroundWithBrackets, surroundWithBrackets, toStringsetParentcheckInit, checkInit, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization, processPropertyChange, setIDaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setName, setProperties, setPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetStartOffsetgetParent, setParentaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName, setProperties, setPropertypublic static final java.lang.String TYPE
public WhereObject()
public WhereObject(SQLFragment exp)
public WhereObject(SQLFragment[] expressions, WhereObject.WhereOperator logic)
public java.lang.String getType()
DBObjectgetType in interface DBObjectgetType in class AbstractSQLFragmentpublic void setOperator(WhereObject.WhereOperator logic)
public WhereObject.WhereOperator getOperator()
public java.lang.String getOperatorText()
getOperatorText in class Operation