public class EventAnalysisDAO
extends java.lang.Object
EventAnalysis by JPA queries.| Constructor and Description |
|---|
EventAnalysisDAO() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<EventAnalysis> |
getEventAnalyses(StockControlProperties scp,
java.lang.String who,
javax.persistence.EntityManager em)
retrieves a a list of
EventAnalysis for a given author and StockControlProperties from the database |
static EventAnalysis |
getSingleEventAnalysis(java.lang.String collection,
java.lang.String shelfmark,
javax.persistence.EntityManager em)
retrieves a specific
EventAnalysis from the database |
static void |
persistEventAnalyses(java.util.List<EventAnalysis> analyses)
persists a list of
EventAnalysis objects to the database |
static void |
persistEventAnalysis(EventAnalysis analysis)
Persists a single
EventAnalysis to the database |
public static void persistEventAnalysis(EventAnalysis analysis)
EventAnalysis to the databaseanalysis - the event analysis to be persistedpublic static void persistEventAnalyses(java.util.List<EventAnalysis> analyses)
EventAnalysis objects to the databaseanalyses - the list of EventAnalysis objects to be persistedpublic static EventAnalysis getSingleEventAnalysis(java.lang.String collection, java.lang.String shelfmark, javax.persistence.EntityManager em)
EventAnalysis from the databasecollection - the collection of the document analyzedshelfmark - the shelfmark of the document analyzedem - the entity manager for the databasepublic static java.util.List<EventAnalysis> getEventAnalyses(StockControlProperties scp, java.lang.String who, javax.persistence.EntityManager em)
EventAnalysis for a given author and StockControlProperties from the databasescp - the StockControlProperties used to calculate the entrieswho - the author name of the StockControlPropertiesem - the entity manager for the database