public class SQLHistoryInterface
extends java.lang.Object
Constructor and Description |
---|
SQLHistoryInterface(javax.sql.DataSource dataSource,
DatabaseType databaseType,
java.lang.String tablePrefix)
Instantiates a new sQL history interface.
|
Modifier and Type | Method and Description |
---|---|
void |
checkInPreparedStatement(java.sql.PreparedStatement statement)
Check in prepared statement.
|
java.sql.PreparedStatement |
checkOutPreparedStatement(java.lang.String sql)
Check out prepared statement.
|
void |
dropTables()
Drop tables.
|
java.lang.String |
getKey()
Gets the key.
|
protected LgLoggerIF |
getLogger()
Gets the logger.
|
SQLTableConstants |
getSQLTableConstants()
Gets the sQL table constants.
|
SQLTableUtilities |
getSQLTableUtilities()
Deprecated.
|
java.lang.String |
getTableName(java.lang.String tableKey)
Gets the table name.
|
java.lang.String |
getTablePrefix()
Return the table prefix that this SQL Interface is accessing.
|
java.sql.PreparedStatement |
modifyAndCheckOutPreparedStatement(java.lang.String sql)
Modify and check out prepared statement.
|
void |
setKey(java.lang.String key)
Sets the key.
|
boolean |
supports2009Model()
Supports2009 model.
|
public SQLHistoryInterface(javax.sql.DataSource dataSource, DatabaseType databaseType, java.lang.String tablePrefix)
dataSource
- the data sourcedatabaseType
- the database typetablePrefix
- the table prefixprotected LgLoggerIF getLogger()
@Deprecated public SQLTableUtilities getSQLTableUtilities()
public boolean supports2009Model()
public SQLTableConstants getSQLTableConstants()
public java.lang.String getTableName(java.lang.String tableKey)
tableKey
- the table keypublic java.sql.PreparedStatement modifyAndCheckOutPreparedStatement(java.lang.String sql) throws java.sql.SQLException
sql
- the sqljava.sql.SQLException
- the SQL exceptionpublic java.sql.PreparedStatement checkOutPreparedStatement(java.lang.String sql) throws java.sql.SQLException
sql
- the sqljava.sql.SQLException
- the SQL exceptionpublic void checkInPreparedStatement(java.sql.PreparedStatement statement)
statement
- the statementpublic void dropTables() throws java.sql.SQLException
java.sql.SQLException
- the SQL exceptionpublic java.lang.String getTablePrefix()
public void setKey(java.lang.String key)
key
- the new keypublic java.lang.String getKey()