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

E13403-07

oracle.javatools.db.ddl
Interface DDLGenerator<T extends DDLType>

All Superinterfaces:
PropertyManager
All Known Implementing Classes:
BundleDDLGenerator, DelegateDDLGenerator, TokenDDLGenerator

public interface DDLGenerator<T extends DDLType>
extends PropertyManager

A DDLGenerator takes a set of objects, or differences between objects, and returns CREATE, DROP or ALTER statements that can be run against the database to perform operations on the underlying definitions.

This DDLGenerator will replace oracle.javatools.db.DDLGenerator.

The DDLGenerator throws an UnsupportedDDLException when asked to create DDL for object types or differences that it does not support, or where the DDLOptions were not sufficient to allow the operation.

Since:
11

Method Summary
 DDL<T> getCreateDDL(DDLOptions options, DBObject... objects)
          Gets CREATE statements for the given objects.
 DDL<T> getDeleteDDL(DDLOptions options, DBObject... objects)
          Gets DROP statements for the given objects.
 DDL<T> getUndeleteDDL(DDLOptions options, DBObject... objects)
          Gets statements to undelete (e.g.
 DDL<T> getUpdateDDL(DDLOptions options, Difference diff)
          Gets ALTER statements for the given objects where possible, or DROP/CREATE, or CREATE AND REPLACE where appropriate/necessary.
 
Methods inherited from interface oracle.javatools.db.property.PropertyManager
canAlterProperty, canChangeProperty, canUpdateObject, canUpdateObject, supportsAction, supportsProperty
 

Method Detail

getCreateDDL

DDL<T> getCreateDDL(DDLOptions options,
                    DBObject... objects)
Gets CREATE statements for the given objects.


getDeleteDDL

DDL<T> getDeleteDDL(DDLOptions options,
                    DBObject... objects)
Gets DROP statements for the given objects.


getUpdateDDL

DDL<T> getUpdateDDL(DDLOptions options,
                    Difference diff)
Gets ALTER statements for the given objects where possible, or DROP/CREATE, or CREATE AND REPLACE where appropriate/necessary.


getUndeleteDDL

DDL<T> getUndeleteDDL(DDLOptions options,
                      DBObject... objects)
Gets statements to undelete (e.g. FLASHBACK) the given objects.


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

E13403-07

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