public class CriteriaHibernateSpaceDataSource extends DefaultHibernateSpaceDataSource
logger
augmentInitialLoadEntries, clusterInfo, initialLoadQueries, initialLoadQueryScanningBasePackages
Constructor and Description |
---|
CriteriaHibernateSpaceDataSource(org.hibernate.SessionFactory sessionFactory,
Set<String> managedEntries,
int fetchSize,
boolean performOrderById,
String[] initialLoadEntries,
int initialLoadThreadPoolSize,
int initialLoadChunkSize,
boolean useScrollableResultSet,
String[] initialLoadQueryScanningBasePackages,
boolean augmentInitialLoadEntries,
ClusterInfo clusterInfo) |
Modifier and Type | Method and Description |
---|---|
Object |
getById(DataSourceIdQuery idQuery)
This method is invoked whenever the space needs to read an entry from the data source
according to its Id.
|
DataIterator<Object> |
getDataIterator(DataSourceQuery query)
Returns a
DefaultListQueryDataIterator
for the given sql query. |
initialDataLoad
createInitialLoadIterator, getFetchSize, getInitialLoadChunkSize, getInitialLoadEntries, getManagedEntries, getSessionFactory, initialMetadataLoad, isManagedEntry, isPerformOrderById, isUseScrollableResultSet, obtainInitialLoadQueries, supportsInheritance
createInitialLoadQuery, getInitialLoadQueries, setClusterInfo, setInitialLoadQueryScanningBasePackages
getDataIteratorByIds
public CriteriaHibernateSpaceDataSource(org.hibernate.SessionFactory sessionFactory, Set<String> managedEntries, int fetchSize, boolean performOrderById, String[] initialLoadEntries, int initialLoadThreadPoolSize, int initialLoadChunkSize, boolean useScrollableResultSet, String[] initialLoadQueryScanningBasePackages, boolean augmentInitialLoadEntries, ClusterInfo clusterInfo)
public DataIterator<Object> getDataIterator(DataSourceQuery query)
DefaultHibernateSpaceDataSource
DefaultListQueryDataIterator
for the given sql query.getDataIterator
in class DefaultHibernateSpaceDataSource
query
- The DataSourceQuery
to get results for.DataIterator
instance contains results for the provided DataSourceQuery
.public Object getById(DataSourceIdQuery idQuery)
SpaceDataSource
The returned value can be either a POJO or a SpaceDocument
instance.
The default implementation of this method is delegated to the SpaceDataSource.getDataIterator(DataSourceQuery)
method so if the data source does not have an optimized
way of reading an entity by its Id - the default implementation may suffice.
getById
in class SpaceDataSource
idQuery
- The DataSourceIdQuery
to get a result for.SpaceDataSource
which matches the provided DataSourceIdQuery
.Copyright © GigaSpaces.