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, rollbackTxafterOperationsBatchSynchronization, afterTransactionSynchronization, onAddIndex, onIntroduceType, onTransactionConsolidationFailurepublic 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 SpaceSynchronizationEndpointtransactionData - 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 SpaceSynchronizationEndpointbatchData - the batched operations dataprotected Serializable getIdentifier(Object o)
Copyright © GigaSpaces.