public class ShelfAnalysisDAO
extends java.lang.Object
ShelfAnalysis
by JPA queries.Constructor and Description |
---|
ShelfAnalysisDAO() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String room,
java.lang.String collection,
java.lang.String shelf,
javax.persistence.EntityManager em)
checks, whether a specific
DocumentAnalysis is in the database |
static java.util.List<ShelfAnalysis> |
getShelfAnalysesForRoom(java.lang.String room)
retrieves a list of
ShelfAnalysis objects for a given room from the database |
static ShelfAnalysis |
getSingleShelfAnalysis(java.lang.String room,
java.lang.String collection,
java.lang.String shelf,
javax.persistence.EntityManager em)
retrieves a specific
ShelfAnalysis from the database |
static void |
persistShelfAnalyses(java.util.List<ShelfAnalysis> analyses)
persists a list of
ShelfAnalysis objects to the database |
static void |
persistShelfAnalysis(ShelfAnalysis analysis)
Persists a single
ShelfAnalysis to the database |
public static void persistShelfAnalysis(ShelfAnalysis analysis)
ShelfAnalysis
to the databaseanalysis
- the shelf analysis to be persistedpublic static void persistShelfAnalyses(java.util.List<ShelfAnalysis> analyses)
ShelfAnalysis
objects to the databaseanalyses
- the list of ShelfAnalysis
objects to be persistedpublic boolean contains(java.lang.String room, java.lang.String collection, java.lang.String shelf, javax.persistence.EntityManager em)
DocumentAnalysis
is in the databaseroom
- the room of the shelf analysiscollection
- the collection of the shelf analyzedshelf
- the analyzed shelfem
- the entity manager for the databasepublic static ShelfAnalysis getSingleShelfAnalysis(java.lang.String room, java.lang.String collection, java.lang.String shelf, javax.persistence.EntityManager em)
ShelfAnalysis
from the databaseroom
- the room of the shelf analysiscollection
- the collection of the document analyzedshelf
- the shelf of the document analyzedem
- the entity manager for the databasepublic static java.util.List<ShelfAnalysis> getShelfAnalysesForRoom(java.lang.String room)
ShelfAnalysis
objects for a given room from the databaseroom
- the room of the shelf analysis