|
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.javatools.db.extension.DelegateDDLGenerator
public final class DelegateDDLGenerator
DDLGenerator implementation that delegates to another DDLGenerator for all normal object types. For any object type registered through the DBObjectRegistry the calls are instead delegated to the appropriately registered DDLGenerator implementation there instead.
Constructor Summary | |
---|---|
DelegateDDLGenerator(DDLGenerator base,
DatabaseDescriptor desc,
DBObjectProvider pro)
|
Method Summary | |
---|---|
boolean |
canAlterProperty(DBObject original,
DBObject update,
java.lang.String prop)
Convenience method to call PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String) and check the return
value is a PropertyAction with a type of ALTER. |
PropertyAction |
canChangeProperty(DBObject original,
DBObject update,
java.lang.String prop)
Queries the support for setting or changing the given property for a create or update. |
PropertyAction |
canUpdateObject(DBObject original,
DBObject update)
Convenience method that uses PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String) on all the
differences in the given object to tell whether the update on the given
objects can be done using a CREATE, ALTER or REPLACE as appropriate. |
PropertyAction |
canUpdateObject(Difference diff)
Convenience method that uses PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String) on all the
differences in the given Difference to tell whether the update on the given
objects can be done using a CREATE, ALTER or REPLACE as appropriate. |
DDL |
getCreateDDL(DDLOptions options,
DBObject... objects)
Gets CREATE statements for the given objects. |
DDL |
getDeleteDDL(DDLOptions options,
DBObject... objects)
Gets DROP statements for the given objects. |
DDL |
getUndeleteDDL(DDLOptions options,
DBObject... objects)
Gets statements to undelete (e.g. |
DDL |
getUpdateDDL(DDLOptions options,
Difference diff)
Gets ALTER statements for the given objects where possible, or DROP/CREATE, or CREATE AND REPLACE where appropriate/necessary. |
boolean |
supportsAction(java.lang.String type,
PropertyAction.Type action)
Asks whether a given action is supported for the specified object type in this provider. |
boolean |
supportsProperty(java.lang.String type,
java.lang.String prop)
Tests whether the given property is supported for the given object type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegateDDLGenerator(DDLGenerator base, DatabaseDescriptor desc, DBObjectProvider pro)
Method Detail |
---|
public boolean canAlterProperty(DBObject original, DBObject update, java.lang.String prop)
PropertyManager
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String)
and check the return
value is a PropertyAction with a type of ALTER.
canAlterProperty
in interface PropertyManager
original
- the original object (null for a create query)update
- the updated (or new) objectprop
- the property name / path to query
public PropertyAction canChangeProperty(DBObject original, DBObject update, java.lang.String prop)
PropertyManager
canChangeProperty
in interface PropertyManager
original
- the original object (null for a create query)update
- the updated (or new) objectprop
- the property name / path to query
public PropertyAction canUpdateObject(DBObject original, DBObject update)
PropertyManager
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String)
on all the
differences in the given object to tell whether the update on the given
objects can be done using a CREATE, ALTER or REPLACE as appropriate.
canUpdateObject
in interface PropertyManager
original
- the original object (null for a create query)update
- the updated (or new) object
public PropertyAction canUpdateObject(Difference diff)
PropertyManager
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String)
on all the
differences in the given Difference to tell whether the update on the given
objects can be done using a CREATE, ALTER or REPLACE as appropriate.
canUpdateObject
in interface PropertyManager
diff
- the changes to test
public DDL getCreateDDL(DDLOptions options, DBObject... objects)
DDLGenerator
getCreateDDL
in interface DDLGenerator
public DDL getDeleteDDL(DDLOptions options, DBObject... objects)
DDLGenerator
getDeleteDDL
in interface DDLGenerator
public DDL getUndeleteDDL(DDLOptions options, DBObject... objects)
DDLGenerator
getUndeleteDDL
in interface DDLGenerator
public DDL getUpdateDDL(DDLOptions options, Difference diff)
DDLGenerator
getUpdateDDL
in interface DDLGenerator
public boolean supportsAction(java.lang.String type, PropertyAction.Type action)
PropertyManager
supportsAction
in interface PropertyManager
public boolean supportsProperty(java.lang.String type, java.lang.String prop)
PropertyManager
supportsProperty
in interface PropertyManager
type
- the object type (e.g.
Table.TYPE
).prop
- the property name / path.
|
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 |