Package org.ctan.site.stores
Class PkgAliasStore
java.lang.Object
io.dropwizard.hibernate.AbstractDAO<PkgAlias>
org.ctan.site.stores.PkgAliasStore
The class
PkgAliasStore
contains the repository for package
aliases.-
Constructor Summary
ConstructorsConstructorDescriptionPkgAliasStore
(org.hibernate.SessionFactory sessionFactory) This is the constructor for thePkgAliasStore
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
The methoddrop
deletes the given package from the database and the search index.The methodgetByKey
provides means to retrieve a package by its key.The methodinsert
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
-
Constructor Details
-
PkgAliasStore
public PkgAliasStore(org.hibernate.SessionFactory sessionFactory) This is the constructor for thePkgAliasStore
.- Parameters:
sessionFactory
- the session factory
-
-
Method Details
-
drop
The methoddrop
deletes the given package from the database and the search index.- Parameters:
pkg
- the package
-
getByKey
The methodgetByKey
provides means to retrieve a package by its key.- Parameters:
id
- the id- Returns:
- the package or
null
-
insert
The methodinsert
provides means to save a package.- Parameters:
alias
- the package- Returns:
- the package
-