IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

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

All Known Implementing Classes:
ChannelListDAO

public interface IChannelListDAO

Interface for ChannelListDAO.


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

Method Detail

save

void save(ChannelList entity)
Perform an initial save of a previously unsaved ChannelList 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();
 IChannelListDAO.save(entity);
 EntityManagerHelper.commit();
 

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

delete

void delete(ChannelList entity)
Delete a persistent ChannelList 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();
 IChannelListDAO.delete(entity);
 EntityManagerHelper.commit();
 entity = null;
 

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

update

ChannelList update(ChannelList entity)
Persist a previously saved ChannelList entity and return it or a copy of it to the sender. A copy of the ChannelList 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 = IChannelListDAO.update(entity);
 EntityManagerHelper.commit();
 

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

findById

ChannelList findById(java.lang.String id)
Parameters:
String - id
Returns:
ChannelList

findByProperty

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

Parameters:
propertyName - the name of the ChannelList 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

findByChannelName

java.util.List<ChannelList> findByChannelName(java.lang.Object channelName,
                                              int... rowStartIdxAndCount)
find ChannelList entities with channelName

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

findByDescription

java.util.List<ChannelList> findByDescription(java.lang.Object description,
                                              int... rowStartIdxAndCount)
find ChannelList entities with description

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

findAll

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

Parameters:
int... - rowStartIdxAndCount
Returns:
List

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010