Package org.ctan.site.stores
Class TexArchiveNotesStore
java.lang.Object
io.dropwizard.hibernate.AbstractDAO<TexArchiveNotes>
The class
TexArchiveFileInfoStore
contains the repository for
infos.-
Constructor Summary
ConstructorsConstructorDescriptionTexArchiveNotesStore
(org.hibernate.SessionFactory sessionFactory) This is the constructor for theAuthorStore
. -
Method Summary
Modifier and TypeMethodDescriptionThe methodgetByPath
provides means to find an info by its path.protected jakarta.persistence.criteria.Root
<TexArchiveNotes> listQuery
(String term, jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.CriteriaQuery<TexArchiveNotes> query) The methodlistQuery
provides means to construct a query for the list of entities for a search.map
(List<TexArchiveNotes> list) 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
-
TexArchiveNotesStore
public TexArchiveNotesStore(org.hibernate.SessionFactory sessionFactory) This is the constructor for theAuthorStore
.- Parameters:
sessionFactory
- the session factory
-
-
Method Details
-
getByPath
The methodgetByPath
provides means to find an info by its path.- Parameters:
path
- the CTAN path- Returns:
- a file info
-
listQuery
protected jakarta.persistence.criteria.Root<TexArchiveNotes> listQuery(String term, jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.CriteriaQuery<TexArchiveNotes> query) The methodlistQuery
provides means to construct a query for the list of entities for a search.- Specified by:
listQuery
in classAbstractStore<TexArchiveNotes>
- 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<TexArchiveNotes>
- Parameters:
list
- the list of entries- Returns:
- the formatted list
- See Also:
-