/* * 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; import org.hibernate.ogm.entityentry.impl.TuplePointer; import org.hibernate.ogm.model.spi.Association; /** * Provides context information to {@link GridDialect}s when accessing {@link Association}s. * * @author Guillaume Scheibel <guillaume.scheibel@gmail.com> * @author Gunnar Morling */ public interface AssociationContext extends OperationContext { /** * Provides context information related to the given association's type. * @return Context information related to the given association's type */ AssociationTypeContext getAssociationTypeContext(); /** * Returns a tuple representing the entity on the current side of the association for which the given operation was * invoked. May be {@code null} in case this context is passed during the deletion of a transient entity. * * @return A tuple representing the entity on the current side of the association */ TuplePointer getEntityTuplePointer(); }