public interface SQLHandler
connection in a
different mode.| Modifier and Type | Field and Description |
|---|---|
static String |
CLOSE_PARENTHESIS |
static String |
OPEN_PARENTHESIS |
| Modifier and Type | Method and Description |
|---|---|
ISQLInfo |
alterSQLTable(List sqlTables,
Connection connection)
This method alters a database table.
|
ISQLInfo |
alterSQLTableTransactional(List sqlTables,
Connection connection)
This method alters a database table in transactional mode.
|
ISQLInfo |
createSQLTable(List sqlTables,
Connection connection)
This method creates a database table.
|
ISQLInfo |
createSQLTableTransactional(List sqlTables,
Connection connection)
This method creates a database table in transactional mode.
|
String |
createStatementAlterTable(SQLTableAlter table)
Return the SQL Statement to alter the table.
|
String |
createStatementCreateTable(SQLTableCreation table)
Return the SQL Statement to create the table.
|
String |
createStatementDropTable(SQLTableDrop table)
Return the SQL Statement to drop the table.
|
ISQLInfo |
dropSQLTable(List sqlTables,
Connection connection)
This method drops a database table.
|
ISQLInfo |
dropSQLTableTransactional(List sqlTables,
Connection connection)
This method drops a database table in transactional mode.
|
ISQLInfo |
executeSQLTable(List sqlTables,
Connection connection)
This method executes a serial of SQL actions(create,drop or alter) over a
database table.
|
ISQLInfo |
executeSQLTableTransactional(List sqlTables,
Connection connection)
This method executes a serial of SQL actions(create,drop or alter) over a
database table in transactional mode.
|
String |
getSQLTypeName(int sqlType) |
static final String OPEN_PARENTHESIS
static final String CLOSE_PARENTHESIS
String createStatementCreateTable(SQLTableCreation table) throws Exception
table - The SQLTableCreation table with whole information
to create it.String with the SQL statementExceptionString createStatementDropTable(SQLTableDrop table) throws Exception
table - The SQLTableDrop table with whole information to
drop it.String with the SQL statementExceptionString createStatementAlterTable(SQLTableAlter table) throws Exception
table - The SQLTableAlter table with whole information to
alter it.String with the SQL statementExceptionISQLInfo createSQLTable(List sqlTables, 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 connectionISQLInfo dropSQLTable(List sqlTables, 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 connectionISQLInfo alterSQLTable(List sqlTables, 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 connectionISQLInfo createSQLTableTransactional(List sqlTables, Connection connection) throws Exception
-execute sql to create all tables
sqlTables - list with all sqlTablesconnection - the connectionExceptionISQLInfo dropSQLTableTransactional(List sqlTables, Connection connection) throws Exception
-execute sql to drop all tables
sqlTables - list with all sqlTablesconnection - the connectionExceptionISQLInfo alterSQLTableTransactional(List sqlTables, Connection connection) throws Exception
-execute sql to alter all tables
sqlTables - list with all sqlTablesconnection - the connectionExceptionISQLInfo executeSQLTable(List sqlTables, 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 connectionISQLInfo executeSQLTableTransactional(List sqlTables, Connection connection) throws Exception
sqlTables - list with all sqlTablesconnection - the connectionExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.