Interface TableManager<K,V>
-
- All Superinterfaces:
org.infinispan.persistence.jdbc.common.TableOperations<K,V>
- All Known Implementing Classes:
AbstractTableManager
public interface TableManager<K,V> extends org.infinispan.persistence.jdbc.common.TableOperations<K,V>- Author:
- Ryan Emerson
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTableManager.Metadata
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_FETCH_SIZE
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_FETCH_SIZE
static final int DEFAULT_FETCH_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
void start() throws org.infinispan.persistence.spi.PersistenceException- Throws:
org.infinispan.persistence.spi.PersistenceException
-
stop
void stop() throws org.infinispan.persistence.spi.PersistenceException
- Throws:
org.infinispan.persistence.spi.PersistenceException
-
tableExists
boolean tableExists(Connection connection, TableName tableName)
-
metaTableExists
default boolean metaTableExists(Connection conn)
-
createDataTable
void createDataTable(Connection conn) throws org.infinispan.persistence.spi.PersistenceException
- Throws:
org.infinispan.persistence.spi.PersistenceException
-
dropDataTable
void dropDataTable(Connection conn) throws org.infinispan.persistence.spi.PersistenceException
- Throws:
org.infinispan.persistence.spi.PersistenceException
-
createMetaTable
void createMetaTable(Connection conn) throws org.infinispan.persistence.spi.PersistenceException
- Throws:
org.infinispan.persistence.spi.PersistenceException
-
dropMetaTable
void dropMetaTable(Connection conn) throws org.infinispan.persistence.spi.PersistenceException
- Throws:
org.infinispan.persistence.spi.PersistenceException
-
updateMetaTable
void updateMetaTable(Connection conn) throws org.infinispan.persistence.spi.PersistenceException
Write the latest metadata to the meta table.- Throws:
org.infinispan.persistence.spi.PersistenceException
-
getMetadata
TableManager.Metadata getMetadata(Connection conn) throws org.infinispan.persistence.spi.PersistenceException
- Throws:
org.infinispan.persistence.spi.PersistenceException
-
dropTables
default void dropTables(Connection conn) throws org.infinispan.persistence.spi.PersistenceException
- Throws:
org.infinispan.persistence.spi.PersistenceException
-
getFetchSize
int getFetchSize()
-
getDeleteRowWithExpirationSql
String getDeleteRowWithExpirationSql()
-
getDeleteAllSql
String getDeleteAllSql()
-
getLoadNonExpiredAllRowsSql
String getLoadNonExpiredAllRowsSql()
-
getUpdateRowSql
String getUpdateRowSql()
-
getSelectRowSql
String getSelectRowSql()
-
getLoadAllRowsSql
String getLoadAllRowsSql()
-
getSelectOnlyExpiredRowsSql
String getSelectOnlyExpiredRowsSql()
-
isUpsertSupported
boolean isUpsertSupported()
-
getDataTableName
TableName getDataTableName()
-
getMetaTableName
TableName getMetaTableName()
-
getIdentifierQuoteString
String getIdentifierQuoteString()
-
isStringEncodingRequired
boolean isStringEncodingRequired()
-
prepareUpdateStatement
void prepareUpdateStatement(PreparedStatement ps, String key, long timestamp, int segment, org.infinispan.commons.io.ByteBuffer byteBuffer) throws SQLException
- Throws:
SQLException
-
-