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, setSeparatorappendToBuffer, argsToString, getStartOffset, getTextOrNull, getTextOrNull, setStartOffset, surroundWithBrackets, surroundWithBrackets, toStringsetParentcheckInit, checkInit, fireObjectUpdated, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitializationaddObjectListener, 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, setPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetParent, setParentaddObjectListener, copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getReferenceIDs, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setNamegetProperty, getProperty, setProperties, setPropertypublic 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()
DBObjectgetType in interface DBObjectgetType in class AbstractSQLFragmentpublic void setOperator(int logic)
public int getOperator()
public java.lang.String getOperatorText()
getOperatorText in class Operationpublic static boolean isWhereOperator(int logic)
public static java.lang.String getOperatorText(int logic)