PersistentHandler
Keywords: uk.ac.ic.doc.automed.util.persist.PersistentHandler interface

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

## uk.ac.ic.doc.automed.util.persist
Interface PersistentHandler

All Known Subinterfaces:
  DuplicatePersistentHandler

All Known Implementing Classes:
  PersistentDB, QueryCacheSQLAdapter

    public interface PersistentHandler

PersistentHandler.java Used by user application code to call appropriate persistent handler object

Author:
  Duc M Le dmle@doc.ic.ac.uk Created on 03 August 2006 Department of Computing, Imperial College

Method Summary
`void` | `close()` Close the database
`java.lang.Object` | `get(PersistentKey pkey)` Get the first (or unique) data entry found for key
`java.util.Iterator` | `iterator()` Return an iterator of the entry set
`void` | `put(PersistentKey pkey, java.lang.Object value)` Place a data object into db
`void` | `remove(PersistentKey pkey)` Remove a single record identified by a common key from the database
`void` | `removeAll()` Clear database content

Method Detail

### put

    void put(PersistentKey pkey,
             java.lang.Object value)

  Place a data object into db

### get

    java.lang.Object get(PersistentKey pkey)

  Get the first (or unique) data entry found for key

### remove

    void remove(PersistentKey pkey)

  Remove a single record identified by a common key from the database

### iterator

    java.util.Iterator iterator()

  Return an iterator of the entry set

### removeAll

    void removeAll()

  Clear database content

### close

    void close()

  Close the database

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