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