A B C D E F G H I L M N O P Q R S T U V W
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.
- addNamedEntityGraph(String, EntityGraph<T>) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- addNamedQuery(String, Query) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- 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
- close() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- 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
- containsFetchProfileDefinition(String) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- 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 a one-parameter constructor.
- createEntityManager() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- createEntityManager(SynchronizationType) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- createEntityManager(SynchronizationType, Map) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- createEntityManager(Map) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- createHibernate5Module() - Method in class io.dropwizard.hibernate.HibernateBundle
-
Override to configure the
Hibernate5JakartaModule
. - createProxyClass(Class<T>) - Method in class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
- criteriaQuery() - Method in class io.dropwizard.hibernate.AbstractDAO
-
Creates a new
CriteriaQuery
for<E>
. - current() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- currentSession() - Method in class io.dropwizard.hibernate.AbstractDAO
-
Returns the current
Session
.
D
- DEFAULT_NAME - Static variable in class io.dropwizard.hibernate.HibernateBundle
- DualSessionFactory - Class in io.dropwizard.hibernate.dual
-
Represents a wrapper/decorator class for a Hibernate session factory that can manage both a primary session factory and a read-only session factory.
- DualSessionFactory(SessionFactory, SessionFactory) - Constructor for class io.dropwizard.hibernate.dual.DualSessionFactory
E
- entities - 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
- findEntityGraphsByType(Class<T>) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- flushMode() - Method in annotation type io.dropwizard.hibernate.UnitOfWork
-
The
FlushMode
for the session. - fromSession(Function<Session, R>) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- fromTransaction(Function<Session, R>) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
G
- get(Object) - 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. - getCache() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getCriteriaBuilder() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getCurrentSession() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getDataSource() - Method in class io.dropwizard.hibernate.SessionFactoryManager
- getDefinedFilterNames() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getEntityClass() - Method in class io.dropwizard.hibernate.AbstractDAO
-
Returns the entity class managed by this DAO.
- getFilterDefinition(String) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getMetamodel() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getPersistenceUnitUtil() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getProperties() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getReadSourceFactory(T) - Method in class io.dropwizard.hibernate.dual.HibernateBundle
- getReference() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- 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
- getSessionFactoryOptions() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getStatistics() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- getValidationQuery() - Method in class io.dropwizard.hibernate.SessionFactoryHealthCheck
H
- HibernateBundle<T> - Class in io.dropwizard.hibernate.dual
- HibernateBundle<T> - Class in io.dropwizard.hibernate
- HibernateBundle(Class<?>, Class<?>...) - Constructor for class io.dropwizard.hibernate.dual.HibernateBundle
- HibernateBundle(Class<?>, Class<?>...) - Constructor for class io.dropwizard.hibernate.HibernateBundle
- HibernateBundle(List<Class<?>>, SessionFactoryFactory) - Constructor for class io.dropwizard.hibernate.dual.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.
- inSession(Consumer<Session>) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- inTransaction(Consumer<Session>) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- invoke(Method, Callable<Object>) - Method in class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory.MethodInterceptor
- io.dropwizard.hibernate - package io.dropwizard.hibernate
- io.dropwizard.hibernate.dual - package io.dropwizard.hibernate.dual
- isClosed() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- isLazyLoadingEnabled() - Method in class io.dropwizard.hibernate.HibernateBundle
- isOpen() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
L
- lazyLoadingEnabled - Variable in class io.dropwizard.hibernate.HibernateBundle
- list(CriteriaQuery<E>) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Get the results of a
CriteriaQuery
query. - list(Query<E>) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Get the results of a query.
M
- MethodInterceptor(Map<String, SessionFactory>) - Constructor for class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory.MethodInterceptor
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
. - namedTypedQuery(String) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Returns a named and type-safe
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
- openSession() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- openStatelessSession() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- openStatelessSession(Connection) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
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).
- prepare(boolean) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
-
Activates either the primary or the reader session factory depending on the readOnly parameter.
- PRIMARY - Static variable in class io.dropwizard.hibernate.dual.HibernateBundle
Q
- query(String) - Method in class io.dropwizard.hibernate.AbstractDAO
-
Returns a typed
Query
R
- READER - Static variable in class io.dropwizard.hibernate.dual.HibernateBundle
- 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.
- registerUnitOfWorkListenerIfAbsent(Environment) - Method in class io.dropwizard.hibernate.HibernateBundle
- run(T, Environment) - Method in class io.dropwizard.hibernate.dual.HibernateBundle
- 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
- sessionFactory - Variable in class io.dropwizard.hibernate.HibernateBundle
- sessionFactoryFactory - Variable in class io.dropwizard.hibernate.HibernateBundle
- 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(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(Caffeine<Object, Object>, HibernateBundle<?>...) - Constructor for class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
- UnitOfWorkAwareProxyFactory(Caffeine<Object, Object>, String, SessionFactory) - Constructor for class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
- UnitOfWorkAwareProxyFactory(HibernateBundle<?>...) - Constructor for class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
- UnitOfWorkAwareProxyFactory(String, SessionFactory) - Constructor for class io.dropwizard.hibernate.UnitOfWorkAwareProxyFactory
- UnitOfWorkAwareProxyFactory.MethodInterceptor - Class in io.dropwizard.hibernate
- UnitsOfWork - Annotation Type in io.dropwizard.hibernate
-
Container annotation for repeated
UnitOfWork
annotations. - unwrap(Class<T>) - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
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.
- value() - Method in annotation type io.dropwizard.hibernate.UnitsOfWork
W
- withOptions() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
- withStatelessOptions() - Method in class io.dropwizard.hibernate.dual.DualSessionFactory
All Classes All Packages