|
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.VisitLogDAO
public class VisitLogDAO
A data access object (DAO) providing persistence and search support for VisitLog 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.VisitLog
Field Summary | |
---|---|
static java.lang.String |
BROWSER
|
static java.lang.String |
IP_ADDRESS
|
static java.lang.String |
USER_ID
|
Constructor Summary | |
---|---|
VisitLogDAO()
|
Method Summary | |
---|---|
void |
delete(VisitLog entity)
Delete a persistent VisitLog entity. |
java.util.List<VisitLog> |
findAll(int... rowStartIdxAndCount)
Find all VisitLog entities. |
java.util.List<VisitLog> |
findByBrowser(java.lang.Object browser,
int... rowStartIdxAndCount)
Find all VisitLog entities with browser |
VisitLog |
findById(java.lang.String id)
Find VisitLog entities with id |
java.util.List<VisitLog> |
findByIpAddress(java.lang.Object ipAddress,
int... rowStartIdxAndCount)
Find all VisitLog entities with ip address |
java.util.List<VisitLog> |
findByProperty(java.lang.String propertyName,
java.lang.Object value,
int... rowStartIdxAndCount)
Find all VisitLog entities with a specific property value. |
java.util.List<VisitLog> |
findByUserId(java.lang.Object userId,
int... rowStartIdxAndCount)
Find all VisitLog entities with user id |
void |
save(VisitLog entity)
Perform an initial save of a previously unsaved VisitLog entity. |
VisitLog |
update(VisitLog entity)
Persist a previously saved VisitLog 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 IP_ADDRESS
public static final java.lang.String BROWSER
Constructor Detail |
---|
public VisitLogDAO()
Method Detail |
---|
public void save(VisitLog entity)
EntityManager#persist
operation.
EntityManagerHelper.beginTransaction(); VisitLogDAO.save(entity); EntityManagerHelper.commit();
save
in interface IVisitLogDAO
entity
- VisitLog entity to persist
java.lang.RuntimeException
- when the operation failspublic void delete(VisitLog entity)
EntityManager#delete
operation.
EntityManagerHelper.beginTransaction(); VisitLogDAO.delete(entity); EntityManagerHelper.commit(); entity = null;
delete
in interface IVisitLogDAO
entity
- VisitLog entity to delete
java.lang.RuntimeException
- when the operation failspublic VisitLog update(VisitLog entity)
EntityManager#merge
operation.
EntityManagerHelper.beginTransaction(); entity = VisitLogDAO.update(entity); EntityManagerHelper.commit();
update
in interface IVisitLogDAO
entity
- VisitLog entity to update
java.lang.RuntimeException
- if the operation failspublic VisitLog findById(java.lang.String id)
findById
in interface IVisitLogDAO
String
- id
public java.util.List<VisitLog> findByProperty(java.lang.String propertyName, java.lang.Object value, int... rowStartIdxAndCount)
findByProperty
in interface IVisitLogDAO
propertyName
- the name of the VisitLog 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<VisitLog> findByUserId(java.lang.Object userId, int... rowStartIdxAndCount)
findByUserId
in interface IVisitLogDAO
Object
- userIdint...
- rowStartIdxAndCount
public java.util.List<VisitLog> findByIpAddress(java.lang.Object ipAddress, int... rowStartIdxAndCount)
findByIpAddress
in interface IVisitLogDAO
Object
- ipAddressint...
- rowStartIdxAndCount
public java.util.List<VisitLog> findByBrowser(java.lang.Object browser, int... rowStartIdxAndCount)
findByBrowser
in interface IVisitLogDAO
Object
- browserint...
- rowStartIdxAndCount
public java.util.List<VisitLog> findAll(int... rowStartIdxAndCount)
findAll
in interface IVisitLogDAO
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 |