|
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.ItemListDAO
public class ItemListDAO
A data access object (DAO) providing persistence and search support for ItemList 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.
com.ibm.btt.channel.smart.data.controller.ItemList
Field Summary | |
---|---|
static java.lang.String |
DESCRIPTION
|
static java.lang.String |
NAME
|
static java.lang.String |
TYPE
|
Constructor Summary | |
---|---|
ItemListDAO()
|
Method Summary | |
---|---|
void |
delete(ItemList entity)
Delete a persistent ItemList entity. |
java.util.List<ItemList> |
findAll(int... rowStartIdxAndCount)
Find all ItemList entities. |
java.util.List<ItemList> |
findByDescription(java.lang.Object description,
int... rowStartIdxAndCount)
find all ItemList entities with description |
ItemList |
findById(java.lang.String id)
find ItemList entities with id |
java.util.List<ItemList> |
findByItemName(java.lang.Object itemName,
int... rowStartIdxAndCount)
find all ItemList entities with item name |
java.util.List<ItemList> |
findByProperty(java.lang.String propertyName,
java.lang.Object value,
int... rowStartIdxAndCount)
Find all ItemList entities with a specific property value. |
java.util.List<ItemList> |
findByType(java.lang.Object type,
int... rowStartIdxAndCount)
find all ItemList entities with type |
void |
save(ItemList entity)
Perform an initial save of a previously unsaved ItemList entity. |
ItemList |
update(ItemList entity)
Persist a previously saved ItemList 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 TYPE
public static final java.lang.String DESCRIPTION
Constructor Detail |
---|
public ItemListDAO()
Method Detail |
---|
public void save(ItemList entity)
EntityManager#persist
operation.
EntityManagerHelper.beginTransaction(); ItemListDAO.save(entity); EntityManagerHelper.commit();
save
in interface IItemListDAO
entity
- ItemList entity to persist
java.lang.RuntimeException
- when the operation failspublic void delete(ItemList entity)
EntityManager#delete
operation.
EntityManagerHelper.beginTransaction(); ItemListDAO.delete(entity); EntityManagerHelper.commit(); entity = null;
delete
in interface IItemListDAO
entity
- ItemList entity to delete
java.lang.RuntimeException
- when the operation failspublic ItemList update(ItemList entity)
EntityManager#merge
operation.
EntityManagerHelper.beginTransaction(); entity = ItemListDAO.update(entity); EntityManagerHelper.commit();
update
in interface IItemListDAO
entity
- ItemList entity to update
java.lang.RuntimeException
- if the operation failspublic ItemList findById(java.lang.String id)
findById
in interface IItemListDAO
String
- id
public java.util.List<ItemList> findByType(java.lang.Object type, int... rowStartIdxAndCount)
findByType
in interface IItemListDAO
Object
- typeint...
- rowStartIdxAndCount
public java.util.List<ItemList> findByProperty(java.lang.String propertyName, java.lang.Object value, int... rowStartIdxAndCount)
findByProperty
in interface IItemListDAO
propertyName
- the name of the ItemList 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<ItemList> findByItemName(java.lang.Object itemName, int... rowStartIdxAndCount)
findByItemName
in interface IItemListDAO
ObjectitemName
- int...
- rowStartIdxAndCount
public java.util.List<ItemList> findByDescription(java.lang.Object description, int... rowStartIdxAndCount)
findByDescription
in interface IItemListDAO
Object
- descriptionint...
- rowStartIdxAndCount
public java.util.List<ItemList> findAll(int... rowStartIdxAndCount)
findAll
in interface IItemListDAO
final
- int... rowStartIdxAndCount
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |