Package org.ctan.site.stores
Class GuestBookStore
java.lang.Object
io.dropwizard.hibernate.AbstractDAO<GuestBook>
- All Implemented Interfaces:
IndexingStore
The class
GuestBookStore
contains the repository for guest book
items.-
Constructor Summary
ConstructorsConstructorDescriptionGuestBookStore
(org.hibernate.SessionFactory sessionFactory, IndexingSession indexingSession) This is the constructor for theGuestBookStore
. -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.persistence.criteria.Root
<GuestBook> listQuery
(String term, jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.CriteriaQuery<GuestBook> 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.AbstractIndexingStore
count, findAll, remove, save, updateIndex
Methods inherited from class org.ctan.site.stores.base.AbstractStore
getById, list, remove, remove
Methods inherited from class io.dropwizard.hibernate.AbstractDAO
criteriaQuery, currentSession, get, getEntityClass, initialize, list, list, namedQuery, namedTypedQuery, persist, query, uniqueResult, uniqueResult
-
Constructor Details
-
GuestBookStore
This is the constructor for theGuestBookStore
.- Parameters:
sessionFactory
- the session factoryindexingSession
- the indexing session
-
-
Method Details
-
listQuery
protected jakarta.persistence.criteria.Root<GuestBook> listQuery(String term, jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.CriteriaQuery<GuestBook> query) The methodlistQuery
provides means to construct a query for the list of entities for a search.- Specified by:
listQuery
in classAbstractStore<GuestBook>
- 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<GuestBook>
- Parameters:
list
- the list of entries- Returns:
- the formatted list
- See Also:
-