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, setSeparator
appendToBuffer, argsToString, getStartOffset, getTextOrNull, getTextOrNull, getType, 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 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 SQLFragment
getSQLText
in class Operation
public java.lang.String getOperatorText()
getOperatorText
in class Operation
protected boolean equalsImpl(AbstractDBObject target)
AbstractDBObject
equalsImpl
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)