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 TypeMethodDescriptionvoidThe methoddropdeletes the given package from the database and the search index.The methodgetByKeyprovides means to retrieve a package by its key.The methodinsertprovides 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 methoddropdeletes the given package from the database and the search index.- Parameters:
pkg- the package
-
getByKey
The methodgetByKeyprovides means to retrieve a package by its key.- Parameters:
id- the id- Returns:
- the package or
null
-
insert
The methodinsertprovides means to save a package.- Parameters:
alias- the package- Returns:
- the package
-