public class TableManipulation extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
DatabaseType |
databaseType |
static int |
DEFAULT_BATCH_SIZE |
static int |
DEFAULT_FETCH_SIZE |
Constructor and Description |
---|
TableManipulation() |
TableManipulation(String idColumnName,
String idColumnType,
String tableNamePrefix,
String dataColumnName,
String dataColumnType,
String timestampColumnName,
String timestampColumnType) |
public static final int DEFAULT_FETCH_SIZE
public static final int DEFAULT_BATCH_SIZE
public DatabaseType databaseType
public TableManipulation(String idColumnName, String idColumnType, String tableNamePrefix, String dataColumnName, String dataColumnType, String timestampColumnName, String timestampColumnType)
public TableManipulation()
public boolean tableExists(Connection connection, String tableName) throws CacheLoaderException
CacheLoaderException
public void createTable(Connection conn) throws CacheLoaderException
CacheLoaderException
public void dropTable(Connection conn) throws CacheLoaderException
CacheLoaderException
public void setIdColumnName(String idColumnName)
public void setIdColumnType(String idColumnType)
public void setTableNamePrefix(String tableNamePrefix)
public void setDataColumnName(String dataColumnName)
public void setDataColumnType(String dataColumnType)
public void setTimestampColumnName(String timestampColumnName)
public void setTimestampColumnType(String timestampColumnType)
public boolean isCreateTableOnStart()
public void setCreateTableOnStart(boolean createTableOnStart)
public boolean isDropTableOnExit()
public void setDropTableOnExit(boolean dropTableOnExit)
public void start(ConnectionFactory connectionFactory) throws CacheLoaderException
CacheLoaderException
public void stop() throws CacheLoaderException
CacheLoaderException
public String getInsertRowSql()
public String getUpdateRowSql()
public String getSelectRowSql()
public String getSelectIdRowSql()
public String getDeleteRowSql()
public String getLoadNonExpiredAllRowsSql()
public String getLoadAllRowsSql()
public String getDeleteAllRowsSql()
public String getSelectExpiredRowsSql()
public String getDeleteExpiredRowsSql()
public TableManipulation clone()
public String getTableName()
public String getUnquotedTableName()
public String getIdentifierQuoteString()
public String getTableNamePrefix()
public boolean tableExists(Connection connection) throws CacheLoaderException
CacheLoaderException
public String getIdColumnName()
public String getIdColumnType()
public String getDataColumnName()
public String getDataColumnType()
public String getTimestampColumnName()
public String getTimestampColumnType()
public int getFetchSize()
CacheStore.toStream(java.io.ObjectOutput)
) the fetch size
will be set on ResultSet.setFetchSize(int)
. This is optional parameter, if not specified will be
defaulted to DEFAULT_FETCH_SIZE
.public void setFetchSize(int fetchSize)
getFetchSize()
public int getBatchSize()
CacheStore.fromStream(java.io.ObjectInput)
this will be batched according to this parameter. This is an optional parameter, and if it is not specified it
will be defaulted to DEFAULT_BATCH_SIZE
.public void setBatchSize(int batchSize)
getBatchSize()
public void setCacheName(String cacheName)
public boolean isVariableLimitSupported()
public String getLoadSomeRowsSql()
public String getLoadAllKeysBinarySql()
public String getLoadAllKeysStringSql()
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.