|
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.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
|
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,
ResultSet 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 loadOnly)
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. |
|
void |
ensureProvider(BaseObjectID id)
|
|
CheckConstraint |
newCheckConstraint(java.lang.String name,
Relation parent)
Creates a new PKConstraint for the given Relation (ensuring that the Relation has a valid ID). |
|
Column |
newColumn(Relation parent)
Creates a new Column with a unique offline id. |
|
Column |
newColumn(java.lang.String name,
Relation parent)
Creates a new Column with a unique offline id. |
|
FKConstraint |
newFKConstraint(java.lang.String name,
Relation parent)
Creates a new FKConstraint for the given Relation (ensuring that the Relation has a valid ID). |
|
Function |
newFunction()
Deprecated. use newSchemaObject( Function.class ) |
|
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. |
|
MaterializedView |
newMaterializedView()
Deprecated. use newSchemaObject( MaterializedView.class ) |
|
MaterializedViewLog |
newMaterializedViewLog()
Deprecated. use newSchemaObject( MaterializedViewLog.class ) |
|
ComplexType |
newObjectType()
Deprecated. use newSchemaObject( ComplexType.class ) |
|
Package |
newPackage()
Deprecated. use newSchemaObject( Package.class ) |
|
PKConstraint |
newPKConstraint(java.lang.String name,
Relation parent)
Creates a new PKConstraint for the given Relation (ensuring that the Relation has a valid ID). |
|
PlSql |
newPlSql(java.lang.String type)
Returns a new PL/SQL object according to the type passed in |
|
Procedure |
newProcedure()
Deprecated. use newSchemaObject( Table.class ) |
|
|
newSchemaObject(java.lang.Class<T> clz)
Returns a new SchemaObject of given class setup with a unique offline id. |
|
Sequence |
newSequence()
Deprecated. use newSchemaObject( Sequence.class ) |
|
Synonym |
newSynonym()
Deprecated. use newSchemaObject( Synonym.class ) |
|
Table |
newTable()
Deprecated. use newSchemaObject( Table.class ) |
|
Table |
newTable(Table template)
Deprecated. use the template support |
|
Trigger |
newTrigger()
Deprecated. use newSchemaObject( Trigger.class ) |
|
UniqueConstraint |
newUniqueConstraint(java.lang.String name,
Relation parent)
Creates a new UniqueConstraint for the given Relation (ensuring that the Relation has a valid ID). |
|
View |
newView()
Deprecated. use newSchemaObject( View.class ) |
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)
public <T extends SchemaObject> T newSchemaObject(java.lang.Class<T> clz)
@Deprecated public Table newTable()
@Deprecated public Table newTable(Table template)
@Deprecated public View newView()
@Deprecated public Sequence newSequence()
@Deprecated public Synonym newSynonym()
@Deprecated public ComplexType newObjectType()
@Deprecated public Procedure newProcedure()
@Deprecated public Function newFunction()
@Deprecated public Trigger newTrigger()
@Deprecated public MaterializedView newMaterializedView()
@Deprecated public MaterializedViewLog newMaterializedViewLog()
@Deprecated public Package newPackage()
public PlSql newPlSql(java.lang.String type)
type
- the type, e.g. Procedure.TYPE
public Column newColumn(Relation parent)
public Column newColumn(java.lang.String name, Relation parent)
public UniqueConstraint newUniqueConstraint(java.lang.String name, Relation parent)
public FKConstraint newFKConstraint(java.lang.String name, Relation parent)
public PKConstraint newPKConstraint(java.lang.String name, Relation parent)
public CheckConstraint newCheckConstraint(java.lang.String name, Relation parent)
public DBObjectID ensureID(DBObject obj)
public void ensureID(java.util.Collection<? extends DBObject> objs, ResultSet rs)
public DBObjectID ensureID(DBObject obj, boolean deep)
public DBObjectID ensureID(DBObject obj, boolean deep, boolean loadOnly)
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.
public void ensureProvider(BaseObjectID id)
|
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 |