| java.lang.Object com.sleepycat.persist.impl.Store
Store | public class Store (Code) | | Base implementation for EntityStore and RawStore. The methods here
correspond directly to those in EntityStore; see EntityStore documentation
for details.
author: Mark Hayes |
Inner Class :public interface SyncHook | |
Method Summary | |
public synchronized void | close() | public synchronized void | closeClass(Class entityClass) | public void | dumpCatalog() | public EvolveStats | evolve(EvolveConfig config) | public StoreConfig | getConfig() | public Environment | getEnvironment() | public EntityModel | getModel() | public Mutations | getMutations() | public synchronized DatabaseConfig | getPrimaryConfig(Class entityClass) | public synchronized PrimaryIndex<PK, E> | getPrimaryIndex(Class<PK> primaryKeyClass, String primaryKeyClassName, Class<E> entityClass, String entityClassName) A getPrimaryIndex with extra parameters for opening a raw store.
primaryKeyClass and entityClass are used for generic typing; for a raw
store, these should always be Object.class and RawObject.class.
primaryKeyClassName is used for consistency checking and should be null
for a raw store only. | public synchronized SecondaryConfig | getSecondaryConfig(Class entityClass, String keyName) | public synchronized SecondaryIndex<SK, PK, E2> | getSecondaryIndex(PrimaryIndex<PK, E1> primaryIndex, Class<E2> entityClass, String entityClassName, Class<SK> keyClass, String keyClassName, String keyName) A getSecondaryIndex with extra parameters for opening a raw store. | public synchronized Sequence | getSequence(String name) | public synchronized SequenceConfig | getSequenceConfig(String name) | public String | getStoreName() | public static Set<String> | getStoreNames(Environment env) | static String | makePriDbName(String storePrefix, String entityClsName) | static String | makeSecDbName(String storePrefix, String entityClsName, String keyName) | synchronized void | openSecondaryIndexes(Transaction txn, EntityMetadata entityMeta, PrimaryOpenState priOpenState) Opens any secondary indexes defined in the given entity metadata that
are not already open. | public synchronized void | setPrimaryConfig(Class entityClass, DatabaseConfig config) | public synchronized void | setSecondaryConfig(Class entityClass, String keyName, SecondaryConfig config) | public synchronized void | setSequenceConfig(String name, SequenceConfig config) | public static void | setSyncHook(SyncHook hook) For unit testing. | public void | sync() | public void | truncateClass(Class entityClass) | public synchronized void | truncateClass(Transaction txn, Class entityClass) |
dumpCatalog | public void dumpCatalog()(Code) | | |
getPrimaryIndex | public synchronized PrimaryIndex<PK, E> getPrimaryIndex(Class<PK> primaryKeyClass, String primaryKeyClassName, Class<E> entityClass, String entityClassName) throws DatabaseException(Code) | | A getPrimaryIndex with extra parameters for opening a raw store.
primaryKeyClass and entityClass are used for generic typing; for a raw
store, these should always be Object.class and RawObject.class.
primaryKeyClassName is used for consistency checking and should be null
for a raw store only. entityClassName is used to identify the store and
may not be null.
|
getSecondaryIndex | public synchronized SecondaryIndex<SK, PK, E2> getSecondaryIndex(PrimaryIndex<PK, E1> primaryIndex, Class<E2> entityClass, String entityClassName, Class<SK> keyClass, String keyClassName, String keyName) throws DatabaseException(Code) | | A getSecondaryIndex with extra parameters for opening a raw store.
keyClassName is used for consistency checking and should be null for a
raw store only.
|
openSecondaryIndexes | synchronized void openSecondaryIndexes(Transaction txn, EntityMetadata entityMeta, PrimaryOpenState priOpenState) throws DatabaseException(Code) | | Opens any secondary indexes defined in the given entity metadata that
are not already open. This method is called when a new entity subclass
is encountered when an instance of that class is stored, and the
EntityStore.getSubclassIndex has not been previously called for that
class. [#15247]
|
setSyncHook | public static void setSyncHook(SyncHook hook)(Code) | | For unit testing.
|
|
|