IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.channel.smart.data.controller
Class ChannelListDAO

java.lang.Object
  extended by com.ibm.btt.channel.smart.data.controller.ChannelListDAO
All Implemented Interfaces:
IChannelListDAO

public class ChannelListDAO
extends java.lang.Object
implements IChannelListDAO

A data access object (DAO) providing persistence and search support for ChannelList entities. Transaction control of the save(), update() and delete() operations must be handled externally by senders of these methods or must be manually added to each of these methods for data to be persisted to the JPA datastore.

See Also:
ChannelList

Field Summary
static java.lang.String DESCRIPTION
           
static java.lang.String NAME
           
 
Constructor Summary
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 by channel name
 java.util.List<ChannelList> findByDescription(java.lang.Object description, int... rowStartIdxAndCount)
          Find ChannelList entities by channel description
 ChannelList findById(java.lang.String id)
          Find the ChannelList entity by 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

DESCRIPTION

public static final java.lang.String DESCRIPTION
See Also:
Constant Field Values
Constructor Detail

ChannelListDAO

public ChannelListDAO()
Method Detail

save

public 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();
 ChannelListDAO.save(entity);
 EntityManagerHelper.commit();
 

Specified by:
save in interface IChannelListDAO
Parameters:
entity - ChannelList entity to persist
Throws:
java.lang.RuntimeException - when the operation fails

delete

public 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();
 ChannelListDAO.delete(entity);
 EntityManagerHelper.commit();
 entity = null;
 

Specified by:
delete in interface IChannelListDAO
Parameters:
entity - ChannelList entity to delete
Throws:
java.lang.RuntimeException - when the operation fails

update

public 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 = ChannelListDAO.update(entity);
 EntityManagerHelper.commit();
 

Specified by:
update in interface IChannelListDAO
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

public ChannelList findById(java.lang.String id)
Find the ChannelList entity by Id

Specified by:
findById in interface IChannelListDAO
Parameters:
String - id
Returns:
ChannelList

findByProperty

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

Specified by:
findByProperty in interface IChannelListDAO
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 number of results to return.
Returns:
List found by query

findByChannelName

public java.util.List<ChannelList> findByChannelName(java.lang.Object channelName,
                                                     int... rowStartIdxAndCount)
Find ChannelList entities by channel name

Specified by:
findByChannelName in interface IChannelListDAO
Returns:
List

findByDescription

public java.util.List<ChannelList> findByDescription(java.lang.Object description,
                                                     int... rowStartIdxAndCount)
Find ChannelList entities by channel description

Specified by:
findByDescription in interface IChannelListDAO
Returns:
List

findAll

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

Specified by:
findAll in interface IChannelListDAO
Parameters:
final - int...
Returns:
List

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011