public abstract class AbstractHibernateStore extends Object implements DataStore
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractHibernateStore.Builder
Builder object to configuration hibernate store.
|
static interface |
AbstractHibernateStore.HibernateTransactionSupplier
Functional interface for describing a method to supply a custom Hibernate transaction.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isScrollEnabled |
protected org.hibernate.ScrollMode |
scrollMode |
protected org.hibernate.SessionFactory |
sessionFactory |
protected AbstractHibernateStore.HibernateTransactionSupplier |
transactionSupplier |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHibernateStore(org.hibernate.SessionFactory aSessionFactory,
boolean isScrollEnabled,
org.hibernate.ScrollMode scrollMode)
Constructor.
|
protected |
AbstractHibernateStore(org.hibernate.SessionFactory aSessionFactory,
boolean isScrollEnabled,
org.hibernate.ScrollMode scrollMode,
AbstractHibernateStore.HibernateTransactionSupplier transactionSupplier)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract DataStoreTransaction |
beginTransaction()
Start Hibernate transaction.
|
protected void |
bindEntity(EntityDictionary dictionary,
javax.persistence.metamodel.EntityType type) |
abstract org.hibernate.Session |
getSession()
Get current Hibernate session.
|
void |
populateEntityDictionary(EntityDictionary dictionary) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginReadTransactionprotected final org.hibernate.SessionFactory sessionFactory
protected final boolean isScrollEnabled
protected final org.hibernate.ScrollMode scrollMode
protected final AbstractHibernateStore.HibernateTransactionSupplier transactionSupplier
protected AbstractHibernateStore(org.hibernate.SessionFactory aSessionFactory,
boolean isScrollEnabled,
org.hibernate.ScrollMode scrollMode)
aSessionFactory - Session factoryisScrollEnabled - Whether or not scrolling is enabled on driverscrollMode - Scroll mode to use for scrolling driverprotected AbstractHibernateStore(org.hibernate.SessionFactory aSessionFactory,
boolean isScrollEnabled,
org.hibernate.ScrollMode scrollMode,
AbstractHibernateStore.HibernateTransactionSupplier transactionSupplier)
aSessionFactory - Session factoryisScrollEnabled - Whether or not scrolling is enabled on driverscrollMode - Scroll mode to use for scrolling drivertransactionSupplier - Supplier for transactionpublic void populateEntityDictionary(EntityDictionary dictionary)
populateEntityDictionary in interface DataStoreprotected void bindEntity(EntityDictionary dictionary, javax.persistence.metamodel.EntityType type)
public abstract org.hibernate.Session getSession()
public abstract DataStoreTransaction beginTransaction()
beginTransaction in interface DataStoreCopyright © 2015–2019. All rights reserved.