Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Hibernate OGM, Domain model persistence for NoSQL datastores
  *
  * License: GNU Lesser General Public License (LGPL), version 2.1 or later
  * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
  */
 package org.hibernate.ogm.dialect.spi;
 
Provides context information to GridDialects when accessing org.hibernate.ogm.model.spi.Associations.

Author(s):
Guillaume Scheibel <guillaume.scheibel@gmail.com>
Gunnar Morling
public interface AssociationContext {

Provides access to the operations queue of the current flush cycle if the active dialect supports the batched execution of operations.

Returns:
the operations queue of the current flush or null if the active dialect does the batched execution of operations
Provides context information related to the given association's type.

Returns:
Context information related to the given association's type
Returns a tuple representing the entity on the current side of the association for which the given operation was invoked. May be null in case this context is passed during the deletion of a transient entity.

Returns:
A tuple representing the entity on the current side of the association
New to GrepCode? Check out our FAQ X