@PermitAll public class JpaUserActivityTrackDao extends com.whitestein.lsps.common.jpa.AbstractJpaEntityDao<UserActivityTrack> implements UserActivityTrackDao
Constructor and Description |
---|
JpaUserActivityTrackDao()
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
protected javax.persistence.EntityManager |
getEntityManager() |
List<UserActivityTrack> |
getForUserFromTo(String principal,
Date from,
Date to)
Returns list of tracks for a user in specified time interval.
|
List<UserActivityTrack> |
getFromTo(Date from,
Date to)
Returns list of tracks for all users in specified time interval.
|
UserActivityTrack |
getLastForUser(String principal)
Returns latest track for a user.
|
clear, contains, findById, findById, flush, getColName, getEntityClass, getEntityName, getReferenceById, merge, persist, refresh, refresh, remove, setEntityClass, setLockMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected javax.persistence.EntityManager getEntityManager()
getEntityManager
in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<UserActivityTrack,Long>
public UserActivityTrack getLastForUser(String principal)
UserActivityTrackDao
getLastForUser
in interface UserActivityTrackDao
public List<UserActivityTrack> getForUserFromTo(String principal, Date from, Date to)
UserActivityTrackDao
getForUserFromTo
in interface UserActivityTrackDao
public List<UserActivityTrack> getFromTo(Date from, Date to)
UserActivityTrackDao
getFromTo
in interface UserActivityTrackDao
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.