public class Synonym extends AbstractSchemaObject
public, in which case they
are available to all users without a schema qualifier.
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PUBLIC_TYPE
This is not a listable type.
|
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
Synonym()
Constructs a new Synonym.
|
Synonym(java.lang.String name,
Schema schema,
DBObjectID ref)
Constructs a new Synonym pointing to a specific object, in a specific
schema, and with a specific name.
|
| Modifier and Type | Method and Description |
|---|---|
DBObjectID |
getReference()
Retrieves the object refered to by this synonym.
|
java.lang.String |
getType()
Returns the type of this object.
|
boolean |
isPublic()
Whether this synonynm is public.
|
void |
setPublic(boolean pub)
Sets whether this synonym is public.
|
void |
setReference(DBObjectID ref)
Sets the object refered to by this synonym.
|
getSchema, setSchemacheckInit, checkInit, copyToImpl, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization, processPropertyChange, setIDaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setName, setProperties, setProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddObjectListener, removeObjectListeneraddObjectListener, fireObjectUpdated, removeObjectListeneraddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName, setProperties, setPropertypublic static final java.lang.String TYPE
public static final java.lang.String PUBLIC_TYPE
public Synonym()
public Synonym(java.lang.String name,
Schema schema,
DBObjectID ref)
name - a string containing the name of the synonymschema - the schema containing the synonymref - the Object this synonym refers topublic java.lang.String getType()
DBObjectpublic DBObjectID getReference()
public void setReference(DBObjectID ref)
ref - the object referenced by this synonympublic boolean isPublic()
public void setPublic(boolean pub)
pub - a boolean value indicating whether this schema is public