IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

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

All Known Implementing Classes:
ItemListDAO

public interface IItemListDAO

Interface for 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.
 

Method Detail

save

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

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

delete

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

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

update

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

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

findById

ItemList findById(java.lang.String id)
find ItemList entities with id

Parameters:
String - id
Returns:
ItemList

findByProperty

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

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

findByItemName

java.util.List<ItemList> findByItemName(java.lang.Object itemName,
                                        int... rowStartIdxAndCount)
find all ItemList entities with item name

Parameters:
ObjectitemName -
int... - rowStartIdxAndCount
Returns:
List

findByType

java.util.List<ItemList> findByType(java.lang.Object type,
                                    int... rowStartIdxAndCount)
find all ItemList entities with type

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

findByDescription

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

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

findAll

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

Parameters:
int... - rowStartIdxAndCount
Returns:
List

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010