public abstract class JDBCImple_driver extends Object
| Constructor and Description |
|---|
JDBCImple_driver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allObjUids(String typeName,
InputObjectState state,
int match)
allObjUids - Given a type name, return an ObjectState that contains all
of the uids of objects of that type.
|
boolean |
allTypes(InputObjectState foundTypes) |
protected abstract void |
checkCreateTableError(SQLException ex) |
protected abstract void |
checkDropTableException(Connection connection,
SQLException ex) |
boolean |
commit_state(Uid objUid,
String typeName) |
protected void |
createTable(Statement stmt,
String tableName)
Can be overridden by implementation-specific code to create the store
table.
|
int |
currentState(Uid objUid,
String typeName)
currentState - determine the current state of an object.
|
int |
getMaxStateSize() |
protected String |
getObjectStateSQLType() |
boolean |
hide_state(Uid objUid,
String typeName) |
void |
initialise(JDBCAccess jdbcAccess,
String tableName,
ObjectStoreEnvironmentBean jdbcStoreEnvironmentBean)
Set up the store for use.
|
InputObjectState |
read_state(Uid objUid,
String typeName,
int stateType) |
boolean |
remove_state(Uid objUid,
String typeName,
int stateType) |
boolean |
reveal_state(Uid objUid,
String typeName) |
protected void |
updateBytes(ResultSet rs,
int i,
byte[] b) |
boolean |
write_state(Uid objUid,
String typeName,
OutputObjectState state,
int stateType) |
protected String tableName
public boolean commit_state(Uid objUid, String typeName) throws ObjectStoreException
ObjectStoreExceptionpublic boolean hide_state(Uid objUid, String typeName) throws ObjectStoreException
ObjectStoreExceptionpublic boolean reveal_state(Uid objUid, String typeName) throws ObjectStoreException
ObjectStoreExceptionpublic int currentState(Uid objUid, String typeName) throws ObjectStoreException
ObjectStoreExceptionpublic boolean allObjUids(String typeName, InputObjectState state, int match) throws ObjectStoreException
ObjectStoreExceptionpublic boolean allTypes(InputObjectState foundTypes) throws ObjectStoreException
ObjectStoreExceptionpublic boolean remove_state(Uid objUid, String typeName, int stateType) throws ObjectStoreException
ObjectStoreExceptionpublic InputObjectState read_state(Uid objUid, String typeName, int stateType) throws ObjectStoreException
ObjectStoreExceptionpublic boolean write_state(Uid objUid, String typeName, OutputObjectState state, int stateType) throws ObjectStoreException
ObjectStoreExceptionpublic void initialise(JDBCAccess jdbcAccess, String tableName, ObjectStoreEnvironmentBean jdbcStoreEnvironmentBean) throws SQLException, NamingException
NamingException{@link - FatalError} In case the configured store cannot be connected toSQLExceptionprotected void createTable(Statement stmt, String tableName) throws SQLException
SQLExceptionprotected String getObjectStateSQLType()
protected abstract void checkCreateTableError(SQLException ex) throws SQLException
SQLExceptionprotected abstract void checkDropTableException(Connection connection, SQLException ex) throws SQLException
SQLExceptionpublic int getMaxStateSize()
protected void updateBytes(ResultSet rs, int i, byte[] b) throws SQLException
SQLExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.