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(TableManipulationConfiguration config) |
public static final int DEFAULT_FETCH_SIZE
public static final int DEFAULT_BATCH_SIZE
public DatabaseType databaseType
public TableManipulation(TableManipulationConfiguration config)
public TableManipulation()
public boolean tableExists(Connection connection, TableName tableName) throws PersistenceException
PersistenceException
public void createTable(Connection conn) throws PersistenceException
PersistenceException
public void dropTable(Connection conn) throws PersistenceException
PersistenceException
public void start(ConnectionFactory connectionFactory) throws PersistenceException
PersistenceException
public void stop() throws PersistenceException
PersistenceException
public String getInsertRowSql()
public String getUpdateRowSql()
public String getSelectRowSql()
public String getSelectIdRowSql()
public String getCountRowsSql()
public String getDeleteRowSql()
public String getLoadNonExpiredAllRowsSql()
public String getLoadAllRowsSql()
public String getDeleteAllRowsSql()
public String getSelectExpiredRowsSql()
public String getDeleteExpiredRowsSql()
public TableManipulation clone()
public TableName getTableName()
public boolean tableExists(Connection connection) throws PersistenceException
PersistenceException
public void setCacheName(String cacheName)
public boolean isVariableLimitSupported()
public String getLoadSomeRowsSql()
public String getLoadAllKeysBinarySql()
public String getLoadAllKeysStringSql()
public int getFetchSize()
ResultSet.setFetchSize(int)
. This is optional parameter,
if not specified will be defaulted to DEFAULT_FETCH_SIZE
.public int getBatchSize()
DEFAULT_BATCH_SIZE
. Guaranteed to be a power of two.public String getIdentifierQuoteString()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.