public final class DDL<T extends DDLType>
extends java.lang.Object
Replaces oracle.javatools.db.Ddl.
| Constructor and Description | 
|---|
DDL()
Create a new DDL object that is not associated with any one object. 
 | 
DDL(DBObject obj)
Creates a new DDL object which will contain statements to perform actions
 relating to the given object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
append(DDL<T> other)
Appends the given DDL to this one. 
 | 
void | 
append(T type,
      java.lang.String ddl)
Appends the given ddl of specified type. 
 | 
void | 
appendAll(T type,
         java.util.Collection<java.lang.String> ddl)
Appends the given ddls of specified type. 
 | 
DDL<T> | 
copyWithPrompts()
Gets a copy of this DDL object with all the statements prompted as
 appropriate for the command line tool of the native database. 
 | 
java.util.Collection<java.lang.String> | 
get(T type)
Returns the statements cached for the given DDLType. 
 | 
java.util.Collection<java.lang.String> | 
getStatements()
Gets all of the statements in this DDL, in order of execution. 
 | 
void | 
remove(T type)
Removes the given statement type from this DDL (and all the appended
 DDL as well). 
 | 
int | 
size()
Returns the number of statements in this DDL. 
 | 
java.lang.String | 
toString()
Default toString() implementation includes terminators. 
 | 
java.lang.String | 
toString(boolean includeTerminators)
Converts this DDL object into one String containing all the statements. 
 | 
public DDL()
public DDL(DBObject obj)
public void append(T type, java.lang.String ddl)
public void appendAll(T type, java.util.Collection<java.lang.String> ddl)
public void append(DDL<T> other)
other - the DDL to append to this onepublic java.util.Collection<java.lang.String> get(T type)
public void remove(T type)
public int size()
public java.util.Collection<java.lang.String> getStatements()
public java.lang.String toString()
toString in class java.lang.ObjecttoString(boolean)public java.lang.String toString(boolean includeTerminators)
includeTerminators - whether to include terminators