| java.lang.Object com.sleepycat.persist.raw.RawStore
RawStore | public class RawStore (Code) | | Provides access to the raw data in a store for use by general purpose tools.
A RawStore provides access to stored entities without using
entity classes or key classes. Keys are represented as simple type objects
or, for composite keys, as
RawObject instances, and entities are
represented as
RawObject instances.
RawStore objects are thread-safe. Multiple threads may safely
call the methods of a shared
RawStore object.
When using a
RawStore , the current persistent class definitions
are not used. Instead, the previously stored metadata and class definitions
are used. This has several implications:
- An
EntityModel may not be specified using
StoreConfig.setModel . In other words, the configured model must be
null (the default).
- When storing entities, their format will not automatically be evolved
to the current class definition, even if the current class definition has
changed.
author: Mark Hayes |
RawStore | public RawStore(Environment env, String storeName, StoreConfig config) throws DatabaseException(Code) | | Opens an entity store for raw data access.
Parameters: env - an open Berkeley DB environment. Parameters: storeName - the name of the entity store within the givenenvironment. Parameters: config - the store configuration, or null to use defaultconfiguration properties. throws: IllegalArgumentException - if the Environment isread-only and the config ReadOnly property is false. |
close | public void close() throws DatabaseException(Code) | | Closes all databases and sequences that were opened by this model. No
databases opened via this store may be in use.
|
getConfig | public StoreConfig getConfig()(Code) | | Returns a copy of the entity store configuration.
|
getEnvironment | public Environment getEnvironment()(Code) | | Returns the environment associated with this store.
|
getModel | public EntityModel getModel()(Code) | | Returns the last configured and stored entity model for this store.
|
getMutations | public Mutations getMutations()(Code) | | Returns the set of mutations that were configured and stored previously.
|
getStoreName | public String getStoreName()(Code) | | Returns the name of this store.
|
|
|