|
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.AbstractDDLGenerator
DDLGenerator
has been deprecated
@Deprecated public abstract class AbstractDDLGenerator
All the DDL generators extend this class. This class contains methods common to all the DDL generators
Constructor Summary | |
---|---|
AbstractDDLGenerator()
Deprecated. |
Method Summary | |
---|---|
PropertyAction |
canChangeProperty(DBObject original,
DBObject update,
java.lang.Object prop)
Deprecated. Queries the support for setting or changing the given property for a create or update. |
boolean |
canGenerateCreateDDL(java.lang.String type)
Deprecated. |
PropertyAction |
canUpdateObject(DBObject orig,
DBObject update)
Deprecated. Convenience method that uses PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.Object) 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(ResultSet rs)
Deprecated. Convenience method that uses PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.Object) on all the
differences in the given ResultSet to tell whether the update on the given
objects can be done using a CREATE, ALTER or REPLACE as appropriate. |
protected void |
copyRegisteredGenerators(AbstractDDLGenerator aDdlGen)
Deprecated. |
protected DDLGenerator |
getAlterDDLGenerator(java.lang.String type)
Deprecated. |
protected java.util.Collection<DDLGenerator> |
getAlterDDLGenerators()
Deprecated. |
DDL |
getCreateDDL(DDLOptions options,
DBObject... objects)
Deprecated. Gets CREATE statements for the given objects. |
protected DDLGenerator |
getDDLGenerator(java.lang.String type)
Deprecated. |
protected java.util.Collection<DDLGenerator> |
getDDLGenerators()
Deprecated. |
DDL |
getDeleteDDL(DDLOptions options,
DBObject... objects)
Deprecated. Gets DROP statements for the given objects. |
DDL |
getUndeleteDDL(DDLOptions options,
DBObject... objects)
Deprecated. Gets statements to undelete (e.g. |
DDL |
getUpdateDDL(DDLOptions options,
ResultSet rs)
Deprecated. Gets ALTER statements for the given objects where possible, or DROP/CREATE, or CREATE AND REPLACE where appropriate/necessary. |
protected void |
registerAlterDDLGenerator(java.lang.String type,
DDLGenerator ddlGen)
Deprecated. |
protected void |
registerDDLGenerator(java.lang.String type,
DDLGenerator ddlGen)
Deprecated. |
void |
setNewOptions(DDLOptions options)
Deprecated. Some old DDLGenerator implementations held the options for generation as part of their own state rather than being passed through the get*DDL methods. |
boolean |
supportsAction(java.lang.String type,
PropertyAction action)
Deprecated. Asks whether a given action is supported for the specified object type in this provider. |
boolean |
supportsProperty(java.lang.String type,
java.lang.Object prop)
Deprecated. 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 |
Methods inherited from interface oracle.javatools.db.DDLGenerator |
---|
getCreateDDL, getCreateDDL, getCreateDDL, getDeleteDDL, getDeleteDDL, getDeleteDDL, getUpdateDDL, getUpdateDDL, getUpdateDDL |
Constructor Detail |
---|
public AbstractDDLGenerator()
Method Detail |
---|
public void setNewOptions(DDLOptions options)
The implementation of this method is therefore only necessary for old, deprecated generators to still function during the transition.
options
- the options for generation (when coming from the new
DDLGeneration framework).protected void registerDDLGenerator(java.lang.String type, DDLGenerator ddlGen)
protected DDLGenerator getDDLGenerator(java.lang.String type)
public boolean canGenerateCreateDDL(java.lang.String type)
protected java.util.Collection<DDLGenerator> getDDLGenerators()
protected void registerAlterDDLGenerator(java.lang.String type, DDLGenerator ddlGen)
protected DDLGenerator getAlterDDLGenerator(java.lang.String type)
protected java.util.Collection<DDLGenerator> getAlterDDLGenerators()
protected void copyRegisteredGenerators(AbstractDDLGenerator aDdlGen)
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 getUpdateDDL(DDLOptions options, ResultSet rs)
DDLGenerator
getUpdateDDL
in interface DDLGenerator
public PropertyAction canChangeProperty(DBObject original, DBObject update, java.lang.Object prop)
PropertyManager
canChangeProperty
in interface PropertyManager
original
- the original object (null for a create query)update
- the updated (or new) objectprop
- the property to query (will use .toString())
public boolean supportsAction(java.lang.String type, PropertyAction action)
PropertyManager
supportsAction
in interface PropertyManager
public boolean supportsProperty(java.lang.String type, java.lang.Object prop)
PropertyManager
supportsProperty
in interface PropertyManager
type
- the object type (e.g.
Table.TYPE
).prop
- the property name (will use .toString())
public DDL getUndeleteDDL(DDLOptions options, DBObject... objects)
DDLGenerator
getUndeleteDDL
in interface DDLGenerator
public PropertyAction canUpdateObject(DBObject orig, DBObject update)
PropertyManager
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.Object)
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
orig
- the original object (null for a create query)update
- the updated (or new) object
public PropertyAction canUpdateObject(ResultSet rs)
PropertyManager
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.Object)
on all the
differences in the given ResultSet to tell whether the update on the given
objects can be done using a CREATE, ALTER or REPLACE as appropriate.
canUpdateObject
in interface PropertyManager
rs
- the changes to test
|
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 |