|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to be implemented by all database handlers. Two methods are different
because they manage the parameter connection in a different mode.
| Field Summary | |
static java.lang.String |
CLOSE_PARENTHESIS
|
static java.lang.String |
OPEN_PARENTHESIS
|
| Method Summary | |
ISQLInfo |
alterSQLTable(java.util.List sqlTables,
java.sql.Connection connection)
This method alters a database table. |
ISQLInfo |
alterSQLTableTransactional(java.util.List sqlTables,
java.sql.Connection connection)
This method alters a database table in transactional mode. |
ISQLInfo |
createSQLTable(java.util.List sqlTables,
java.sql.Connection connection)
This method creates a database table. |
ISQLInfo |
createSQLTableTransactional(java.util.List sqlTables,
java.sql.Connection connection)
This method creates a database table in transactional mode. |
java.lang.String |
createStatementAlterTable(SQLTableAlter table)
Return the SQL Statement to alter the table. |
java.lang.String |
createStatementCreateTable(SQLTableCreation table)
Return the SQL Statement to create the table. |
java.lang.String |
createStatementDropTable(SQLTableDrop table)
Return the SQL Statement to drop the table. |
ISQLInfo |
dropSQLTable(java.util.List sqlTables,
java.sql.Connection connection)
This method drops a database table. |
ISQLInfo |
dropSQLTableTransactional(java.util.List sqlTables,
java.sql.Connection connection)
This method drops a database table in transactional mode. |
ISQLInfo |
executeSQLTable(java.util.List sqlTables,
java.sql.Connection connection)
This method executes a serial of SQL actions(create,drop or alter) over a database table. |
ISQLInfo |
executeSQLTableTransactional(java.util.List sqlTables,
java.sql.Connection connection)
This method executes a serial of SQL actions(create,drop or alter) over a database table in transactional mode. |
java.lang.String |
getSQLTypeName(int sqlType)
|
| Field Detail |
public static final java.lang.String OPEN_PARENTHESIS
public static final java.lang.String CLOSE_PARENTHESIS
| Method Detail |
public java.lang.String createStatementCreateTable(SQLTableCreation table)
throws java.lang.Exception
table - The SQLTableCreation table with whole information to create it.
String with the SQL statement
java.lang.Exception
public java.lang.String createStatementDropTable(SQLTableDrop table)
throws java.lang.Exception
table - The SQLTableDrop table with whole information to drop it.
String with the SQL statement
java.lang.Exception
public java.lang.String createStatementAlterTable(SQLTableAlter table)
throws java.lang.Exception
table - The SQLTableAlter table with whole information to alter it.
String with the SQL statement
java.lang.Exception
public ISQLInfo createSQLTable(java.util.List sqlTables,
java.sql.Connection connection)
commit or the method rollback. Moreover, Exceptions
are also managed by this method.
-connection.setAutoCommit(false);
...
...
-createSQLTableTransactional
...
...
-connection.setAutoCommit(true);
sqlTables - list with all sqlTablesconnection - the connection
public ISQLInfo dropSQLTable(java.util.List sqlTables,
java.sql.Connection connection)
commit or the method rollback. Moreover, Exceptions
are also managed by this method.
-connection.setAutoCommit(false);
...
...
-dropSQLTableTransactional
...
...
-connection.setAutoCommit(true);
sqlTables - list with all sqlTablesconnection - the connection
public ISQLInfo alterSQLTable(java.util.List sqlTables,
java.sql.Connection connection)
commit or the method rollback. Moreover, Exceptions
are also managed by this method.
-connection.setAutoCommit(false);
...
...
-alterSQLTableTransactional
...
...
-connection.setAutoCommit(true);
sqlTables - list with all sqlTablesconnection - the connection
public ISQLInfo createSQLTableTransactional(java.util.List sqlTables,
java.sql.Connection connection)
throws java.lang.Exception
-execute sql to create all tables
sqlTables - list with all sqlTablesconnection - the connection
java.lang.Exception
public ISQLInfo dropSQLTableTransactional(java.util.List sqlTables,
java.sql.Connection connection)
throws java.lang.Exception
-execute sql to drop all tables
sqlTables - list with all sqlTablesconnection - the connection
java.lang.Exception
public ISQLInfo alterSQLTableTransactional(java.util.List sqlTables,
java.sql.Connection connection)
throws java.lang.Exception
-execute sql to alter all tables
sqlTables - list with all sqlTablesconnection - the connection
java.lang.Exception
public ISQLInfo executeSQLTable(java.util.List sqlTables,
java.sql.Connection connection)
commit or the method rollback. Moreover, Exceptions
are also managed by this method.
-connection.setAutoCommit(false);
...
...
-executeSQLTableTransactional
...
...
-connection.setAutoCommit(true);
sqlTables - list with all sqlTablesconnection - the connection
public ISQLInfo executeSQLTableTransactional(java.util.List sqlTables,
java.sql.Connection connection)
throws java.lang.Exception
sqlTables - list with all sqlTablesconnection - the connection
java.lang.Exception
public java.lang.String getSQLTypeName(int sqlType)
throws java.lang.Exception
java.lang.Exception
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||