Spring Data MongoDB - Core

org.springframework.data.mongodb.core.convert
Interface DbRefResolver

All Known Implementing Classes:
DefaultDbRefResolver

public interface DbRefResolver

Used to resolve associations annotated with DBRef.

Author:
Thomas Darimont

Method Summary
 com.mongodb.DBRef createDbRef(DBRef annotation, MongoPersistentEntity<?> entity, Object id)
          Creates a DBRef instance for the given DBRef annotation, MongoPersistentEntity and id.
 Object resolveDbRef(MongoPersistentProperty property, DbRefResolverCallback callback)
           
 

Method Detail

resolveDbRef

Object resolveDbRef(MongoPersistentProperty property,
                    DbRefResolverCallback callback)
Parameters:
property - will never be null.
callback - will never be null.
Returns:

createDbRef

com.mongodb.DBRef createDbRef(DBRef annotation,
                              MongoPersistentEntity<?> entity,
                              Object id)
Creates a DBRef instance for the given DBRef annotation, MongoPersistentEntity and id.

Parameters:
annotation - will never be null.
entity - will never be null.
id - will never be null.
Returns:

Spring Data MongoDB - Core

Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.