public class NRequestsDAO
extends java.lang.Object
EventAnalysis
by JPA queries.Constructor and Description |
---|
NRequestsDAO() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<NRequests> |
getEventAnalyses(AlertControl ac,
javax.persistence.EntityManager em)
retrieves a a list of
NRequests for an AlertControl from the database |
static java.util.List<NRequests> |
getEventAnalyses(AlertControl ac,
int numberOfMonths)
retrieves a a list of
NRequests for an AlertControl and a given time range from the database |
static java.util.List<NRequests> |
getEventAnalyses(AlertControl ac,
int numberOfMonths,
javax.persistence.EntityManager em)
retrieves a a list of
NRequests for an AlertControl and a given time range from the database |
static void |
persistNRequest(NRequests nRequest)
Persists a single
NREquests to the database |
static void |
persistNRequests(java.util.List<NRequests> nRequests)
persists a list of
NRequests objects to the database |
public static void persistNRequest(NRequests nRequest)
NREquests
to the databasenRequests
- the number of requests to be persistedpublic static void persistNRequests(java.util.List<NRequests> nRequests)
NRequests
objects to the databaseanalyses
- the list of NRequests
objects to be persistedpublic static java.util.List<NRequests> getEventAnalyses(AlertControl ac, javax.persistence.EntityManager em)
NRequests
for an AlertControl
from the databasescp
- the AlertControl
used to select the entriesem
- the entity manager for the databaseNRequests
associated with the alert controlpublic static java.util.List<NRequests> getEventAnalyses(AlertControl ac, int numberOfMonths, javax.persistence.EntityManager em)
NRequests
for an AlertControl
and a given time range from the databasescp
- the AlertControl
used to select the entriesmonths
- the number of recent months the NRequests
were persisted (calculated as 30 days)em
- the entity manager for the databaseNRequests
associated with the alert controlpublic static java.util.List<NRequests> getEventAnalyses(AlertControl ac, int numberOfMonths)
NRequests
for an AlertControl
and a given time range from the databasescp
- the AlertControl
used to select the entriesmonths
- the number of recent months the NRequests
were persisted (calculated as 30 days)em
- the entity manager for the databaseNRequests
associated with the alert control