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 methodgetByPathprovides 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 methodlistQueryprovides means to construct a query for the list of entities for a search.map(List<TexArchiveNotes> list) 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
-
TexArchiveNotesStore
public TexArchiveNotesStore(org.hibernate.SessionFactory sessionFactory) This is the constructor for theAuthorStore.- Parameters:
sessionFactory- the session factory
-
-
Method Details
-
getByPath
The methodgetByPathprovides 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 methodlistQueryprovides means to construct a query for the list of entities for a search.- Specified by:
listQueryin classAbstractStore<TexArchiveNotes>- 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<TexArchiveNotes>- Parameters:
list- the list of entries- Returns:
- the formatted list
- See Also:
-