Beispiel #1
0
 /** Returns the environment associated with this store. */
 public Environment getEnvironment() {
   return store.getEnvironment();
 }
Beispiel #2
0
  /**
   * 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);
  }
Beispiel #3
0
  /**
   * 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);
  }
Beispiel #4
0
  /**
   * 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();
  }
Beispiel #5
0
 /** Returns the set of mutations that were configured and stored previously. */
 public Mutations getMutations() {
   return store.getMutations();
 }
Beispiel #6
0
 /** Returns the last configured and stored entity model for this store. */
 public EntityModel getModel() {
   return store.getModel();
 }
Beispiel #7
0
 /** Returns the name of this store. */
 public String getStoreName() {
   return store.getStoreName();
 }
Beispiel #8
0
 /** Returns a copy of the entity store configuration. */
 public StoreConfig getConfig() {
   return store.getConfig();
 }