org.hibernate.ogm.dialect.infinispan
Class InfinispanDialect

java.lang.Object
  extended by org.hibernate.ogm.dialect.infinispan.InfinispanDialect
All Implemented Interfaces:
Serializable, GridDialect, org.hibernate.service.Service

public class InfinispanDialect
extends Object
implements GridDialect

Author:
Emmanuel Bernard
See Also:
Serialized Form

Constructor Summary
InfinispanDialect(InfinispanDatastoreProvider provider)
           
 
Method Summary
 Association createAssociation(AssociationKey key)
           
 Tuple createTuple(EntityKey key)
           
 Tuple createTupleAssociation(AssociationKey associationKey, RowKey rowKey)
           
 Association getAssociation(AssociationKey key, AssociationContext associationContext)
           
 org.hibernate.dialect.lock.LockingStrategy getLockingStrategy(org.hibernate.persister.entity.Lockable lockable, org.hibernate.LockMode lockMode)
          Get a strategy instance which knows how to acquire a database-level lock of the specified mode for this dialect.
 Tuple getTuple(EntityKey key, TupleContext tupleContext)
           
 void nextValue(RowKey key, org.hibernate.id.IntegralDataTypeHolder value, int increment, int initialValue)
           
 GridType overrideType(org.hibernate.type.Type type)
           
 void removeAssociation(AssociationKey key)
           
 void removeTuple(EntityKey key)
           
 void updateAssociation(Association association, AssociationKey key)
           
 void updateTuple(Tuple tuple, EntityKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfinispanDialect

public InfinispanDialect(InfinispanDatastoreProvider provider)
Method Detail

getLockingStrategy

public org.hibernate.dialect.lock.LockingStrategy getLockingStrategy(org.hibernate.persister.entity.Lockable lockable,
                                                                     org.hibernate.LockMode lockMode)
Get a strategy instance which knows how to acquire a database-level lock of the specified mode for this dialect.

Specified by:
getLockingStrategy in interface GridDialect
Parameters:
lockable - The persister for the entity to be locked.
lockMode - The type of lock to be acquired.
Returns:
The appropriate locking strategy.
Since:
3.2

getTuple

public Tuple getTuple(EntityKey key,
                      TupleContext tupleContext)
Specified by:
getTuple in interface GridDialect

createTuple

public Tuple createTuple(EntityKey key)
Specified by:
createTuple in interface GridDialect

updateTuple

public void updateTuple(Tuple tuple,
                        EntityKey key)
Specified by:
updateTuple in interface GridDialect

removeTuple

public void removeTuple(EntityKey key)
Specified by:
removeTuple in interface GridDialect

getAssociation

public Association getAssociation(AssociationKey key,
                                  AssociationContext associationContext)
Specified by:
getAssociation in interface GridDialect

createAssociation

public Association createAssociation(AssociationKey key)
Specified by:
createAssociation in interface GridDialect

updateAssociation

public void updateAssociation(Association association,
                              AssociationKey key)
Specified by:
updateAssociation in interface GridDialect

removeAssociation

public void removeAssociation(AssociationKey key)
Specified by:
removeAssociation in interface GridDialect

createTupleAssociation

public Tuple createTupleAssociation(AssociationKey associationKey,
                                    RowKey rowKey)
Specified by:
createTupleAssociation in interface GridDialect

nextValue

public void nextValue(RowKey key,
                      org.hibernate.id.IntegralDataTypeHolder value,
                      int increment,
                      int initialValue)
Specified by:
nextValue in interface GridDialect

overrideType

public GridType overrideType(org.hibernate.type.Type type)
Specified by:
overrideType in interface GridDialect


Copyright © 2010-2012 Hibernate. All Rights Reserved.