public class ArithmeticOperation extends Operation
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description |
|---|---|
static int |
ADD
Add
|
static int |
DIVIDE
Divide
|
static int |
MULTIPLY
Multiply
|
static int |
NEGATE
Negate
|
static int |
SUBTRACT
Subtract
|
COMMA, DEFAULT_SEPARATOR, EMPTY, EMPTY_ARRAY, INDENT, NEWLINE, SPACE| Constructor and Description |
|---|
ArithmeticOperation() |
ArithmeticOperation(int operator, SQLFragment[] args) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
equalsImpl(AbstractDBObject target)
Equals implementation for testing equality with another AbstractDBObject.
|
static java.lang.String |
getArithmeticOperation(int operandType) |
static int |
getArithmeticOperation(java.lang.String operator, int operandCount)
Returns the operation code for the given text.
|
int |
getOperator() |
java.lang.String |
getOperatorText() |
java.lang.String |
getSQLText()
Returns the complete SQL representation for this Function fragment.
|
static boolean |
isArithmeticOperation(int operandType) |
void |
setOperator(int operator) |
addArgument, addArgument, addArguments, checkArgument, checkNewSize, copyToImpl, getArgumentCount, getArguments, getDistinctText, getSeparator, removeArgument, setArguments, setCommutative, setFunctionFormat, setSeparatorappendToBuffer, argsToString, getStartOffset, getTextOrNull, getTextOrNull, getType, 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 int ADD
public static final int SUBTRACT
public static final int MULTIPLY
public static final int DIVIDE
public static final int NEGATE
public ArithmeticOperation()
public ArithmeticOperation(int operator,
SQLFragment[] args)
public int getOperator()
public void setOperator(int operator)
public java.lang.String getSQLText()
getSQLText in interface SQLFragmentgetSQLText in class Operationpublic java.lang.String getOperatorText()
getOperatorText in class Operationprotected boolean equalsImpl(AbstractDBObject target)
AbstractDBObjectequalsImpl in class Operation
public static int getArithmeticOperation(java.lang.String operator,
int operandCount)
public static boolean isArithmeticOperation(int operandType)
public static java.lang.String getArithmeticOperation(int operandType)