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) |
boolean |
write_state(Uid objUid,
String typeName,
OutputObjectState state,
int stateType) |
protected String tableName
public boolean commit_state(Uid objUid, String typeName) throws ObjectStoreException
ObjectStoreException
public boolean hide_state(Uid objUid, String typeName) throws ObjectStoreException
ObjectStoreException
public boolean reveal_state(Uid objUid, String typeName) throws ObjectStoreException
ObjectStoreException
public int currentState(Uid objUid, String typeName) throws ObjectStoreException
ObjectStoreException
- - in case the JDBC store cannot be contactedpublic boolean allObjUids(String typeName, InputObjectState state, int match) throws ObjectStoreException
ObjectStoreException
public boolean allTypes(InputObjectState foundTypes) throws ObjectStoreException
ObjectStoreException
public boolean remove_state(Uid objUid, String typeName, int stateType) throws ObjectStoreException
ObjectStoreException
public InputObjectState read_state(Uid objUid, String typeName, int stateType) throws ObjectStoreException
ObjectStoreException
public boolean write_state(Uid objUid, String typeName, OutputObjectState state, int stateType) throws ObjectStoreException
ObjectStoreException
public void initialise(JDBCAccess jdbcAccess, String tableName, ObjectStoreEnvironmentBean jdbcStoreEnvironmentBean) throws SQLException, NamingException
NamingException
SQLException
- In case the configured store cannot be connected toprotected void createTable(Statement stmt, String tableName) throws SQLException
SQLException
protected String getObjectStateSQLType()
protected abstract void checkCreateTableError(SQLException ex) throws SQLException
SQLException
protected abstract void checkDropTableException(Connection connection, SQLException ex) throws SQLException
SQLException
public int getMaxStateSize()
Copyright © 2021 JBoss by Red Hat. All rights reserved.