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.model.spi;
 
Represents the association snapshot as loaded by the datastore.

Interface implemented by the datastore dialect to avoid data duplication in memory (if possible). Note that this snapshot will not be modified by the Hibernate OGM engine

Author(s):
Emmanuel Bernard <emmanuel@hibernate.org>
public interface AssociationSnapshot {

Get the row associated to the org.hibernate.ogm.model.key.spi.RowKey.

Parameters:
rowKey the identifier of the row in the association
Returns:
the row with the specified key from this association, if present. null otherwise.
	Tuple get(RowKey rowKey);

Whether this snapshot contains the specified key or not.

Parameters:
rowKey the identifier of the row in the association
Returns:
true if the snapshot contains the row identified by the org.hibernate.ogm.model.key.spi.RowKey. false otherwise
	boolean containsKey(RowKey rowKey);

Returns the number of rows contained in this snapshot.

Returns:
the number of rows in the association snapshot
	int size();

Returns an iterable with the rows contained in this snapshot.

Returns:
an java.lang.Iterable over the rows in the association
New to GrepCode? Check out our FAQ X