|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.channel.smart.data.controller.ChannelListDAO
public class ChannelListDAO
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.
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 |
---|
public static final java.lang.String NAME
public static final java.lang.String DESCRIPTION
Constructor Detail |
---|
public ChannelListDAO()
Method Detail |
---|
public void save(ChannelList entity)
EntityManager#persist
operation.
EntityManagerHelper.beginTransaction(); ChannelListDAO.save(entity); EntityManagerHelper.commit();
save
in interface IChannelListDAO
entity
- ChannelList entity to persist
java.lang.RuntimeException
- when the operation failspublic void delete(ChannelList entity)
EntityManager#delete
operation.
EntityManagerHelper.beginTransaction(); ChannelListDAO.delete(entity); EntityManagerHelper.commit(); entity = null;
delete
in interface IChannelListDAO
entity
- ChannelList entity to delete
java.lang.RuntimeException
- when the operation failspublic ChannelList update(ChannelList entity)
EntityManager#merge
operation.
EntityManagerHelper.beginTransaction(); entity = ChannelListDAO.update(entity); EntityManagerHelper.commit();
update
in interface IChannelListDAO
entity
- ChannelList entity to update
java.lang.RuntimeException
- if the operation failspublic ChannelList findById(java.lang.String id)
findById
in interface IChannelListDAO
String
- id
public java.util.List<ChannelList> findByProperty(java.lang.String propertyName, java.lang.Object value, int... rowStartIdxAndCount)
findByProperty
in interface IChannelListDAO
propertyName
- the name of the ChannelList property to queryvalue
- the property value to matchrowStartIdxAndCount
- 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.
public java.util.List<ChannelList> findByChannelName(java.lang.Object channelName, int... rowStartIdxAndCount)
findByChannelName
in interface IChannelListDAO
public java.util.List<ChannelList> findByDescription(java.lang.Object description, int... rowStartIdxAndCount)
findByDescription
in interface IChannelListDAO
public java.util.List<ChannelList> findAll(int... rowStartIdxAndCount)
findAll
in interface IChannelListDAO
final
- int...
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |