Skip navigation links
oracle.javatools.db.sql
Class AbstractFromObjectUsage
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractChildDBObject
oracle.javatools.db.sql.AbstractSQLFragment
oracle.javatools.db.sql.AbstractFromObjectUsage
- All Implemented Interfaces:
- ChildDBObject, DBObject, FromObjectUsage, SQLFragment, Copyable, DynamicPropertySet
- Direct Known Subclasses:
- AbstractDBObjectUsage, ColumnKeywordUsage, SelectObjectUsage
-
public abstract class AbstractFromObjectUsage
- extends AbstractSQLFragment
- implements FromObjectUsage
Abstract SQLFragment implementation of FromObjectUsage.
Fields inherited from interface oracle.javatools.db.sql.SQLFragment |
CONNECTBY, FROM, GROUPBY, HAVING, MODEL, NOCYCLE, ORDERBY, ORDERSIBLINGSBY, PRIOR, SELECT, STARTWITH, TYPE, WHERE |
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.AbstractDBObject |
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, 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.DBObject |
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, getType, replaceReferenceIDs, setID, setName |
AbstractFromObjectUsage
protected AbstractFromObjectUsage()
AbstractFromObjectUsage
@Deprecated
protected AbstractFromObjectUsage(FromObject from)
- Deprecated. - use ID based constructor instead
- Parameters:
from
-
AbstractFromObjectUsage
protected AbstractFromObjectUsage(DBObjectID fromId)
-
- Parameters:
fromId
-
setFromObject
@Deprecated
public void setFromObject(FromObject from)
- Deprecated. - use setFromObjectID() instead
- Sets the FromObject that this ColumnUsage is dependent on.
-
- Specified by:
setFromObject
in interface FromObjectUsage
getFromObject
@Deprecated
public FromObject getFromObject()
- Deprecated. - use setFromObjectID() instead
- Gets the FromObject that this ColumnUsage is dependent on.
-
- Specified by:
getFromObject
in interface FromObjectUsage
resolveFromObject
public FromObject resolveFromObject()
- Convenience method for resolving the stored FROM object id. Catches any DBExceptions and writes them to the console. Do not use if you are interested in DBExceptions.
-
- Specified by:
resolveFromObject
in interface FromObjectUsage
-
- Returns:
resolveFromObject
protected FromObject resolveFromObject(DBObjectID fromId)
setFromObjectID
public void setFromObjectID(DBObjectID id)
- Description copied from interface:
FromObjectUsage
- Sets the ID of the FromObject that this object is dependent on.
-
- Specified by:
setFromObjectID
in interface FromObjectUsage
getFromObjectID
public DBObjectID getFromObjectID()
- Description copied from interface:
FromObjectUsage
- Returns the ID of the FromObject that this object is dependent on.
-
- Specified by:
getFromObjectID
in interface FromObjectUsage
setQualified
public void setQualified(boolean qualified)
- Sets wether this column usage should qualify itself with the alias from its FromObject. e.g. EMP.ENAME rather than ENAME
-
- Specified by:
setQualified
in interface FromObjectUsage
isQualified
public boolean isQualified()
- Gets wether this column usage should qualify itself with the alias from its FromObject. e.g. EMP.ENAME rather than ENAME
-
- Specified by:
isQualified
in interface FromObjectUsage
getSQLTextImpl
protected java.lang.StringBuilder getSQLTextImpl()
- Default implementation of getSQLText() which returns a StringBuilder containing the from object name (if there is one and we're qualified) DOT the column name.
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.