Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.core
Class DataPool

    java.lang.Object
      org.basex.core.DataPool

    public final class DataPool

extends java.lang.Object

This class organizes all currently opened database.

Author:
  Workgroup DBIS, University of Konstanz 2005-09, ISC License, Andreas Weiler

Constructor Summary
`DataPool()`

Method Summary
`void` | `add(Data d)` Adds a data reference to the pool.
`void` | `close()` Closes all data references.
`Data` | `pin(java.lang.String db)` Returns an existing data reference for the specified database, or null.
`boolean` | `unpin(Data d)` Unpins a data reference.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DataPool

    public DataPool()

Method Detail

### pin

    public Data pin(java.lang.String db)

  Returns an existing data reference for the specified database, or null.

  Parameters:
    `db` - name of the database
  Returns:
    data reference

### unpin

    public boolean unpin(Data d)

  Unpins a data reference.

  Parameters:
    `d` - data reference
  Returns:
    true if reference was removed from the pool

### add

    public void add(Data d)

  Adds a data reference to the pool.

  Parameters:
    `d` - data reference

### close

    public void close()

  Closes all data references.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD