FileDocCategorySizeDatePackage
PersistentPeer.javaAPI DocExample1902Fri Jan 31 06:24:58 GMT 1997imaginary.persist

PersistentPeer

public interface PersistentPeer
This interface prescribes methods for peers that handle persistence operations for specific data storage types.

Fields Summary
Constructors Summary
Methods Summary
public abstract voidinsert(Persistent p, Transaction t)
Handles the creation of an object.

param
p the Persistent being created in the data store
param
t the Transaction for performing the operation
exception
imaginary.persist.PersistenceException An error occurred creating the object in the data store.

public abstract voidremove(Persistent p, Transaction t)
Handles the deletion of the object from the data store

param
p the Persistent being deleted from the data store
param
t the Transaction for performing the operation
exception
imaginary.persist.PersistenceException An error occurred removing the object in the data store.

public abstract voidrestore(Persistent p, Transaction t)
Handles the restoration of the object from the data store

param
p the Persistent being restored from the data store
param
t the Transaction for performing the operation
exception
imaginary.persist.PersistenceException An error occurred accessing the object in the data store.

public abstract voidupdate(Persistent p, Transaction t)
Handles updating the object in the data store

param
p the Persistent being updated in the data store
param
t the Transaction for performing the operation
exception
imaginary.persist.PersistenceException An error occurred updating the object in the data store.