org.hibernate.ogm.dialect.mongodb
Class MongoDBAssociationSnapshot
java.lang.Object
org.hibernate.ogm.dialect.mongodb.MongoDBAssociationSnapshot
- All Implemented Interfaces:
- AssociationSnapshot
public class MongoDBAssociationSnapshot
- extends Object
- implements AssociationSnapshot
- Author:
- Alan Fitton , Emmanuel Bernard
MongoDBAssociationSnapshot
public MongoDBAssociationSnapshot(com.mongodb.DBObject document,
AssociationKey key,
AssociationStorage storage)
- Parameters:
document - DBObject containing the association informationkey -
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.