|
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.BehaviorLogDAO
public class BehaviorLogDAO
A data access object (DAO) providing persistence and search support for BehaviorLog 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.BehaviorLog
Field Summary | |
---|---|
static java.lang.String |
BEHAVIOR_TYPE
|
static java.lang.String |
USER_ID
|
Constructor Summary | |
---|---|
BehaviorLogDAO()
|
Method Summary | |
---|---|
void |
delete(BehaviorLog entity)
Delete a persistent BehaviorLog entity. |
java.util.List<BehaviorLog> |
findAll(int... rowStartIdxAndCount)
Find all BehaviorLog entities. |
java.util.List<BehaviorLog> |
findByBehaviorType(java.lang.Object behaviorType,
int... rowStartIdxAndCount)
Find the BehaviorLog entities by BehaviorType |
BehaviorLog |
findById(java.lang.String id)
find BehaviorLog entities by Id |
java.util.List<BehaviorLog> |
findByProperty(java.lang.String propertyName,
java.lang.Object value,
int... rowStartIdxAndCount)
Find all BehaviorLog entities with a specific property value. |
java.util.List<BehaviorLog> |
findByUserId(java.lang.Object userId,
int... rowStartIdxAndCount)
Find the BehaviorLog entities by UserId |
void |
save(BehaviorLog entity)
Perform an initial save of a previously unsaved BehaviorLog entity. |
BehaviorLog |
update(BehaviorLog entity)
Persist a previously saved BehaviorLog 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
public static final java.lang.String BEHAVIOR_TYPE
Constructor Detail |
---|
public BehaviorLogDAO()
Method Detail |
---|
public void save(BehaviorLog entity)
EntityManager#persist
operation.
EntityManagerHelper.beginTransaction(); BehaviorLogDAO.save(entity); EntityManagerHelper.commit();
save
in interface IBehaviorLogDAO
entity
- BehaviorLog entity to persist
java.lang.RuntimeException
- when the operation failspublic void delete(BehaviorLog entity)
EntityManager#delete
operation.
EntityManagerHelper.beginTransaction(); BehaviorLogDAO.delete(entity); EntityManagerHelper.commit(); entity = null;
delete
in interface IBehaviorLogDAO
entity
- BehaviorLog entity to delete
java.lang.RuntimeException
- when the operation failspublic BehaviorLog update(BehaviorLog entity)
EntityManager#merge
operation.
EntityManagerHelper.beginTransaction(); entity = BehaviorLogDAO.update(entity); EntityManagerHelper.commit();
update
in interface IBehaviorLogDAO
entity
- BehaviorLog entity to update
java.lang.RuntimeException
- if the operation failspublic BehaviorLog findById(java.lang.String id)
findById
in interface IBehaviorLogDAO
String
- id
public java.util.List<BehaviorLog> findByProperty(java.lang.String propertyName, java.lang.Object value, int... rowStartIdxAndCount)
findByProperty
in interface IBehaviorLogDAO
propertyName
- the name of the BehaviorLog 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<BehaviorLog> findByUserId(java.lang.Object userId, int... rowStartIdxAndCount)
findByUserId
in interface IBehaviorLogDAO
Object
- userIdint...
-
public java.util.List<BehaviorLog> findByBehaviorType(java.lang.Object behaviorType, int... rowStartIdxAndCount)
findByBehaviorType
in interface IBehaviorLogDAO
Object
- behaviorTypefinal
- int...
public java.util.List<BehaviorLog> findAll(int... rowStartIdxAndCount)
findAll
in interface IBehaviorLogDAO
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 |