public class FunctionUsage extends Operation implements DBObjectUsage
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupportAS, COMMA, DEFAULT_SEPARATOR, EMPTY, EMPTY_ARRAY, INDENT, LEFT_PAREN, NEWLINE, RIGHT_PAREN, SPACE| Constructor and Description |
|---|
FunctionUsage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyToImpl(AbstractDBObject target,
DBObject copyParent,
IDPolicy idPolicy)
Implementation method for making a copy of this object.
|
DBObjectID |
getDataTypeID()
Get the ID of the DataType of the SQLFragment.
|
java.lang.String |
getFunction()
Gets the function (text).
|
DBObjectID |
getObjectID()
Gets the ID for the object being used by this fragment.
|
protected java.lang.String |
getOperatorText() |
void |
setObjectID(DBObjectID objectID)
Sets the ID for the object being used by this fragment.
|
void |
setProvider(DBObjectProvider pro)
Sets the provider this usage exists within.
|
protected java.lang.String |
surroundWithBrackets(java.lang.String text,
boolean force)
Surrounds the given text with brackets (parentheses).
|
addArgument, addArgument, addArguments, checkArgument, checkNewSize, equalsImpl, getArgumentCount, getArguments, getDistinctText, getSeparator, getSQLText, removeArgument, setArguments, setCommutative, setFunctionFormat, setSeparatorappendToBuffer, appendToBuffer, argsToString, getName, getStartOffset, getTextOrNull, getTextOrNull, getType, setStartOffset, surroundWithBrackets, toStringsetParentcheckInit, checkInit, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization, processPropertyChange, setIDaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setName, setProperties, setPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSQLText, getStartOffsetgetParent, setParentaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, getType, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName, setProperties, setPropertyprotected java.lang.String getOperatorText()
getOperatorText in class Operationpublic java.lang.String getFunction()
public void setObjectID(DBObjectID objectID)
DBObjectUsagesetObjectID in interface DBObjectUsagepublic DBObjectID getObjectID()
DBObjectUsagegetObjectID in interface DBObjectUsagepublic void setProvider(DBObjectProvider pro)
ProviderUsagesetProvider in interface ProviderUsagepublic DBObjectID getDataTypeID()
SQLFragmentWithDatatypegetDataTypeID in interface SQLFragmentWithDatatypegetDataTypeID in class Operationprotected java.lang.String surroundWithBrackets(java.lang.String text,
boolean force)
AbstractSQLFragmentsurroundWithBrackets in class AbstractSQLFragmenttext - the text to surroundforce - whether to force the surround (true), or instead assess
whether the text is already surrounded (or contains an even number of
sets of brackets) and therefore doesn't need any more (false).protected void copyToImpl(AbstractDBObject target, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObjectcopyToImpl in class Operationtarget - 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.