public class DefaultHibernateSpaceSynchronizationEndpoint extends AbstractHibernateSpaceSynchronizationEndpoint
SpaceSynchronizationEndpoint
implementation. Based on Hibernate
Session
.logger
Constructor and Description |
---|
DefaultHibernateSpaceSynchronizationEndpoint(org.hibernate.SessionFactory sessionFactory,
Set<String> managedEntries,
boolean useMerge,
boolean deleteById) |
Modifier and Type | Method and Description |
---|---|
protected Serializable |
getIdentifier(Object o)
Extracts and returns the hibernate object identifier
|
void |
onOperationsBatchSynchronization(OperationsBatchData batchData)
Perform the given batch changes using Hibernate
Session . |
void |
onTransactionSynchronization(TransactionData transactionData)
Perform the given transaction changes using Hibernate
Session . |
filterItemValue, getManagedEntries, getPartialUpdateHQL, getSessionFactory, isManaged, rollbackTx
afterOperationsBatchSynchronization, afterTransactionSynchronization, onAddIndex, onIntroduceType, onTransactionConsolidationFailure
public void onTransactionSynchronization(TransactionData transactionData)
Session
.
Note, this implementation relies on Hibernate NonUniqueObjectException
in case the entity is already associated with the given session, and in such a case, will
result in performing merge operation (which is more expensive).
onTransactionSynchronization
in class SpaceSynchronizationEndpoint
transactionData
- the transaction datapublic void onOperationsBatchSynchronization(OperationsBatchData batchData)
Session
. Note,
this implementation relies on Hibernate NonUniqueObjectException
in
case the entity is already associated with the given session, and in such a case, will result
in performing merge operation (which is more expensive).
onOperationsBatchSynchronization
in class SpaceSynchronizationEndpoint
batchData
- the batched operations dataprotected Serializable getIdentifier(Object o)
Copyright © GigaSpaces.