|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.ddl.DDLUtils
public class DDLUtils
DDLUtils is a collection of utilities related to creating and executing Data Definition Language (DDL) statements.
| Method Summary | |
|---|---|
static DDLGenerator |
createDDLGenerator(ca.sqlpower.sql.SPDataSource ads)
|
static java.util.Vector<java.lang.Class<? extends DDLGenerator>> |
getDDLTypes(ca.sqlpower.sql.DataSourceCollection dsc)
Finds all DDL Generators configured in the given data source collection. |
static java.lang.String |
toQualifiedName(SQLTable table)
Returns the appropriate dot-separated fully qualified name for the given table, based on its Schema and Catalog ancestors, if any. |
static java.lang.String |
toQualifiedName(java.lang.String catalog,
java.lang.String schema,
java.lang.String name)
Formats the components of a fully qualified database object name into the standard SQL "dot notation". |
static java.lang.String |
toQualifiedName(java.lang.String catalog,
java.lang.String schema,
java.lang.String name,
java.lang.String openQuote,
java.lang.String closeQuote)
Formats the components of a fully qualified database object name into the standard SQL "dot notation", with quote. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String toQualifiedName(SQLTable table)
table - The SQLTable instance to get the qualified name of
java.lang.NullPointerException - if table is null
public static java.lang.String toQualifiedName(java.lang.String catalog,
java.lang.String schema,
java.lang.String name)
catalog - The catalog name of the object, or null if it has no catalogschema - The schema name of the object, or null if it has no schemaname - The name of the object (null is not acceptable)
public static java.lang.String toQualifiedName(java.lang.String catalog,
java.lang.String schema,
java.lang.String name,
java.lang.String openQuote,
java.lang.String closeQuote)
catalog - The catalog name of the object, or null if it has no catalogschema - The schema name of the object, or null if it has no schemaname - The name of the object (null is not acceptable)openQuote - openning quotecloseQuote - closing quote
public static java.util.Vector<java.lang.Class<? extends DDLGenerator>> getDDLTypes(ca.sqlpower.sql.DataSourceCollection dsc)
public static DDLGenerator createDDLGenerator(ca.sqlpower.sql.SPDataSource ads)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||