Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

oracle.javatools.db
Class AbstractDDLGenerator

java.lang.Object
  extended by oracle.javatools.db.AbstractDDLGenerator
All Implemented Interfaces:
DDLGenerator, PropertyManager

Deprecated. - DDLGenerator has been deprecated

@Deprecated
public abstract class AbstractDDLGenerator
extends java.lang.Object
implements DDLGenerator, DDLGenerator

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

AbstractDDLGenerator

public AbstractDDLGenerator()
Deprecated. 
Method Detail

setNewOptions

public 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. This method allows old implementations to take the options from the new DDLOptions class during the transition process to the new API.

The implementation of this method is therefore only necessary for old, deprecated generators to still function during the transition.

Parameters:
options - the options for generation (when coming from the new DDLGeneration framework).

registerDDLGenerator

protected void registerDDLGenerator(java.lang.String type,
                                    DDLGenerator ddlGen)
Deprecated. 

getDDLGenerator

protected DDLGenerator getDDLGenerator(java.lang.String type)
Deprecated. 

canGenerateCreateDDL

public boolean canGenerateCreateDDL(java.lang.String type)
Deprecated. 

getDDLGenerators

protected java.util.Collection<DDLGenerator> getDDLGenerators()
Deprecated. 

registerAlterDDLGenerator

protected void registerAlterDDLGenerator(java.lang.String type,
                                         DDLGenerator ddlGen)
Deprecated. 

getAlterDDLGenerator

protected DDLGenerator getAlterDDLGenerator(java.lang.String type)
Deprecated. 

getAlterDDLGenerators

protected java.util.Collection<DDLGenerator> getAlterDDLGenerators()
Deprecated. 

copyRegisteredGenerators

protected void copyRegisteredGenerators(AbstractDDLGenerator aDdlGen)
Deprecated. 

getCreateDDL

public DDL getCreateDDL(DDLOptions options,
                        DBObject... objects)
Deprecated. 
Description copied from interface: DDLGenerator
Gets CREATE statements for the given objects.

Specified by:
getCreateDDL in interface DDLGenerator

getDeleteDDL

public DDL getDeleteDDL(DDLOptions options,
                        DBObject... objects)
Deprecated. 
Description copied from interface: DDLGenerator
Gets DROP statements for the given objects.

Specified by:
getDeleteDDL in interface DDLGenerator

getUpdateDDL

public DDL getUpdateDDL(DDLOptions options,
                        ResultSet rs)
Deprecated. 
Description copied from interface: DDLGenerator
Gets ALTER statements for the given objects where possible, or DROP/CREATE, or CREATE AND REPLACE where appropriate/necessary.

Specified by:
getUpdateDDL in interface DDLGenerator

canChangeProperty

public PropertyAction canChangeProperty(DBObject original,
                                        DBObject update,
                                        java.lang.Object prop)
Deprecated. 
Description copied from interface: PropertyManager
Queries the support for setting or changing the given property for a create or update. If the original object is null then the request is to test whether the given property is settable on a new object. If the original object is not null the request is to test whether the given property can be changed, and if so whether the change can be applied by an update/alter or whether a replace/recreate is needed.

Specified by:
canChangeProperty in interface PropertyManager
Parameters:
original - the original object (null for a create query)
update - the updated (or new) object
prop - the property to query (will use .toString())
Returns:
an appropriate property action indicating the level of support for that property if supported, or null if the property is not supported.

supportsAction

public boolean supportsAction(java.lang.String type,
                              PropertyAction action)
Deprecated. 
Description copied from interface: PropertyManager
Asks whether a given action is supported for the specified object type in this provider.

Specified by:
supportsAction in interface PropertyManager

supportsProperty

public boolean supportsProperty(java.lang.String type,
                                java.lang.Object prop)
Deprecated. 
Description copied from interface: PropertyManager
Tests whether the given property is supported for the given object type.

Specified by:
supportsProperty in interface PropertyManager
Parameters:
type - the object type (e.g. Table.TYPE ).
prop - the property name (will use .toString())
Returns:
true if the property is valid for the given object type in the provider for this property manager

getUndeleteDDL

public DDL getUndeleteDDL(DDLOptions options,
                          DBObject... objects)
Deprecated. 
Description copied from interface: DDLGenerator
Gets statements to undelete (e.g. FLASHBACK) the given objects.

Specified by:
getUndeleteDDL in interface DDLGenerator

canUpdateObject

public PropertyAction canUpdateObject(DBObject orig,
                                      DBObject update)
Deprecated. 
Description copied from interface: PropertyManager
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.

Specified by:
canUpdateObject in interface PropertyManager
Parameters:
orig - the original object (null for a create query)
update - the updated (or new) object
Returns:
an appropriate property action indicating the level support if the update is supported, or null if the update is not supported.

canUpdateObject

public PropertyAction canUpdateObject(ResultSet rs)
Deprecated. 
Description copied from interface: PropertyManager
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.

Specified by:
canUpdateObject in interface PropertyManager
Parameters:
rs - the changes to test
Returns:
an appropriate property action indicating the level support if the update is supported, or null if the update is not supported.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

Copyright © 1997, 2009, Oracle. All rights reserved.