|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.AbstractDBObject oracle.javatools.db.AbstractChildDBObject oracle.javatools.db.sql.AbstractSQLFragment oracle.javatools.db.sql.Operation oracle.javatools.db.sql.ArithmeticOperation
public class ArithmeticOperation
Concrete subclass of Operation for arithmetic operations - ADD, SUBTRACT, MULTIPLY and DIVIDE.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport |
Field Summary | |
---|---|
static int |
ADD
Add |
static int |
DIVIDE
Divide |
static int |
MULTIPLY
Multiply |
static int |
NEGATE
Negate |
static int |
SUBTRACT
Subtract |
Fields inherited from class oracle.javatools.db.sql.AbstractSQLFragment |
---|
DEFAULT_SEPARATOR, EMPTY, EMPTY_ARRAY, NEWLINE, SPACE |
Fields inherited from interface oracle.javatools.db.sql.SQLFragment |
---|
CONNECTBY, FROM, GROUPBY, HAVING, MODEL, NOCYCLE, ORDERBY, ORDERSIBLINGSBY, PRIOR, SELECT, STARTWITH, TYPE, WHERE |
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
ArithmeticOperation()
|
|
ArithmeticOperation(int operator,
SQLFragment[] args)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class oracle.javatools.db.sql.Operation |
---|
addArgument, addArgument, addArguments, checkArgument, checkNewSize, copyToImpl, getArgumentCount, getArguments, getDistinctText, getSeparator, removeArgument, setArguments, setCommutative, setFunctionFormat, setSeparator |
Methods inherited from class oracle.javatools.db.sql.AbstractSQLFragment |
---|
appendToBuffer, argsToString, getStartOffset, getTextOrNull, getTextOrNull, getType, setParent, setStartOffset, surroundWithBrackets, surroundWithBrackets, toString |
Methods inherited from class oracle.javatools.db.AbstractChildDBObject |
---|
findParent, getParent, getProperty, setProperty |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.ChildDBObject |
---|
getParent |
Methods inherited from interface oracle.javatools.db.DBObject |
---|
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Field Detail |
---|
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
Constructor Detail |
---|
public ArithmeticOperation()
public ArithmeticOperation(int operator, SQLFragment[] args)
Method Detail |
---|
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)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |