|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.db.SchemaObjectDescriptor
public class SchemaObjectDescriptor
An object to encapsulate information about a given schema object without actually retrieving the object from its given provider (e.g. the database). This is useful in import and generate operation where the details of the table to be (for example) imported are known, but it hasn't been retrieved from the database yet.
It is also useful for persisting information about a schema object for later retrieval back from its provider.
Finally it is also useful to use a descriptor when creating collections/maps of objects because the comparison only compares name, schema and type, and doesn't do a costly .equals on the object.
The class allows an extra name for the object to be recorded. This is useful for import processes that include the creation of entities/mappings etc.
Constructor Summary | |
---|---|
SchemaObjectDescriptor(java.lang.String name,
java.lang.String type,
java.lang.String schema)
Create a new descriptor for a given schema object. |
|
SchemaObjectDescriptor(SystemObject obj)
Create a descriptor for the given schema object. |
Method Summary | |
---|---|
java.lang.Object |
copyTo(java.lang.Object obj)
|
protected void |
copyToImpl(SchemaObjectDescriptor copy)
|
static SchemaObjectDescriptor[] |
createDescriptors(DBObjectID[] ids)
Wraps up a set of DBObjectIDs into SchemaObjectDescriptors. |
static SchemaObjectDescriptor[] |
createDescriptors(SchemaObject[] objs)
Wraps up a set of SchemaObjects into SchemaObjectDescriptors. |
static SchemaObjectDescriptor[] |
createDescriptors(SchemaObject[] objs,
boolean saveObj)
Wraps up a set of SchemaObjects into SchemaObjectDescriptors. |
static SchemaObjectDescriptor[] |
createDescriptors(SystemObject[] objs)
Wraps up a set of SystemObjects into SchemaObjectDescriptors. |
static SchemaObjectDescriptor[] |
createDescriptors(SystemObject[] objs,
boolean saveObj)
Wraps up a set of SystemObjects into SchemaObjectDescriptors. |
boolean |
equals(java.lang.Object obj)
Tests equality with another SchemaObjectDescriptor by comparing the name, type and schema. |
boolean |
equals(java.lang.Object obj,
boolean strict)
If strict is false performs a normal comparison of name, type and schema. |
protected boolean |
equalsImpl(SchemaObjectDescriptor obj,
boolean strict)
|
java.lang.String |
getName()
Retrieves the name of the object. |
SystemObject |
getObject()
If this is a wrapper for an existing object, this will return the object. |
java.lang.String |
getOriginalName()
Deprecated. - use getName() |
java.lang.String |
getOtherName()
Gets the other name stored in this descriptor - e.g. |
java.lang.String |
getSchema()
Get the name of the schema for this schema object. |
java.lang.String |
getType()
Get the type of this schema object. |
int |
hashCode()
|
void |
setName(java.lang.String name)
Change the name of this schema object. |
void |
setOriginalName(java.lang.String name)
Deprecated. - use setName() |
void |
setOtherName(java.lang.String name)
Sets the other name stored in this descriptor - e.g. |
void |
setSchema(java.lang.String schema)
Sets the schema of the object. |
void |
setType(java.lang.String type)
Sets the type of the object. |
java.lang.String |
toString()
Uses the original name to provide a meanigful string to display in a shuttle. |
SchemaObject |
unwrapDescriptor(DBObjectProvider source)
|
static SchemaObject[] |
unwrapDescriptors(SchemaObjectDescriptor[] descs,
DBObjectProvider source)
Unwraps a set of descriptors and returns an array of SchemaObjects. |
SystemObject |
unwrapSystemObjectDescriptor(DBObjectProvider source)
|
static SystemObject[] |
unwrapSystemObjectDescriptors(SchemaObjectDescriptor[] descs,
DBObjectProvider source)
Unwraps a set of descriptors and returns an array of SystemObjects. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SchemaObjectDescriptor(java.lang.String name, java.lang.String type, java.lang.String schema)
name
- the name of the schema objecttype
- the type of the schema objectschema
- the name of the schema that the object is from, or is
destined to.public SchemaObjectDescriptor(SystemObject obj)
obj
- the object to describe.name
- the new name of the object.Method Detail |
---|
public java.lang.String getName()
@Deprecated public java.lang.String getOriginalName()
public java.lang.String getType()
public java.lang.String getSchema()
public SystemObject getObject()
public java.lang.String getOtherName()
public void setName(java.lang.String name)
@Deprecated public void setOriginalName(java.lang.String name)
public void setType(java.lang.String type)
public void setSchema(java.lang.String schema)
public void setOtherName(java.lang.String name)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with this
protected boolean equalsImpl(SchemaObjectDescriptor obj, boolean strict)
public boolean equals(java.lang.Object obj, boolean strict)
public java.lang.Object copyTo(java.lang.Object obj)
protected void copyToImpl(SchemaObjectDescriptor copy)
public java.lang.String toString()
toString
in class java.lang.Object
public SchemaObject unwrapDescriptor(DBObjectProvider source) throws DBException
DBException
public SystemObject unwrapSystemObjectDescriptor(DBObjectProvider source) throws DBException
DBException
public static SchemaObject[] unwrapDescriptors(SchemaObjectDescriptor[] descs, DBObjectProvider source) throws DBException
DBException
public static SystemObject[] unwrapSystemObjectDescriptors(SchemaObjectDescriptor[] descs, DBObjectProvider source) throws DBException
DBException
public static SchemaObjectDescriptor[] createDescriptors(SchemaObject[] objs, boolean saveObj)
public static SchemaObjectDescriptor[] createDescriptors(SystemObject[] objs, boolean saveObj)
public static SchemaObjectDescriptor[] createDescriptors(SchemaObject[] objs)
public static SchemaObjectDescriptor[] createDescriptors(SystemObject[] objs)
public static SchemaObjectDescriptor[] createDescriptors(DBObjectID[] ids)
public int hashCode()
hashCode
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |