org.openspaces.persistency.hibernate
Class AbstractHibernateSpaceDataSource
java.lang.Object
com.gigaspaces.datasource.SpaceDataSource
org.openspaces.persistency.patterns.ManagedEntriesSpaceDataSource
org.openspaces.persistency.hibernate.AbstractHibernateSpaceDataSource
- Direct Known Subclasses:
- DefaultHibernateSpaceDataSource, StatelessHibernateSpaceDataSource
public abstract class AbstractHibernateSpaceDataSource
- extends ManagedEntriesSpaceDataSource
A base class for Hibernate based SpaceDataSource
implementations.
- Since:
- 9.5
- Author:
- eitany
Constructor Summary |
AbstractHibernateSpaceDataSource(org.hibernate.SessionFactory sessionFactory,
Set<String> managedEntries,
int fetchSize,
boolean performOrderById,
String[] initialLoadEntries,
int initialLoadThreadPoolSize,
int initialLoadChunkSize,
boolean useScrollableResultSet)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
AbstractHibernateSpaceDataSource
public AbstractHibernateSpaceDataSource(org.hibernate.SessionFactory sessionFactory,
Set<String> managedEntries,
int fetchSize,
boolean performOrderById,
String[] initialLoadEntries,
int initialLoadThreadPoolSize,
int initialLoadChunkSize,
boolean useScrollableResultSet)
getInitialLoadEntries
protected String[] getInitialLoadEntries()
getInitialLoadChunkSize
protected int getInitialLoadChunkSize()
isUseScrollableResultSet
protected boolean isUseScrollableResultSet()
getSessionFactory
protected org.hibernate.SessionFactory getSessionFactory()
getFetchSize
protected int getFetchSize()
isPerformOrderById
protected boolean isPerformOrderById()
createInitialLoadIterator
protected DataIterator createInitialLoadIterator(DataIterator[] iterators)
- A helper method that creates the initial load iterator using the
ConcurrentMultiDataIterator
with the provided #setInitialLoadThreadPoolSize(int)
thread pool size.
isManagedEntry
protected boolean isManagedEntry(String entityName)
- Returns if the given entity name is part of the
getManagedEntries()
list.
supportsInheritance
public boolean supportsInheritance()
- Description copied from class:
SpaceDataSource
- Determines whether this implementation supports types inheritance.
If types inheritance is not supported - SpaceDataSource.getDataIterator(DataSourceQuery)
will be invoked for each derived type of the query's data type.
Otherwise a single SpaceDataSource.getDataIterator(DataSourceQuery)
invocation will be made for the query.
- Overrides:
supportsInheritance
in class SpaceDataSource
- Returns:
- true if this
SpaceDataSource
implementation supports types inheritance, otherwise false.
getManagedEntries
public Iterable<String> getManagedEntries()
- Specified by:
getManagedEntries
in class ManagedEntriesSpaceDataSource
Copyright © GigaSpaces.