|
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.BehaviorExtDAO
public class BehaviorExtDAO
A data access object (DAO) providing persistence and search support for BehaviorExt 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.
BehaviorExt
Field Summary | |
---|---|
static java.lang.String |
NAME
|
static java.lang.String |
VALUE
|
Constructor Summary | |
---|---|
BehaviorExtDAO()
|
Method Summary | |
---|---|
void |
delete(BehaviorExt entity)
Delete a persistent BehaviorExt entity. |
java.util.List<BehaviorExt> |
findAll(int... rowStartIdxAndCount)
Find all BehaviorExt entities. |
BehaviorExt |
findById(java.lang.String id)
find the BehaviorExt entities by id |
java.util.List<BehaviorExt> |
findByName(java.lang.Object name,
int... rowStartIdxAndCount)
get the BehaviorExt entities by name |
java.util.List<BehaviorExt> |
findByProperty(java.lang.String propertyName,
java.lang.Object value,
int... rowStartIdxAndCount)
Find all BehaviorExt entities with a specific property value. |
java.util.List<BehaviorExt> |
findByValue(java.lang.Object value,
int... rowStartIdxAndCount)
get the BehaviorExt entities by value |
void |
save(BehaviorExt entity)
Perform an initial save of a previously unsaved BehaviorExt entity. |
BehaviorExt |
update(BehaviorExt entity)
Persist a previously saved BehaviorExt 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 VALUE
Constructor Detail |
---|
public BehaviorExtDAO()
Method Detail |
---|
public void save(BehaviorExt entity)
EntityManager#persist
operation.
EntityManagerHelper.beginTransaction(); BehaviorExtDAO.save(entity); EntityManagerHelper.commit();
save
in interface IBehaviorExtDAO
entity
- BehaviorExt entity to persist
java.lang.RuntimeException
- when the operation failspublic void delete(BehaviorExt entity)
EntityManager#delete
operation.
EntityManagerHelper.beginTransaction(); BehaviorExtDAO.delete(entity); EntityManagerHelper.commit(); entity = null;
delete
in interface IBehaviorExtDAO
entity
- BehaviorExt entity to delete
java.lang.RuntimeException
- when the operation failspublic BehaviorExt update(BehaviorExt entity)
EntityManager#merge
operation.
EntityManagerHelper.beginTransaction(); entity = BehaviorExtDAO.update(entity); EntityManagerHelper.commit();
update
in interface IBehaviorExtDAO
entity
- BehaviorExt entity to update
java.lang.RuntimeException
- if the operation failspublic BehaviorExt findById(java.lang.String id)
IBehaviorExtDAO
findById
in interface IBehaviorExtDAO
String
- id
public java.util.List<BehaviorExt> findByProperty(java.lang.String propertyName, java.lang.Object value, int... rowStartIdxAndCount)
findByProperty
in interface IBehaviorExtDAO
propertyName
- the name of the BehaviorExt 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<BehaviorExt> findByName(java.lang.Object name, int... rowStartIdxAndCount)
findByName
in interface IBehaviorExtDAO
Object
- nameint...
- rowStartIdxAndCount
public java.util.List<BehaviorExt> findByValue(java.lang.Object value, int... rowStartIdxAndCount)
findByValue
in interface IBehaviorExtDAO
Object
- valuefinal
- int... rowStartIdxAndCount
public java.util.List<BehaviorExt> findAll(int... rowStartIdxAndCount)
findAll
in interface IBehaviorExtDAO
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 |