Class PkgAliasStore

java.lang.Object
io.dropwizard.hibernate.AbstractDAO<PkgAlias>
org.ctan.site.stores.PkgAliasStore

public class PkgAliasStore extends io.dropwizard.hibernate.AbstractDAO<PkgAlias>
The class PkgAliasStore contains the repository for package aliases.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PkgAliasStore(org.hibernate.SessionFactory sessionFactory)
    This is the constructor for the PkgAliasStore.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drop(Pkg pkg)
    The method drop deletes the given package from the database and the search index.
    The method getByKey provides means to retrieve a package by its key.
    The method insert provides means to save a package.

    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

    • PkgAliasStore

      public PkgAliasStore(org.hibernate.SessionFactory sessionFactory)
      This is the constructor for the PkgAliasStore.
      Parameters:
      sessionFactory - the session factory
  • Method Details

    • drop

      public void drop(Pkg pkg)
      The method drop deletes the given package from the database and the search index.
      Parameters:
      pkg - the package
    • getByKey

      public PkgAlias getByKey(String id)
      The method getByKey provides means to retrieve a package by its key.
      Parameters:
      id - the id
      Returns:
      the package or null
    • insert

      public PkgAlias insert(PkgAlias alias)
      The method insert provides means to save a package.
      Parameters:
      alias - the package
      Returns:
      the package