/** Returns the environment associated with this store. */ public Environment getEnvironment() { return store.getEnvironment(); }
/** * Opens the primary index for a given entity class. * * @throws DatabaseException the base class for all BDB exceptions. */ public PrimaryIndex<Object, RawObject> getPrimaryIndex(String entityClass) throws DatabaseException { return store.getPrimaryIndex(Object.class, null, RawObject.class, entityClass); }
/** * Opens the secondary index for a given entity class and secondary key name. * * @throws DatabaseException the base class for all BDB exceptions. */ public SecondaryIndex<Object, Object, RawObject> getSecondaryIndex( String entityClass, String keyName) throws DatabaseException { return store.getSecondaryIndex( getPrimaryIndex(entityClass), RawObject.class, entityClass, Object.class, null, keyName); }
/** * Closes all databases and sequences that were opened by this model. No databases opened via this * store may be in use. * * <p>WARNING: To guard against memory leaks, the application should discard all references to the * closed handle. While BDB makes an effort to discard references from closed objects to the * allocated memory for an environment, this behavior is not guaranteed. The safe course of action * for an application is to discard all references to closed BDB objects. * * @throws DatabaseException the base class for all BDB exceptions. */ public void close() throws DatabaseException { store.close(); }
/** Returns the set of mutations that were configured and stored previously. */ public Mutations getMutations() { return store.getMutations(); }
/** Returns the last configured and stored entity model for this store. */ public EntityModel getModel() { return store.getModel(); }
/** Returns the name of this store. */ public String getStoreName() { return store.getStoreName(); }
/** Returns a copy of the entity store configuration. */ public StoreConfig getConfig() { return store.getConfig(); }