|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.util.db.Schema
public class Schema
| Nested Class Summary | |
|---|---|
static interface |
Schema.Column
Interface or table columns |
static class |
Schema.DBType
DB types |
static interface |
Schema.Index
Interface for Index |
static interface |
Schema.Table
Interface for DB Table |
| Constructor Summary | |
|---|---|
Schema()
|
|
| Method Summary | |
|---|---|
static String |
generateCreateIndexScript(Schema.Index index,
Schema.DBType dbType)
Generates the SQL statement for creating the Index |
static String |
generateCreateTableScript(Schema.Table table,
Schema.DBType dbType,
List<Schema.Column> tableColumns)
Generates the SQL Statement for creating the table |
static String |
generateDropTableScript(Schema.Table table,
Schema.DBType dbType)
Generates the SQL Statement for droping the table |
static String |
getDbDataType(Schema.Column column,
Schema.DBType dbType)
Returns the appropriate DB type for given column according to the DB Type |
static boolean |
isHsqlConnection(Connection conn)
Checks if the given connection's driver is HSQL Database Driver |
static boolean |
isMySqlConnection(Connection conn)
Checks if the given connection's driver is MySQL Database Driver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Schema()
| Method Detail |
|---|
public static String getDbDataType(Schema.Column column,
Schema.DBType dbType)
column - dbType -
public static String generateCreateTableScript(Schema.Table table,
Schema.DBType dbType,
List<Schema.Column> tableColumns)
table - dbType - tableColumns -
public static String generateDropTableScript(Schema.Table table,
Schema.DBType dbType)
table - dbType -
public static String generateCreateIndexScript(Schema.Index index,
Schema.DBType dbType)
index - dbType -
public static boolean isHsqlConnection(Connection conn)
throws SQLException
conn -
SQLException
public static boolean isMySqlConnection(Connection conn)
throws SQLException
conn -
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||