Package org.ctan.site.stores
Class UploadStore
java.lang.Object
io.dropwizard.hibernate.AbstractDAO<Upload>
The class
UploadStore contains the repository for votes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe classStringsMapcontains a class for a mapping of String to Object. -
Constructor Summary
ConstructorsConstructorDescriptionUploadStore(org.hibernate.SessionFactory sessionFactory) This is the constructor for theUploadStore. -
Method Summary
Modifier and TypeMethodDescriptionThe methodgetStatisticsprovides means to retrieve statistics for the upload.protected jakarta.persistence.criteria.Root<Upload> listQuery(String term, jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.CriteriaQuery<Upload> query) The methodlistQueryprovides means to construct a query for the list of entities for a search.The methodmapprovides means to format a list for external use.Methods inherited from class org.ctan.site.stores.base.AbstractStore
get, list, remove, remove, remove, saveMethods inherited from class io.dropwizard.hibernate.AbstractDAO
criteriaQuery, currentSession, get, getEntityClass, initialize, list, list, namedQuery, namedTypedQuery, persist, query, uniqueResult, uniqueResult
-
Constructor Details
-
UploadStore
public UploadStore(org.hibernate.SessionFactory sessionFactory) This is the constructor for theUploadStore.- Parameters:
sessionFactory- the session factory
-
-
Method Details
-
getStatistics
The methodgetStatisticsprovides means to retrieve statistics for the upload.- Returns:
- the statistics
-
listQuery
protected jakarta.persistence.criteria.Root<Upload> listQuery(String term, jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.CriteriaQuery<Upload> query) The methodlistQueryprovides means to construct a query for the list of entities for a search.- Specified by:
listQueryin classAbstractStore<Upload>- Parameters:
term- the search termcb- the criteria builderquery- the query- Returns:
- the root
- See Also:
-
map
The methodmapprovides means to format a list for external use.- Specified by:
mapin classAbstractStore<Upload>- Parameters:
list- the list of entries- Returns:
- the formatted list
- See Also:
-