com.bankframe.ejb.bmp
Interface EPersister

All Known Implementing Classes:
TxnPersister, TxnPersister

public interface EPersister

This interface defines the methods that all Persister classes must implement.


Method Summary
 void amend(EBMPEntity entityBean, java.lang.String methodName)
          This method is used to update some or all attributes in the data store.
 void amend(EBMPEntity entityBean, java.lang.String methodName, DataPacket amendData)
          This method is used to update some or all attributes in the data store using the specified amendData rather that the entityBean's attributes.
 EPrimaryKey create(EBMPEntity entityBean)
          This method is used to create an entity in the data store.
 java.util.Enumeration find(EBMPEntity entityBean, java.lang.String methodName, DataPacket finderData)
          This method is used to find an entity in the data store.
 void load(EBMPEntity entityBean)
          This method is used to load an entity from the data store.
 void remove(EBMPEntity entityBean)
          This method is used to remove an entity from the data store.
 void removeFromCache(EBMPEntity entityBean)
          This method is used to remove an entity from the cache only.
 void store(EBMPEntity entityBean)
          This method is used to update all attributes in data store.
 

Method Detail

amend

public void amend(EBMPEntity entityBean,
                  java.lang.String methodName)
           throws ProcessingErrorException
This method is used to update some or all attributes in the data store.

Parameters:
entityBean - entity to be updated in the data store
Throws:
ProcessingErrorException - if an error occurs during processing

amend

public void amend(EBMPEntity entityBean,
                  java.lang.String methodName,
                  DataPacket amendData)
           throws ProcessingErrorException
This method is used to update some or all attributes in the data store using the specified amendData rather that the entityBean's attributes.

Parameters:
entityBean - entity to be updated in the data store
amendData - the data to use for the amend operation
Throws:
ProcessingErrorException - if an error occurs during processing

create

public EPrimaryKey create(EBMPEntity entityBean)
                   throws ProcessingErrorException
This method is used to create an entity in the data store.

Parameters:
entityBean - entity to be created in the data store
Returns:
EPrimaryKey returns the primaryKey of the entity
Throws:
ProcessingErrorException - if an error occurs during processing

find

public java.util.Enumeration find(EBMPEntity entityBean,
                                  java.lang.String methodName,
                                  DataPacket finderData)
                           throws ProcessingErrorException
This method is used to find an entity in the data store.

Parameters:
entityBean - entity to be found in the data store
Returns:
Enumeration returns an enumeration of primaryKeys
Throws:
ProcessingErrorException - thrown if an error occurs during processing

load

public void load(EBMPEntity entityBean)
          throws ProcessingErrorException
This method is used to load an entity from the data store.

Parameters:
entityBean - entity to be loaded from the data store
Throws:
ProcessingErrorException - if an error occurs during processing

remove

public void remove(EBMPEntity entityBean)
            throws ProcessingErrorException
This method is used to remove an entity from the data store.

Parameters:
entityBean - entity to be removed from the data store
Throws:
ProcessingErrorException - thrown if an error occurs during processing

store

public void store(EBMPEntity entityBean)
           throws ProcessingErrorException
This method is used to update all attributes in data store.

Parameters:
entityBean - entity to be stored in the data store
Throws:
ProcessingErrorException - if an error occurs during processing

removeFromCache

public void removeFromCache(EBMPEntity entityBean)
                     throws ProcessingErrorException
This method is used to remove an entity from the cache only. Note that not all persister implementations use a cache, in which case this method will have no effect.

Parameters:
entityBean - entity to be removed from the cache
Throws:
ProcessingErrorException - thrown if an error occurs during processing


Copyright © 2005, 2007, Oracle. All rights reserved.