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 class
The classStringsMap
contains 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 methodgetStatistics
provides 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 methodlistQuery
provides means to construct a query for the list of entities for a search.The methodmap
provides means to format a list for external use.Methods inherited from class org.ctan.site.stores.base.AbstractStore
getById, list, remove, remove, remove, save
Methods 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 methodgetStatistics
provides 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 methodlistQuery
provides means to construct a query for the list of entities for a search.- Specified by:
listQuery
in classAbstractStore<Upload>
- Parameters:
term
- the search termcb
- the criteria builderquery
- the query- Returns:
- the root
- See Also:
-
map
The methodmap
provides means to format a list for external use.- Specified by:
map
in classAbstractStore<Upload>
- Parameters:
list
- the list of entries- Returns:
- the formatted list
- See Also:
-