Class SessionDAO
- java.lang.Object
-
- pl.com.external.essw.system.database.api.AbstractDAO<Session>
-
- pl.com.external.essw.system.database.api.SessionDAO
-
public class SessionDAO extends AbstractDAO<Session>
-
-
Constructor Summary
Constructors Constructor Description SessionDAO(javax.persistence.EntityManager em)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionfindLastSession()SessionfindSessionForDate(java.time.LocalDateTime sessionDate)SessionfindSessionPriorDate(java.time.LocalDateTime tresholdDate)protected javax.persistence.EntityManagergetEntityManager()
-
-
-
Method Detail
-
getEntityManager
protected javax.persistence.EntityManager getEntityManager()
- Specified by:
getEntityManagerin classAbstractDAO<Session>- Returns:
-
findLastSession
public Session findLastSession()
- Returns:
-
findSessionPriorDate
public Session findSessionPriorDate(java.time.LocalDateTime tresholdDate)
- Parameters:
tresholdDate-- Returns:
-
findSessionForDate
public Session findSessionForDate(java.time.LocalDateTime sessionDate)
- Parameters:
sessionDate-- Returns:
-
-