public abstract class AbstractDBObjectUsage extends AbstractFromObjectUsage implements DBObjectUsage
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport
COMMA, DEFAULT_SEPARATOR, EMPTY, EMPTY_ARRAY, INDENT, NEWLINE, SPACE
Modifier | Constructor and Description |
---|---|
protected |
AbstractDBObjectUsage() |
protected |
AbstractDBObjectUsage(DBObjectID id, DBObjectID fromID) |
Modifier and Type | Method and Description |
---|---|
protected void |
copyToImpl(AbstractDBObject target, DBObject copyParent, IDPolicy idPolicy)
Implementation method for making a copy of this object.
|
java.lang.String |
getColumnName()
By default this returns the name of the DBObject we're using (externalized if a provider is available).
|
protected java.lang.String |
getExternalName(java.lang.String name)
If this object has a provider associated with it, the given name is returned in "externalised" form.
|
DBObjectID |
getObjectID()
Gets the id of the DBObject (e.g.
|
protected DBObjectProvider |
getProvider() |
void |
setObjectID(DBObjectID objectID)
Sets the id of the DBObject (e.g.
|
void |
setProvider(DBObjectProvider pro)
Sets the provider this usage exists within.
|
findFragmentInQuery, getFromObject, getFromObjectID, getSQLTextImpl, isQualified, resolveFromObject, resolveFromObject, setFromObject, setFromObjectID, setQualified
appendToBuffer, argsToString, getStartOffset, getTextOrNull, getTextOrNull, getType, setStartOffset, surroundWithBrackets, surroundWithBrackets, toString
setParent
checkInit, checkInit, equalsImpl, 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
getSQLText, getStartOffset
getParent, setParent
addObjectListener, copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getReferenceIDs, getType, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName
getProperty, getProperty, setProperties, setProperty
protected AbstractDBObjectUsage()
protected AbstractDBObjectUsage(DBObjectID id, DBObjectID fromID)
public void setProvider(DBObjectProvider pro)
ProviderUsage
setProvider
in interface ProviderUsage
protected DBObjectProvider getProvider()
public void setObjectID(DBObjectID objectID)
setObjectID
in interface DBObjectUsage
public DBObjectID getObjectID()
getObjectID
in interface DBObjectUsage
public java.lang.String getColumnName()
getColumnName
in interface FromObjectUsage
protected java.lang.String getExternalName(java.lang.String name)
protected void copyToImpl(AbstractDBObject target, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObject
copyToImpl
in class AbstractBuildableObject
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.