|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.cm.ds.db.AbstractDBObject oracle.jdeveloper.cm.ds.db.AbstractSchemaObject oracle.jdeveloper.cm.ds.db.Synonym
Model of a database synonym. A synonym is a reference to another object.
Synonyms can be defined as being public
, in which case they
are available to all users without a schema qualifier.
Field Summary | |
static java.lang.String |
TYPE
|
Fields inherited from interface oracle.jdeveloper.cm.ds.db.DBObject |
COMMENT |
Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
Constructor Summary | |
Synonym()
Constructs a new Synonym. |
|
Synonym(java.lang.String name,
Schema schema,
SchemaObject ref)
Constructs a new Synonym pointing to a specific object, in a specific schema, and with a specific name. |
Method Summary | |
java.lang.Object |
copyTo(java.lang.Object target)
Copies the state of this DBObject to another instance. |
protected void |
copyToImpl(Synonym copy)
|
boolean |
equals(java.lang.Object target)
|
protected boolean |
equalsImpl(Synonym target)
|
SchemaObject |
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(SchemaObject ref)
Sets the object refered to by this synonym. |
Methods inherited from class oracle.jdeveloper.cm.ds.db.AbstractSchemaObject |
copyToImpl, equalsImpl, getSchema, setSchema |
Methods inherited from class oracle.jdeveloper.cm.ds.db.AbstractDBObject |
attach, compareToImpl, copyToImpl, detach, equalsImpl, getID, getName, getProperties, getProperty, hashCode, notifyObservers, setID, setName, setProperties, setProperty, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.jdeveloper.cm.ds.db.DBObject |
getID, getName, getProperties, getProperty, setID, setName, setProperties, setProperty |
Methods inherited from interface oracle.ide.addin.Subject |
attach, detach, notifyObservers |
Field Detail |
public static final java.lang.String TYPE
Constructor Detail |
public Synonym()
public Synonym(java.lang.String name, Schema schema, SchemaObject ref)
name
- a string containing the name of the synonymschema
- the schema containing the synonymref
- the Object this synonym refers toMethod Detail |
public java.lang.Object copyTo(java.lang.Object target)
DBObject
null
is specified for the target, a new instance will be created.
The entire state of the object will be copied, with a few exceptions. In particular, any observers registered will NOT be copied. In cases where this instance contains child DBObjects, new instances of those children will be created, and the state copied to them. The copy will thus contain its own unique state; after making the copy, changing one instance will not cause any changes to occur to the copy. The properties will be copied; however, copies will not be made of the values referenced by the properties - thus, the copy will refer to the same instance as the original. Child objects that are copied will still point to the original parent; it is the responsibility of a copied parent to update the parent of copies of its children point to the copy of itself.
The ID associated with this object will not be copied. If the copy is intended to be a temporary copy of this object (to be used in a dialog editing the object for example), then the caller should explicitly set the ID of the copy to be the same as on this object. However, if the new object is intended to exist separately from this object, the caller should ensure that the new object have a different ID from this object.
target
- The object to copy to. If target is null
, a new
instance will be created, and the state will be copied to that object.
protected void copyToImpl(Synonym copy)
public boolean equals(java.lang.Object target)
equals
in class AbstractDBObject
protected boolean equalsImpl(Synonym target)
public SchemaObject getReference()
public void setReference(SchemaObject ref)
ref
- the object referenced by this synonympublic boolean isPublic()
public void setPublic(boolean pub)
pub
- a boolean value indicating whether this schema is publicpublic java.lang.String getType()
DBObject
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.