}
public PersistentStore getStore(Object key) {
try {
TableBase table = (TableBase) key;
PersistentStore store;
switch (table.persistenceScope) {
case TableBase.SCOPE_STATEMENT :
store = (PersistentStore) rowStoreMapStatement.get(
table.getPersistenceId());
if (store == null) {
store = session.database.logger.newStore(session,
this, table, true);
}
return store;
case TableBase.SCOPE_TRANSACTION :
store = (PersistentStore) rowStoreMapTransaction.get(
table.getPersistenceId());
if (store == null) {
store = session.database.logger.newStore(session,
this, table, true);
}
return store;
case TableBase.SCOPE_SESSION :
store = (PersistentStore) rowStoreMapSession.get(
table.getPersistenceId());
if (store == null) {
store = session.database.logger.newStore(session,
this, table, true);
}