public abstract class JDBCImple_driver extends Object
Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<Connection> |
connection |
protected String |
tableName |
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(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 static ThreadLocal<Connection> connection
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
public 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
protected 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(SQLException ex) throws SQLException
SQLException
public int getMaxStateSize()
protected void updateBytes(ResultSet rs, int i, byte[] b) throws SQLException
SQLException
Copyright © 2013. All rights reserved.