uk.ac.ic.doc.automed.util.persist
Interface DuplicatePersistentHandler

All Superinterfaces:
PersistentHandler
All Known Implementing Classes:
PersistentDB

public interface DuplicatePersistentHandler
extends PersistentHandler

DuplicatePersistentHandler.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
 java.lang.Object[] getDuplicates(PersistentKey pkey)
          Use the database cursor to obtain all values corresponding to a key
 void removeDuplicates(PersistentKey pkey)
          Remove all entries associated to a key from the database
 
Methods inherited from interface uk.ac.ic.doc.automed.util.persist.PersistentHandler
close, get, iterator, put, remove, removeAll
 

Method Detail

getDuplicates

java.lang.Object[] getDuplicates(PersistentKey pkey)
Use the database cursor to obtain all values corresponding to a key

Parameters:
key - the key object
Returns:
Object[]

removeDuplicates

void removeDuplicates(PersistentKey pkey)
Remove all entries associated to a key from the database