org.openspaces.persistency.hibernate
Class AbstractHibernateSpaceSynchronizationEndpoint
java.lang.Object
com.gigaspaces.sync.SpaceSynchronizationEndpoint
org.openspaces.persistency.patterns.ManagedEntriesSpaceSynchronizationEndpoint
org.openspaces.persistency.hibernate.AbstractHibernateSpaceSynchronizationEndpoint
- Direct Known Subclasses:
- DefaultHibernateSpaceSynchronizationEndpoint, StatelessHibernateSpaceSynchronizationEndpoint
public abstract class AbstractHibernateSpaceSynchronizationEndpoint
- extends ManagedEntriesSpaceSynchronizationEndpoint
A base class for Hibernate based SpaceSynchronizationEndpoint
implementations.
- Since:
- 9.5
- Author:
- eitany
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
AbstractHibernateSpaceSynchronizationEndpoint
public AbstractHibernateSpaceSynchronizationEndpoint(org.hibernate.SessionFactory sessionFactory,
Set<String> managedEntries)
isManaged
protected boolean isManaged(DataSyncOperation dataSyncOperation)
- Parameters:
dataSyncOperation
-
- Returns:
filterItemValue
protected Map<String,Object> filterItemValue(String entityName,
Map<String,Object> itemValues)
- Filter from the input map the unmapped field of this entity
- Parameters:
entityName
- itemValues
- map of properties to filter
getPartialUpdateHQL
protected String getPartialUpdateHQL(DataSyncOperation dataSyncOperation,
Map<String,Object> updatedValues)
rollbackTx
protected void rollbackTx(org.hibernate.Transaction tr)
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
- Returns:
- the sessionFactory
getManagedEntries
public Iterable<String> getManagedEntries()
- Specified by:
getManagedEntries
in class ManagedEntriesSpaceSynchronizationEndpoint
Copyright © GigaSpaces.