IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.channel.smart.data.controller
Interface IBehaviorExtDAO

All Known Implementing Classes:
BehaviorExtDAO

public interface IBehaviorExtDAO

Interface for BehaviorExtDAO.


Method Summary
 void delete(BehaviorExt entity)
          Delete a persistent BehaviorExt entity.
 java.util.List<BehaviorExt> findAll(int... rowStartIdxAndCount)
          Find all BehaviorExt entities.
 BehaviorExt findById(java.lang.String id)
          find the BehaviorExt entities by id
 java.util.List<BehaviorExt> findByName(java.lang.Object name, int... rowStartIdxAndCount)
          find the BehaviorExt entities by name
 java.util.List<BehaviorExt> findByProperty(java.lang.String propertyName, java.lang.Object value, int... rowStartIdxAndCount)
          Find all BehaviorExt entities with a specific property value.
 java.util.List<BehaviorExt> findByValue(java.lang.Object value, int... rowStartIdxAndCount)
          find the BehaviorExt entities by value
 void save(BehaviorExt entity)
          Perform an initial save of a previously unsaved BehaviorExt entity.
 BehaviorExt update(BehaviorExt entity)
          Persist a previously saved BehaviorExt entity and return it or a copy of it to the sender.
 

Method Detail

save

void save(BehaviorExt entity)
Perform an initial save of a previously unsaved BehaviorExt entity. All subsequent persist actions of this entity should use the #update() method. This operation must be performed within the a database transaction context for the entity's data to be permanently saved to the persistence store, i.e., database. This method uses the EntityManager#persist operation.
 EntityManagerHelper.beginTransaction();
 IBehaviorExtDAO.save(entity);
 EntityManagerHelper.commit();
 

Parameters:
entity - BehaviorExt entity to persist
Throws:
java.lang.RuntimeException - when the operation fails

delete

void delete(BehaviorExt entity)
Delete a persistent BehaviorExt entity. This operation must be performed within the a database transaction context for the entity's data to be permanently deleted from the persistence store, i.e., database. This method uses the EntityManager#delete operation.
 EntityManagerHelper.beginTransaction();
 IBehaviorExtDAO.delete(entity);
 EntityManagerHelper.commit();
 entity = null;
 

Parameters:
entity - BehaviorExt entity to delete
Throws:
java.lang.RuntimeException - when the operation fails

update

BehaviorExt update(BehaviorExt entity)
Persist a previously saved BehaviorExt entity and return it or a copy of it to the sender. A copy of the BehaviorExt entity parameter is returned when the JPA persistence mechanism has not previously been tracking the updated entity. This operation must be performed within the a database transaction context for the entity's data to be permanently saved to the persistence store, i.e., database. This method uses the EntityManager#merge operation.
 EntityManagerHelper.beginTransaction();
 entity = IBehaviorExtDAO.update(entity);
 EntityManagerHelper.commit();
 

Parameters:
entity - BehaviorExt entity to update
Returns:
BehaviorExt the persisted BehaviorExt entity instance, may not be the same
Throws:
java.lang.RuntimeException - if the operation fails

findById

BehaviorExt findById(java.lang.String id)
find the BehaviorExt entities by id

Parameters:
String - id
Returns:
BehaviorExt

findByProperty

java.util.List<BehaviorExt> findByProperty(java.lang.String propertyName,
                                           java.lang.Object value,
                                           int... rowStartIdxAndCount)
Find all BehaviorExt entities with a specific property value.

Parameters:
propertyName - the name of the BehaviorExt property to query
value - the property value to match
rowStartIdxAndCount - Optional int varargs. rowStartIdxAndCount[0] specifies the the row index in the query result-set to begin collecting the results. rowStartIdxAndCount[1] specifies the the maximum count of results to return.
Returns:
List found by query

findByName

java.util.List<BehaviorExt> findByName(java.lang.Object name,
                                       int... rowStartIdxAndCount)
find the BehaviorExt entities by name

Parameters:
Object - name
int... - rowStartIdxAndCount
Returns:
List

findByValue

java.util.List<BehaviorExt> findByValue(java.lang.Object value,
                                        int... rowStartIdxAndCount)
find the BehaviorExt entities by value

Parameters:
Object - value
int... - rowStartIdxAndCount
Returns:
List

findAll

java.util.List<BehaviorExt> findAll(int... rowStartIdxAndCount)
Find all BehaviorExt entities.

Parameters:
int... - rowStartIdxAndCount
Returns:
List

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011