org.hibernate.ogm.dialect.mongodb
Class MongoDBAssociationSnapshot

java.lang.Object
  extended by org.hibernate.ogm.dialect.mongodb.MongoDBAssociationSnapshot
All Implemented Interfaces:
AssociationSnapshot

public class MongoDBAssociationSnapshot
extends Object
implements AssociationSnapshot

Author:
Alan Fitton , Emmanuel Bernard

Constructor Summary
MongoDBAssociationSnapshot(com.mongodb.DBObject document, AssociationKey key, AssociationStorage storage)
           
 
Method Summary
 boolean containsKey(RowKey column)
           
 Tuple get(RowKey column)
           
 com.mongodb.DBObject getDBObject()
           
 com.mongodb.DBObject getQueryObject()
           
 com.mongodb.DBObject getRowKeyDBObject(RowKey rowKey)
           
 Set<RowKey> getRowKeys()
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MongoDBAssociationSnapshot

public MongoDBAssociationSnapshot(com.mongodb.DBObject document,
                                  AssociationKey key,
                                  AssociationStorage storage)
Parameters:
document - DBObject containing the association information
key -
Method Detail

get

public Tuple get(RowKey column)
Specified by:
get in interface AssociationSnapshot

getQueryObject

public com.mongodb.DBObject getQueryObject()

containsKey

public boolean containsKey(RowKey column)
Specified by:
containsKey in interface AssociationSnapshot

size

public int size()
Specified by:
size in interface AssociationSnapshot

getRowKeyDBObject

public com.mongodb.DBObject getRowKeyDBObject(RowKey rowKey)

getRowKeys

public Set<RowKey> getRowKeys()
Specified by:
getRowKeys in interface AssociationSnapshot

getDBObject

public com.mongodb.DBObject getDBObject()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012 Hibernate. All Rights Reserved.