public abstract class AbstractTableManager extends Object implements TableManager
| Modifier and Type | Field and Description |
|---|---|
protected String |
cacheName |
protected TableManipulationConfiguration |
config |
protected ConnectionFactory |
connectionFactory |
protected String |
countRowsSql |
protected String |
deleteAllRows |
protected String |
deleteExpiredRowsSql |
protected String |
deleteRowSql |
protected String |
identifierQuoteString |
protected String |
insertRowSql |
protected String |
loadAllNonExpiredRowsSql |
protected String |
loadAllRowsSql |
protected org.infinispan.persistence.jdbc.table.management.DbMetaData |
metaData |
protected String |
selectExpiredRowsSql |
protected String |
selectIdRowSql |
protected String |
selectRowSql |
protected TableName |
tableName |
protected String |
updateRowSql |
DEFAULT_BATCH_SIZE, DEFAULT_FETCH_SIZE| Modifier and Type | Method and Description |
|---|---|
void |
createTable(Connection conn) |
void |
dropTable(Connection conn) |
String |
encodeString(String string) |
void |
executeUpdateSql(Connection conn,
String sql) |
int |
getBatchSize() |
String |
getCountRowsSql() |
String |
getDeleteAllRowsSql() |
String |
getDeleteExpiredRowsSql() |
String |
getDeleteRowSql() |
int |
getFetchSize() |
String |
getIdentifierQuoteString() |
String |
getInsertRowSql() |
String |
getLoadAllRowsSql() |
String |
getLoadNonExpiredAllRowsSql() |
String |
getSelectExpiredRowsSql() |
String |
getSelectIdRowSql() |
String |
getSelectRowSql() |
TableName |
getTableName() |
String |
getUpdateRowSql() |
boolean |
isStringEncodingRequired() |
void |
setCacheName(String cacheName) |
void |
start() |
void |
stop() |
boolean |
tableExists(Connection connection) |
boolean |
tableExists(Connection connection,
TableName tableName) |
protected final ConnectionFactory connectionFactory
protected final TableManipulationConfiguration config
protected String identifierQuoteString
protected String cacheName
protected org.infinispan.persistence.jdbc.table.management.DbMetaData metaData
protected TableName tableName
protected String insertRowSql
protected String updateRowSql
protected String selectRowSql
protected String selectIdRowSql
protected String deleteRowSql
protected String loadAllRowsSql
protected String countRowsSql
protected String loadAllNonExpiredRowsSql
protected String deleteAllRows
protected String selectExpiredRowsSql
protected String deleteExpiredRowsSql
public void start()
throws PersistenceException
start in interface TableManagerPersistenceExceptionpublic void stop()
throws PersistenceException
stop in interface TableManagerPersistenceExceptionpublic void setCacheName(String cacheName)
setCacheName in interface TableManagerpublic boolean tableExists(Connection connection) throws PersistenceException
tableExists in interface TableManagerPersistenceExceptionpublic boolean tableExists(Connection connection, TableName tableName) throws PersistenceException
tableExists in interface TableManagerPersistenceExceptionpublic void createTable(Connection conn) throws PersistenceException
createTable in interface TableManagerPersistenceExceptionpublic void executeUpdateSql(Connection conn, String sql) throws PersistenceException
PersistenceExceptionpublic void dropTable(Connection conn) throws PersistenceException
dropTable in interface TableManagerPersistenceExceptionpublic int getFetchSize()
getFetchSize in interface TableManagerpublic int getBatchSize()
getBatchSize in interface TableManagerpublic String getIdentifierQuoteString()
getIdentifierQuoteString in interface TableManagerpublic TableName getTableName()
getTableName in interface TableManagerpublic String getInsertRowSql()
getInsertRowSql in interface TableManagerpublic String getUpdateRowSql()
getUpdateRowSql in interface TableManagerpublic String getSelectRowSql()
getSelectRowSql in interface TableManagerpublic String getSelectIdRowSql()
getSelectIdRowSql in interface TableManagerpublic String getCountRowsSql()
getCountRowsSql in interface TableManagerpublic String getDeleteRowSql()
getDeleteRowSql in interface TableManagerpublic String getLoadNonExpiredAllRowsSql()
getLoadNonExpiredAllRowsSql in interface TableManagerpublic String getLoadAllRowsSql()
getLoadAllRowsSql in interface TableManagerpublic String getDeleteAllRowsSql()
getDeleteAllRowsSql in interface TableManagerpublic String getSelectExpiredRowsSql()
getSelectExpiredRowsSql in interface TableManagerpublic String getDeleteExpiredRowsSql()
getDeleteExpiredRowsSql in interface TableManagerpublic boolean isStringEncodingRequired()
isStringEncodingRequired in interface TableManagerpublic String encodeString(String string)
encodeString in interface TableManagerCopyright © 2021 JBoss, a division of Red Hat. All rights reserved.