public class DefaultHibernate4Handler extends Object implements Hibernate4Handler
Constructor and Description |
---|
DefaultHibernate4Handler(Hibernate4Factory hibernate4Factory,
Hibernate4Storage hibernate4Storage) |
Modifier and Type | Method and Description |
---|---|
void |
closeHbm4Session() |
void |
closeHbm4Session(String sessionFactoryName) |
<R> R |
withHbm4Session(Hibernate4Callback<R> callback) |
<R> R |
withHbm4Session(String sessionFactoryName,
Hibernate4Callback<R> callback) |
@Inject public DefaultHibernate4Handler(@Nonnull Hibernate4Factory hibernate4Factory, @Nonnull Hibernate4Storage hibernate4Storage)
@Nullable public <R> R withHbm4Session(@Nonnull Hibernate4Callback<R> callback) throws RuntimeHibernate4Exception
withHbm4Session
in interface Hibernate4Handler
RuntimeHibernate4Exception
@Nullable public <R> R withHbm4Session(@Nonnull String sessionFactoryName, @Nonnull Hibernate4Callback<R> callback) throws RuntimeHibernate4Exception
withHbm4Session
in interface Hibernate4Handler
RuntimeHibernate4Exception
public void closeHbm4Session()
closeHbm4Session
in interface Hibernate4Handler
public void closeHbm4Session(@Nonnull String sessionFactoryName)
closeHbm4Session
in interface Hibernate4Handler