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