Class MirrorStore

All Implemented Interfaces:
IndexingStore

public class MirrorStore extends AbstractIndexingStore<Mirrors>
The class MirrorStore contains the repository for mirrors.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MirrorStore(@NonNull org.hibernate.SessionFactory sessionFactory, @NonNull IndexingSession indexingSession)
    This is the constructor for the MirrorStore.
  • Method Summary

    Modifier and Type
    Method
    Description
    The method findAll provides means to collect all mirrors from the database.
    The method findAllByNameStartingWith provides means to retrieve mirrors where the sort text is starting with a given string.
    The method getByHostname provides means to find a mirror by its name.
    protected jakarta.persistence.criteria.Root<Mirrors>
    listQuery(String term, jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.CriteriaQuery<Mirrors> query)
    The method listQuery provides means to construct a query for the list of entities for a search.
    protected List<Map<String,Object>>
    map(List<Mirrors> list)
    The method map provides means to format a list for external use.

    Methods inherited from class org.ctan.site.stores.base.AbstractIndexingStore

    count, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MirrorStore

      public MirrorStore(@NonNull @NonNull org.hibernate.SessionFactory sessionFactory, @NonNull @NonNull IndexingSession indexingSession)
      This is the constructor for the MirrorStore.
      Parameters:
      sessionFactory - the session factory
      indexingSession - the indexing session
  • Method Details