return (PersistentStore) rowStoreMapStatement.get(persistenceId);
}
synchronized public PersistentStore getStore(Object key) {
TableBase table = (TableBase) key;
PersistentStore store;
switch (table.persistenceScope) {
case TableBase.SCOPE_ROUTINE :
store = (PersistentStore) rowStoreMapRoutine.get(
table.getPersistenceId());
if (store == null) {
store = session.database.logger.newStore(session, this,
table);
}
return store;
case TableBase.SCOPE_STATEMENT :
store = (PersistentStore) rowStoreMapStatement.get(
table.getPersistenceId());
if (store == null) {
store = session.database.logger.newStore(session, this,
table);
}
return store;
// TEMP TABLE default, SYSTEM_TABLE + INFO_SCHEMA_TABLE
case TableBase.SCOPE_FULL :
case TableBase.SCOPE_TRANSACTION :
store = (PersistentStore) rowStoreMapTransaction.get(
table.getPersistenceId());
if (store == null) {
store = session.database.logger.newStore(session, this,
table);
}
if (table.getTableType() == TableBase.INFO_SCHEMA_TABLE) {
session.database.dbInfo.setStore(session, (Table) table,
store);
}
return store;
case TableBase.SCOPE_SESSION :
store = (PersistentStore) rowStoreMapSession.get(
table.getPersistenceId());
if (store == null) {
store = session.database.logger.newStore(session, this,
table);
}