Index
All Classes and Interfaces|All Packages
A
- accept(SneakyThrows.Consumer<EntityManager>) - Method in interface io.jooby.hibernate.UnitOfWork
-
Runs the specified code block passing a reference to an
EntityManager
to it. - accept(SneakyThrows.Consumer2<EntityManager, UnitOfWork.TransactionHandler>) - Method in interface io.jooby.hibernate.UnitOfWork
-
Runs the specified code block passing a reference to an
EntityManager
and aUnitOfWork.TransactionHandler
to it. - apply(Route.Handler) - Method in class io.jooby.hibernate.SessionRequest
- apply(Route.Handler) - Method in class io.jooby.hibernate.TransactionalRequest
- apply(SneakyThrows.Function<EntityManager, T>) - Method in interface io.jooby.hibernate.UnitOfWork
-
Runs the specified code block passing a reference to an
EntityManager
to it, and returns it's result. - apply(SneakyThrows.Function2<EntityManager, UnitOfWork.TransactionHandler, T>) - Method in interface io.jooby.hibernate.UnitOfWork
-
Runs the specified code block passing a reference to an
EntityManager
and aUnitOfWork.TransactionHandler
to it, and returns it's result.
C
- commit() - Method in interface io.jooby.hibernate.UnitOfWork.TransactionHandler
-
Commits the current transaction and begins a new one.
- configure(MetadataBuilder, Config) - Method in class io.jooby.hibernate.HibernateConfigurer
-
Hook into metadata builder and customize it.
- configure(MetadataSources, Config) - Method in class io.jooby.hibernate.HibernateConfigurer
-
Hook into metadata sources and customize it.
- configure(BootstrapServiceRegistryBuilder, Config) - Method in class io.jooby.hibernate.HibernateConfigurer
-
Hook into bootstrap registry and customize it.
- configure(StandardServiceRegistryBuilder, Config) - Method in class io.jooby.hibernate.HibernateConfigurer
-
Hook into service registry and customize it.
- configure(SessionFactoryBuilder, Config) - Method in class io.jooby.hibernate.HibernateConfigurer
-
Hook into SessionFactory creation and customize it.
E
- enabledByDefault(boolean) - Method in class io.jooby.hibernate.TransactionalRequest
-
Sets whether all routes in the scope of this decorator instance should be transactional or not (
true
by default).
G
- getSessionFactoryKey() - Method in class io.jooby.hibernate.SessionRequest
-
Get the service key for accessing to the configured
SessionFactory
service.
H
- HibernateConfigurer - Class in io.jooby.hibernate
-
Allow to customize Hibernate bootstrap components.
- HibernateConfigurer() - Constructor for class io.jooby.hibernate.HibernateConfigurer
- HibernateModule - Class in io.jooby.hibernate
-
Hibernate ORM module: https://jooby.io/modules/hibernate.
- HibernateModule(Class...) - Constructor for class io.jooby.hibernate.HibernateModule
-
Creates a new Hibernate module.
- HibernateModule(String, Class...) - Constructor for class io.jooby.hibernate.HibernateModule
-
Creates a Hibernate module.
- HibernateModule(String, List<Class>) - Constructor for class io.jooby.hibernate.HibernateModule
-
Creates a Hibernate module.
I
- install(Jooby) - Method in class io.jooby.hibernate.HibernateModule
- io.jooby.hibernate - module io.jooby.hibernate
-
Hibernate module.
- io.jooby.hibernate - package io.jooby.hibernate
N
- newSession(SessionBuilder) - Method in interface io.jooby.hibernate.SessionProvider
-
Creates a new session.
R
- rollback() - Method in interface io.jooby.hibernate.UnitOfWork.TransactionHandler
-
Rolls the current transaction back and begins a new one.
S
- scan(String...) - Method in class io.jooby.hibernate.HibernateModule
-
Scan packages and look for persistent classes.
- scan(List<String>) - Method in class io.jooby.hibernate.HibernateModule
-
Scan packages and look for persistent classes.
- SessionProvider - Interface in io.jooby.hibernate
-
Allow to customize a Session before opening it.
- SessionRequest - Class in io.jooby.hibernate
-
Attach
Session
andEntityManager
to the current request. - SessionRequest() - Constructor for class io.jooby.hibernate.SessionRequest
-
Creates a new session request and attach to the default/first session factory registered.
- SessionRequest(String) - Constructor for class io.jooby.hibernate.SessionRequest
-
Creates a new session request and attach the to a named session factory.
T
- TransactionalRequest - Class in io.jooby.hibernate
- TransactionalRequest() - Constructor for class io.jooby.hibernate.TransactionalRequest
-
Creates a new transactional request and attach to the default/first session factory registered.
- TransactionalRequest(String) - Constructor for class io.jooby.hibernate.TransactionalRequest
-
Creates a new transactional request and attach the to a named session factory.
U
- UnitOfWork - Interface in io.jooby.hibernate
-
Allows you to open a JPA session on demand by acquiring an instance of a class implementing this interface via the service registry or DI.
- UnitOfWork.TransactionHandler - Interface in io.jooby.hibernate
-
Allows committing or rolling back the current transaction, immediately beginning a new one.
W
- with(HibernateConfigurer) - Method in class io.jooby.hibernate.HibernateModule
-
Hook into Hibernate bootstrap components and allow to customize them.
- with(SessionProvider) - Method in class io.jooby.hibernate.HibernateModule
-
Allow to customize a
Session
before opening it.
All Classes and Interfaces|All Packages