CriteriaHibernateSpaceDataSource
instead.@Deprecated public class CriteriaHibernateExternalDataSource extends DefaultHibernateExternalDataSource implements DataProvider
DataProvider
(not needed by default). The class main use is to
override Hibernate bugs when executing queries with composite objects.HIBERNATE_CFG_PROPERTY, logger
NUMBER_OF_PARTITIONS, STATIC_PARTITION_NUMBER
Constructor and Description |
---|
CriteriaHibernateExternalDataSource()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
getId(Object template)
Deprecated.
Return pojo identifier
|
protected org.hibernate.metadata.ClassMetadata |
getMetadata(Object entry)
Deprecated.
Return pojo entry metadata
|
DataIterator |
iterator(Object template)
Deprecated.
Create an iterator over all objects that match the given template.
Note: null value can be passed - in case of a null template or at initial space load. |
Object |
read(Object template)
Deprecated.
Read one object that matches the given template.
|
executeBulk, getIdentifier, initialLoad, iterator, setDeleteById, setUseMerge
createInitialLoadIterator, filterItemValue, getFetchSize, getInitialLoadChunkSize, getInitialLoadEntries, getManagedEntries, getPartialUpdateHQL, getSessionFactory, init, isManaged, isManagedEntry, isPerformOrderById, isUseScrollableResultSet, setFetchSize, setInitialLoadChunkSize, setInitialLoadEntries, setInitialLoadThreadPoolSize, setManagedEntries, setPerformOrderById, setSessionFactory, setUseScrollableResultSet, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, initialLoad, shutdown
public CriteriaHibernateExternalDataSource()
public Object read(Object template) throws DataSourceException
DataProvider
read
in interface DataProvider
DataSourceException
public DataIterator iterator(Object template) throws DataSourceException
DataProvider
SQLDataProvider
interface is also implemented - the space will use SQLDataProvider
.iterator instead.iterator
in interface DataProvider
DataIterator
or null if no data was found that match the given templateDataSourceException
protected org.hibernate.metadata.ClassMetadata getMetadata(Object entry)
Copyright © GigaSpaces.