| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractSchemaObject
oracle.javatools.db.Synonym
public class 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.
 
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject | 
|---|
AbstractDBObject.ChildSupport | 
| Field Summary | |
|---|---|
static java.lang.String | 
PUBLIC_TYPE
 | 
static java.lang.String | 
TYPE
 | 
| Fields inherited from interface oracle.javatools.db.DBObject | 
|---|
COMMENT | 
| Constructor Summary | |
|---|---|
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.  | 
|
| Method Summary | |
|---|---|
 DBObject | 
copyTo(DBObject target,
       DBObject copyParent,
       IDPolicy idPolicy)
Internal copy method used by the API to perform copy operations.  | 
protected  void | 
copyToImpl(Synonym copy,
           DBObject copyParent,
           IDPolicy idPolicy)
 | 
 boolean | 
equals(java.lang.Object target)
 | 
protected  boolean | 
equalsImpl(Synonym target)
 | 
 DBObjectID | 
getReference()
Retrieves the object refered to by this synonym.  | 
protected  void | 
getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
Implementation first checks that the object has been built - then returns the collection from suprt.getReferenceIDsImpl().  | 
 java.lang.String | 
getType()
Returns the type of this object.  | 
 boolean | 
isPublic()
Whether this synonynm is public.  | 
 boolean | 
replaceReferenceIDs(java.util.Map<DBObjectID,DBObjectID> idMap)
Override in subclasses to replace reference IDs as appropriate.  | 
 void | 
setPublic(boolean pub)
Sets whether this synonym is public.  | 
 void | 
setReference(DBObjectID ref)
Sets the object refered to by this synonym.  | 
| Methods inherited from class oracle.javatools.db.AbstractSchemaObject | 
|---|
addObjectListener, checkInit, checkInit, checkInitEx, copyToImpl, equalsImpl, fireObjectUpdated, getOwnedObjectsImpl, getParent, getProperties, getProperty, getProperty, getSchema, needsInitialization, removeObjectListener, setProperties, setProperty, setSchema | 
| Methods inherited from class oracle.javatools.db.AbstractDBObject | 
|---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, setID, setName, toString | 
| 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, setID, setName | 
| Field Detail | 
|---|
public static final java.lang.String TYPE
public static final java.lang.String PUBLIC_TYPE
| Constructor Detail | 
|---|
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 to| Method Detail | 
|---|
public DBObject copyTo(DBObject target,
                       DBObject copyParent,
                       IDPolicy idPolicy)
AbstractDBObject
 This method does not fix internal reference ids on copy. That is done by
 the calling DBObject.copyTo(DBObject, IDPolicy) method.
copyTo in class AbstractDBObjectDBObject.copyTo(java.lang.Object), 
DBObject.copyTo(DBObject, boolean), 
AbstractDBObject.copyToImpl(oracle.javatools.db.AbstractDBObject, oracle.javatools.db.DBObject, oracle.javatools.db.IDPolicy)
protected void copyToImpl(Synonym copy,
                          DBObject copyParent,
                          IDPolicy idPolicy)
public boolean equals(java.lang.Object target)
equals in class java.lang.Objectprotected boolean equalsImpl(Synonym target)
public 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 publicpublic java.lang.String getType()
DBObject
protected void getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
AbstractSchemaObject
getReferenceIDsImpl in class AbstractSchemaObjectrefs - the collection of ids this object referencespublic boolean replaceReferenceIDs(java.util.Map<DBObjectID,DBObjectID> idMap)
AbstractDBObject
replaceReferenceIDs in interface DBObjectreplaceReferenceIDs in class AbstractDBObjectidMap - key = old DBObjectID, value = new DBObjectID
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||