public class CollectionUsagePerSubjectDAO
extends java.lang.Object
CollectionUsagePerSubject objects by JPA queries.| Constructor and Description |
|---|
CollectionUsagePerSubjectDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.String anchor,
int year,
javax.persistence.EntityManager em)
checks, whether a specific
CollectionUsagePerSubject is in the database |
static void |
deleteSingleCollectionUsagePerSubject(java.lang.String collection,
int year,
javax.persistence.EntityManager em)
deletes a specific
CollectionUsagePerSubject from the database |
static java.util.List<CollectionUsagePerSubject> |
getCollectionUsagePerSubjects(java.lang.String collection,
int year,
javax.persistence.EntityManager em)
retrieves a list of
CollectionUsagePerSubject for one collection from the database |
static java.util.List<CollectionUsagePerSubject> |
getCounters(java.lang.String collection)
retrieves all
CollectionUsagePerSubject for one collection from the database |
static CollectionUsagePerSubject |
getSingleCollectionUsagePerSubject(java.lang.String collection,
int year,
javax.persistence.EntityManager em,
java.lang.String subject)
retrieves a specific
CollectionUsagePerSubject from the database |
static void |
persistCollectionUsagePerSubject(CollectionUsagePerSubject cups)
Persists a single
ShelfAnalysis to the database |
static void |
persistCollectionUsagePerSubjects(java.util.List<CollectionUsagePerSubject> cupss)
Persists a list of
CollectionUsagePerSubject objects to the database |
public static void persistCollectionUsagePerSubject(CollectionUsagePerSubject cups)
ShelfAnalysis to the databasecups - the collection usage per subject to be persistedpublic boolean contains(java.lang.String anchor,
int year,
javax.persistence.EntityManager em)
CollectionUsagePerSubject is in the databaseanchor - the anchor of the collectionyear - year to be looked atem - the entity manager for the databasepublic static CollectionUsagePerSubject getSingleCollectionUsagePerSubject(java.lang.String collection, int year, javax.persistence.EntityManager em, java.lang.String subject)
CollectionUsagePerSubject from the databasecollection - the collectionyear - the yearsubject - the subjectem - the entity manager for the databasepublic static java.util.List<CollectionUsagePerSubject> getCollectionUsagePerSubjects(java.lang.String collection, int year, javax.persistence.EntityManager em)
CollectionUsagePerSubject for one collection from the databasecollection - the collectionyear - the yearem - the entity manager for the databasepublic static void deleteSingleCollectionUsagePerSubject(java.lang.String collection,
int year,
javax.persistence.EntityManager em)
CollectionUsagePerSubject from the databasecollection - the collectionyear - the yearem - the entity manager for the databasepublic static void persistCollectionUsagePerSubjects(java.util.List<CollectionUsagePerSubject> cupss)
CollectionUsagePerSubject objects to the databasecupss - the list of collection usage per subject to be persistedpublic static java.util.List<CollectionUsagePerSubject> getCounters(java.lang.String collection)
CollectionUsagePerSubject for one collection from the databasecollection - the collection