|
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.PreferenceLogDAO
public class PreferenceLogDAO
A data access object (DAO) providing persistence and search support for PreferenceLog 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.PreferenceLog
Field Summary | |
---|---|
static java.lang.String |
USER_ID
|
Constructor Summary | |
---|---|
PreferenceLogDAO()
|
Method Summary | |
---|---|
void |
delete(PreferenceLog entity)
Delete a persistent PreferenceLog entity. |
java.util.List<PreferenceLog> |
findAll(int... rowStartIdxAndCount)
Find all PreferenceLog entities. |
PreferenceLog |
findById(java.lang.String id)
find the PreferenceLog with id |
java.util.List<PreferenceLog> |
findByProperty(java.lang.String propertyName,
java.lang.Object value,
int... rowStartIdxAndCount)
Find all PreferenceLog entities with a specific property value. |
java.util.List<PreferenceLog> |
findByUserId(java.lang.Object userId,
int... rowStartIdxAndCount)
Find all PreferenceLog entities with user id |
void |
save(PreferenceLog entity)
Perform an initial save of a previously unsaved PreferenceLog entity. |
PreferenceLog |
update(PreferenceLog entity)
Persist a previously saved PreferenceLog 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 USER_ID
Constructor Detail |
---|
public PreferenceLogDAO()
Method Detail |
---|
public void save(PreferenceLog entity)
EntityManager#persist
operation.
EntityManagerHelper.beginTransaction(); PreferenceLogDAO.save(entity); EntityManagerHelper.commit();
save
in interface IPreferenceLogDAO
entity
- PreferenceLog entity to persist
java.lang.RuntimeException
- when the operation failspublic void delete(PreferenceLog entity)
EntityManager#delete
operation.
EntityManagerHelper.beginTransaction(); PreferenceLogDAO.delete(entity); EntityManagerHelper.commit(); entity = null;
delete
in interface IPreferenceLogDAO
entity
- PreferenceLog entity to delete
java.lang.RuntimeException
- when the operation failspublic PreferenceLog update(PreferenceLog entity)
EntityManager#merge
operation.
EntityManagerHelper.beginTransaction(); entity = PreferenceLogDAO.update(entity); EntityManagerHelper.commit();
update
in interface IPreferenceLogDAO
entity
- PreferenceLog entity to update
java.lang.RuntimeException
- if the operation failspublic PreferenceLog findById(java.lang.String id)
findById
in interface IPreferenceLogDAO
String
- id
public java.util.List<PreferenceLog> findByProperty(java.lang.String propertyName, java.lang.Object value, int... rowStartIdxAndCount)
findByProperty
in interface IPreferenceLogDAO
propertyName
- the name of the PreferenceLog 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<PreferenceLog> findByUserId(java.lang.Object userId, int... rowStartIdxAndCount)
findByUserId
in interface IPreferenceLogDAO
Object
- userIdint...
- rowStartIdxAndCount
public java.util.List<PreferenceLog> findAll(int... rowStartIdxAndCount)
findAll
in interface IPreferenceLogDAO
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.
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |