A B C D F G H I L N O P Q R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractDAO<E> - Class in io.dropwizard.hibernate
-
An abstract base class for Hibernate DAO classes.
- AbstractDAO(SessionFactory) - Constructor for class io.dropwizard.hibernate.AbstractDAO
-
Creates a new DAO with a given session provider.
- afterEnd() - Method in class io.dropwizard.hibernate.UnitOfWorkAspect
B
- beforeStart(UnitOfWork) - Method in class io.dropwizard.hibernate.UnitOfWorkAspect
- build(HibernateBundle<?>, Environment, PooledDataSourceFactory, ManagedDataSource, List<Class<?>>) - Method in class io.dropwizard.hibernate.SessionFactoryFactory
- build(HibernateBundle<?>, Environment, PooledDataSourceFactory, List<Class<?>>) - Method in class io.dropwizard.hibernate.SessionFactoryFactory
- build(HibernateBundle<?>, Environment, PooledDataSourceFactory, List<Class<?>>, String) - Method in class io.dropwizard.hibernate.SessionFactoryFactory
C
- cacheMode() - Method in annotation type io.dropwizard.hibernate.UnitOfWork
-
The
CacheMode
for the session. - check() - Method in class io.dropwizard.hibernate.SessionFactoryHealthCheck
- configure(Configuration) - Method in class io.dropwizard.hibernate.HibernateBundle
- configure(Configuration, ServiceRegistry) - Method in class io.dropwizard.hibernate.SessionFactoryFactory
- configureBootstrapServiceRegistryBuilder(BootstrapServiceRegistryBuilder) - Method in class io.dropwizard.hibernate.SessionFactoryFactory
- configureSession() - Method in class io.dropwizard.hibernate.UnitOfWorkAspect
- create(Class<T>) - Method in class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
-
Creates a new @UnitOfWork aware proxy of a class with the default constructor.
- create(Class<T>, Class<?>[], Object[]) - Method in class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
-
Creates a new @UnitOfWork aware proxy of a class with a complex constructor.
- create(Class<T>, Class<?>, Object) - Method in class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
-
Creates a new @UnitOfWork aware proxy of a class with an one-parameter constructor.
- createHibernate5Module() - Method in class io.dropwizard.hibernate.HibernateBundle
-
Override to configure the
Hibernate5Module
. - criteria() - Method in class io.dropwizard.hibernate.AbstractDAO
-
Deprecated.Use
AbstractDAO.criteriaQuery()
instead. - criteriaQuery() - Method in class io.dropwizard.hibernate.AbstractDAO
-
Creates a new
CriteriaQuery
for<E>
. - currentSession() - Method in class io.dropwizard.hibernate.AbstractDAO
-
Returns the current
Session
.
D
- DEFAULT_NAME - Static variable in class io.dropwizard.hibernate.HibernateBundle
F
- findEntityClassesFromDirectory(String[]) - Static method in class io.dropwizard.hibernate.ScanningHibernateBundle
-
Method scanning given directory for classes containing Hibernate @Entity annotation
- flushMode() - Method in annotation type io.dropwizard.hibernate.UnitOfWork
-
The
FlushMode
for the session.
G
- get(Serializable) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Return the persistent instance of
<E>
with the given identifier, ornull
if there is no such persistent instance. - getEntityClass() - Method in class io.dropwizard.hibernate.AbstractDAO
-
Returns the entity class managed by this DAO.
- getSession() - Method in class io.dropwizard.hibernate.UnitOfWorkAspect
- getSessionFactory() - Method in class io.dropwizard.hibernate.HibernateBundle
- getSessionFactory() - Method in class io.dropwizard.hibernate.SessionFactoryHealthCheck
- getSessionFactory() - Method in class io.dropwizard.hibernate.UnitOfWorkAspect
- getValidationQuery() - Method in class io.dropwizard.hibernate.SessionFactoryHealthCheck
H
- HibernateBundle<T> - Class in io.dropwizard.hibernate
- HibernateBundle(Class<?>, Class<?>...) - Constructor for class io.dropwizard.hibernate.HibernateBundle
- HibernateBundle(List<Class<?>>, SessionFactoryFactory) - Constructor for class io.dropwizard.hibernate.HibernateBundle
I
- initialize(Bootstrap<?>) - Method in class io.dropwizard.hibernate.HibernateBundle
- initialize(T) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Force initialization of a proxy or persistent collection.
- io.dropwizard.hibernate - package io.dropwizard.hibernate
- isLazyLoadingEnabled() - Method in class io.dropwizard.hibernate.HibernateBundle
L
- list(CriteriaQuery<E>) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Get the results of a
CriteriaQuery
query. - list(Criteria) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Get the results of a
Criteria
query. - list(Query<E>) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Get the results of a query.
N
- name() - Method in class io.dropwizard.hibernate.HibernateBundle
-
Override to configure the name of the bundle (It's used for the bundle health check and database pool metrics)
- namedQuery(String) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Returns a named
Query
. - newAspect() - Method in class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
- newAspect(Map<String, SessionFactory>) - Method in class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
O
- onError() - Method in class io.dropwizard.hibernate.UnitOfWorkAspect
- onEvent(ApplicationEvent) - Method in class io.dropwizard.hibernate.UnitOfWorkApplicationListener
- onFinish() - Method in class io.dropwizard.hibernate.UnitOfWorkAspect
- onRequest(RequestEvent) - Method in class io.dropwizard.hibernate.UnitOfWorkApplicationListener
P
- persist(E) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Either save or update the given instance, depending upon resolution of the unsaved-value checks (see the manual for discussion of unsaved-value checking).
Q
- query(String) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Returns a typed
Query
R
- readOnly() - Method in annotation type io.dropwizard.hibernate.UnitOfWork
-
If
true
, the Hibernate session will default to loading read-only entities. - registerSessionFactory(String, SessionFactory) - Method in class io.dropwizard.hibernate.UnitOfWorkApplicationListener
-
Register a session factory with the given name.
- run(T, Environment) - Method in class io.dropwizard.hibernate.HibernateBundle
S
- ScanningHibernateBundle<T> - Class in io.dropwizard.hibernate
-
Extension of HibernateBundle that scans given package for entities instead of giving them by hand.
- ScanningHibernateBundle(String) - Constructor for class io.dropwizard.hibernate.ScanningHibernateBundle
- ScanningHibernateBundle(String[], SessionFactoryFactory) - Constructor for class io.dropwizard.hibernate.ScanningHibernateBundle
- ScanningHibernateBundle(String, SessionFactoryFactory) - Constructor for class io.dropwizard.hibernate.ScanningHibernateBundle
- SessionFactoryFactory - Class in io.dropwizard.hibernate
- SessionFactoryFactory() - Constructor for class io.dropwizard.hibernate.SessionFactoryFactory
- SessionFactoryHealthCheck - Class in io.dropwizard.hibernate
- SessionFactoryHealthCheck(ExecutorService, Duration, SessionFactory, Optional<String>) - Constructor for class io.dropwizard.hibernate.SessionFactoryHealthCheck
- SessionFactoryHealthCheck(SessionFactory, Optional<String>) - Constructor for class io.dropwizard.hibernate.SessionFactoryHealthCheck
- SessionFactoryManager - Class in io.dropwizard.hibernate
- SessionFactoryManager(SessionFactory, ManagedDataSource) - Constructor for class io.dropwizard.hibernate.SessionFactoryManager
- setLazyLoadingEnabled(boolean) - Method in class io.dropwizard.hibernate.HibernateBundle
- start() - Method in class io.dropwizard.hibernate.SessionFactoryManager
- stop() - Method in class io.dropwizard.hibernate.SessionFactoryManager
T
- transactional() - Method in annotation type io.dropwizard.hibernate.UnitOfWork
-
If
true
, a transaction will be automatically started before the resource method is invoked, committed if the method returned, and rolled back if an exception was thrown.
U
- uniqueResult(CriteriaQuery<E>) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Convenience method to return a single instance that matches the criteria query, or null if the criteria returns no results.
- uniqueResult(Criteria) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Convenience method to return a single instance that matches the criteria, or null if the criteria returns no results.
- uniqueResult(Query<E>) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Convenience method to return a single instance that matches the query, or null if the query returns no results.
- UnitOfWork - Annotation Type in io.dropwizard.hibernate
-
When annotating a Jersey resource method, wraps the method in a Hibernate session.
- UnitOfWorkApplicationListener - Class in io.dropwizard.hibernate
-
An application event listener that listens for Jersey application initialization to be finished, then creates a map of resource method that have metrics annotations.
- UnitOfWorkApplicationListener() - Constructor for class io.dropwizard.hibernate.UnitOfWorkApplicationListener
- UnitOfWorkApplicationListener(String, SessionFactory) - Constructor for class io.dropwizard.hibernate.UnitOfWorkApplicationListener
-
Construct an application event listener using the given name and session factory.
- UnitOfWorkAspect - Class in io.dropwizard.hibernate
-
An aspect providing operations around a method with the
UnitOfWork
annotation. - UnitOfWorkAspect(Map<String, SessionFactory>) - Constructor for class io.dropwizard.hibernate.UnitOfWorkAspect
- UnitOfWorkAwareProxyFactory - Class in io.dropwizard.hibernate
-
A factory for creating proxies for components that use Hibernate data access objects outside Jersey resources.
- UnitOfWorkAwareProxyFactory(HibernateBundle<?>...) - Constructor for class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
- UnitOfWorkAwareProxyFactory(String, SessionFactory) - Constructor for class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
V
- validateSession() - Method in class io.dropwizard.hibernate.UnitOfWorkAspect
- value() - Method in annotation type io.dropwizard.hibernate.UnitOfWork
-
The name of a hibernate bundle (session factory) that specifies a datasource against which a transaction will be opened.
All Classes All Packages