Package org.ctan.site.stores
Class BlacklistStore
java.lang.Object
io.dropwizard.hibernate.AbstractDAO<Blacklist>
The class
BlacklistStore contains the repository for guest book
stop words.-
Constructor Summary
ConstructorsConstructorDescriptionBlacklistStore(org.hibernate.SessionFactory sessionFactory) This is the constructor for theBlacklistStore. -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.persistence.criteria.Root<Blacklist> listQuery(String term, jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.CriteriaQuery<Blacklist> 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
-
BlacklistStore
public BlacklistStore(org.hibernate.SessionFactory sessionFactory) This is the constructor for theBlacklistStore.- Parameters:
sessionFactory- the session factory
-
-
Method Details
-
listQuery
protected jakarta.persistence.criteria.Root<Blacklist> listQuery(String term, jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.CriteriaQuery<Blacklist> query) The methodlistQueryprovides means to construct a query for the list of entities for a search.- Specified by:
listQueryin classAbstractStore<Blacklist>- 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<Blacklist>- Parameters:
list- the list of entries- Returns:
- the formatted list
- See Also:
-