public class DefaultHibernate5Handler extends Object implements Hibernate5Handler
Constructor and Description |
---|
DefaultHibernate5Handler(Hibernate5Factory hibernate5Factory,
Hibernate5Storage hibernate5Storage) |
Modifier and Type | Method and Description |
---|---|
void |
closeHbm5Session() |
void |
closeHbm5Session(String sessionFactoryName) |
<R> R |
withHbm5Session(Hibernate5Callback<R> callback) |
<R> R |
withHbm5Session(String sessionFactoryName,
Hibernate5Callback<R> callback) |
@Inject public DefaultHibernate5Handler(@Nonnull Hibernate5Factory hibernate5Factory, @Nonnull Hibernate5Storage hibernate5Storage)
@Nullable public <R> R withHbm5Session(@Nonnull Hibernate5Callback<R> callback) throws RuntimeHibernate5Exception
withHbm5Session
in interface Hibernate5Handler
RuntimeHibernate5Exception
@Nullable public <R> R withHbm5Session(@Nonnull String sessionFactoryName, @Nonnull Hibernate5Callback<R> callback) throws RuntimeHibernate5Exception
withHbm5Session
in interface Hibernate5Handler
RuntimeHibernate5Exception
public void closeHbm5Session()
closeHbm5Session
in interface Hibernate5Handler
public void closeHbm5Session(@Nonnull String sessionFactoryName)
closeHbm5Session
in interface Hibernate5Handler