|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.db.ddl.DDL<T>
public final class DDL<T extends DDLType>
Class that repsents single, or multiple, statements of DDL to be executed against a database connection. Statements are kept by DDLType, so that execution can occur in the order that these statement are designed to be executed (e.g. CREATE TABLE before ALTER TABLE).
Replaces oracle.javatools.db.Ddl.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DDL()
public DDL(DBObject obj)
Method Detail |
---|
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 int size()
public java.util.Collection<java.lang.String> getStatements()
public java.lang.String toString()
toString
in class java.lang.Object
toString(boolean)
public java.lang.String toString(boolean includeTerminators)
includeTerminators
- whether to include terminatorspublic DDL<T> copyWithPrompts()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |