|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
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
public abstract class Operation
Abstract class for operations. Consists of a set of arguments and an
operation text. The operator can be of a "function format"
OPERATION(arg1, arg2, arg3 ...)
or not
arg1 OPERATION arg2 OPERATION arg3 ...
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport |
Field Summary |
---|
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 | |
---|---|
Operation()
|
|
Operation(SQLFragment[] args)
|
Method Summary | |
---|---|
void |
addArgument(int index,
SQLFragment expression)
|
void |
addArgument(SQLFragment expression)
|
void |
addArguments(SQLFragment[] expressions)
|
protected void |
checkArgument(java.util.List<SQLFragment> existing,
SQLFragment add)
If this returns true the Operation checks that the type of all arguments is the same. |
protected void |
checkNewSize(int proposedSize)
Override for operations that have specific size restrictions. |
protected void |
copyToImpl(AbstractDBObject target,
DBObject copyParent,
IDPolicy idPolicy)
Implementation method for making a copy of this object. |
protected boolean |
equalsImpl(AbstractDBObject other)
Equals implementation for testing equality with another AbstractDBObject. |
int |
getArgumentCount()
Returns the number of arguments stored. |
SQLFragment[] |
getArguments()
Returns the arguments stored in this function. |
protected java.lang.String |
getDistinctText()
Override this for aggregate functions which may take a DISTINCT/UNIQUE/ALL qualifier. |
protected abstract java.lang.String |
getOperatorText()
|
protected java.lang.String |
getSeparator()
|
java.lang.String |
getSQLText()
Returns the complete SQL representation for this Function fragment. |
boolean |
removeArgument(SQLFragment expression)
|
void |
setArguments(SQLFragment[] arguments)
Sets the arguments for this function. |
protected void |
setCommutative(boolean boo)
Sets whether the operation is commutative. |
protected void |
setFunctionFormat(boolean boo)
Sets whether this operation is formatted like a function. |
protected void |
setSeparator(java.lang.String separator)
|
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 |
Constructor Detail |
---|
public Operation()
public Operation(SQLFragment[] args)
Method Detail |
---|
protected void setFunctionFormat(boolean boo)
true
- OPERATION(arg1, arg2)false
- arg1 OPERATION arg2 OPERATION arg3
protected void setCommutative(boolean boo)
public SQLFragment[] getArguments()
public void setArguments(SQLFragment[] arguments)
public void addArgument(SQLFragment expression)
public void addArgument(int index, SQLFragment expression)
public void addArguments(SQLFragment[] expressions)
public boolean removeArgument(SQLFragment expression)
protected void checkNewSize(int proposedSize)
public int getArgumentCount()
protected abstract java.lang.String getOperatorText()
protected void checkArgument(java.util.List<SQLFragment> existing, SQLFragment add) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected void setSeparator(java.lang.String separator)
protected java.lang.String getSeparator()
protected java.lang.String getDistinctText()
public java.lang.String getSQLText()
protected boolean equalsImpl(AbstractDBObject other)
AbstractDBObject
equalsImpl
in class AbstractDBObject
protected void copyToImpl(AbstractDBObject target, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObject
copyToImpl
in class AbstractChildDBObject
target
- the copy being created of this objectcopyParent
- if this object is being copied underneath a parent, this
parameter is the copy of the parent of this object, which will therefore
need to be the parent of the copy of this object.idPolicy
- the policy for copying the object's ID.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |