com.j_spaces.sadapter.GenericPA
Interface IMultipleOperations


public interface IMultipleOperations

This interface should be implemented in order to provide multiple operation support to the persistent adapter.


Method Summary
 int delete(PersistentContext context, String className, Object[] UID)
          This method called when the engine removes the entries from persistent storage.
 void insert(PersistentContext context, PersistentEntry[] entries)
          This method called whenever the space engine store the entries in the persistent storage.
 

Method Detail

insert

void insert(PersistentContext context,
            PersistentEntry[] entries)
            throws SAException
This method called whenever the space engine store the entries in the persistent storage.

Parameters:
context - Persistent implementation context
entries - The entries to be stored
Throws:
SAException - In case a SA error occurred

delete

int delete(PersistentContext context,
           String className,
           Object[] UID)
           throws SAException
This method called when the engine removes the entries from persistent storage.

Parameters:
context - Persistent implementation context
className - The class name of the entry that is about to be removed from persistent store
UID - The entry unique id that is about to removed from persistent store
Returns:
the number of entries that where actually deleted
Throws:
SAException - In case a SA error occurred