public interface DbRefResolver
DBRef.| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBRef |
createDbRef(DBRef annotation,
MongoPersistentEntity<?> entity,
Object id)
|
Object |
resolveDbRef(MongoPersistentProperty property,
com.mongodb.DBRef dbref,
DbRefResolverCallback callback,
DbRefProxyHandler proxyHandler)
Resolves the given
DBRef into an object of the given MongoPersistentProperty's type. |
Object resolveDbRef(MongoPersistentProperty property, com.mongodb.DBRef dbref, DbRefResolverCallback callback, DbRefProxyHandler proxyHandler)
DBRef into an object of the given MongoPersistentProperty's type. The method
might return a proxy object for the DBRef or resolve it immediately. In both cases the
DbRefResolverCallback will be used to obtain the actual backing object.property - will never be null.dbref - the DBRef to resolve.callback - will never be null.com.mongodb.DBRef createDbRef(DBRef annotation, MongoPersistentEntity<?> entity, Object id)
annotation - will never be null.entity - will never be null.id - will never be null.Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.