|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.DBObjectFactory oracle.jdeveloper.offlinedb.OfflineDBObjectFactory
public class OfflineDBObjectFactory
Factory class with methods for creating DBObjects for use in the offline API. All new objects are given appropriate offline object ids.
Individual methods, rather than a generic newDBObject() method that uses reflection, are given to give type safety to API user code, and to make it a bit quicker as well.
Nested Class Summary | |
---|---|
static class |
OfflineDBObjectFactory.IDScheme
Deprecated. |
Constructor Summary | |
---|---|
OfflineDBObjectFactory(OfflineDBObjectProvider pro)
Constructor has package level access as API users should retrieve a factory from the provider, and not instantiate their own. |
Method Summary | ||
---|---|---|
void |
ensureID(java.util.Collection<? extends DBObject> objs,
Difference rs)
Checks that the given objects have an ID. |
|
DBObjectID |
ensureID(DBObject obj)
Checks that the given object has an ID. |
|
DBObjectID |
ensureID(DBObject obj,
boolean deep)
Checks that the given object has an ID. |
|
DBObjectID |
ensureID(DBObject obj,
boolean deep,
boolean forceNames)
Same as ensureID(DBObject,boolean) but optionally specify that
this is only a load operation and therefore heavier ID processing (such as
updating the name information in the IDs) can be skipped. |
|
protected DBObjectID |
findParentID(DBObjectID parentID)
|
|
Column |
newColumn(Relation parent)
Deprecated. |
|
Column |
newColumn(java.lang.String name,
Relation parent)
Deprecated. |
|
FKConstraint |
newFKConstraint(java.lang.String name,
Relation parent)
Deprecated. |
|
DBObjectID |
newID(DBObject obj)
Creates a new ID for the given object and sets it too. |
|
DBObjectID |
newID(DBObject obj,
DBObjectID parent)
Creates a new ID for the given object and sets it too. |
|
IdentifierBasedID |
newID(java.lang.String type)
Deprecated. |
|
DBObjectID |
newID(java.lang.String type,
IdentifierBasedID parent)
Deprecated. |
|
CheckConstraint |
newObject(java.lang.String name,
Relation parent)
Deprecated. |
|
PKConstraint |
newPKConstraint(java.lang.String name,
Relation parent)
Deprecated. |
|
PlSql |
newPlSql(java.lang.String type)
Deprecated. |
|
|
newSchemaObject(java.lang.Class<T> clz)
Deprecated. use newObject instead |
|
|
newSchemaObject(java.lang.Class<T> clz,
Schema schema)
Deprecated. use newObject instead |
|
UniqueConstraint |
newUniqueConstraint(java.lang.String name,
Relation parent)
Deprecated. |
Methods inherited from class oracle.javatools.db.DBObjectFactory |
---|
createID, ensureBaseInfo, ensureProvider, ensureSchema, getExternalDefaultValue, getInitialValue, getLogger, getProvider, isValidID, newObject, newObject, newObject, newObject, newObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OfflineDBObjectFactory(OfflineDBObjectProvider pro)
Method Detail |
---|
@Deprecated public IdentifierBasedID newID(java.lang.String type)
@Deprecated public DBObjectID newID(java.lang.String type, IdentifierBasedID parent)
public DBObjectID newID(DBObject obj)
public DBObjectID newID(DBObject obj, DBObjectID parent)
@Deprecated public <T extends DBObject> T newSchemaObject(java.lang.Class<T> clz)
@Deprecated public <T extends DBObject> T newSchemaObject(java.lang.Class<T> clz, Schema schema)
@Deprecated public PlSql newPlSql(java.lang.String type)
type
- the type, e.g. Procedure.TYPE
@Deprecated public Column newColumn(Relation parent)
@Deprecated public Column newColumn(java.lang.String name, Relation parent)
@Deprecated public UniqueConstraint newUniqueConstraint(java.lang.String name, Relation parent)
@Deprecated public FKConstraint newFKConstraint(java.lang.String name, Relation parent)
@Deprecated public PKConstraint newPKConstraint(java.lang.String name, Relation parent)
@Deprecated public CheckConstraint newObject(java.lang.String name, Relation parent)
public DBObjectID ensureID(DBObject obj)
public void ensureID(java.util.Collection<? extends DBObject> objs, Difference rs)
public DBObjectID ensureID(DBObject obj, boolean deep)
public DBObjectID ensureID(DBObject obj, boolean deep, boolean forceNames)
ensureID(DBObject,boolean)
but optionally specify that
this is only a load operation and therefore heavier ID processing (such as
updating the name information in the IDs) can be skipped.
ensureID
in class DBObjectFactory
forceNames
- if true this will additionally set the name based
information on identifier based IDs. This is a potentially more time
consuming operation as it may require dependent objects to be loaded.
protected DBObjectID findParentID(DBObjectID parentID)
findParentID
in class DBObjectFactory
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |