|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.convert.DefaultDbRefResolver
public class DefaultDbRefResolver
A DbRefResolver that resolves DBRefs by delegating to a
DbRefResolverCallback than is able to generate lazy loading proxies.
| Constructor Summary | |
|---|---|
DefaultDbRefResolver(MongoDbFactory mongoDbFactory)
Creates a new DefaultDbRefResolver with the given MongoDbFactory. |
|
| 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,
com.mongodb.DBRef dbref,
DbRefResolverCallback callback)
Resolves the given DBRef into an object of the given MongoPersistentProperty's type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDbRefResolver(MongoDbFactory mongoDbFactory)
DefaultDbRefResolver with the given MongoDbFactory.
mongoDbFactory - must not be null.| Method Detail |
|---|
public Object resolveDbRef(MongoPersistentProperty property,
com.mongodb.DBRef dbref,
DbRefResolverCallback callback)
DbRefResolverDBRef 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.
resolveDbRef in interface DbRefResolverproperty - will never be null.dbref - the DBRef to resolve.callback - will never be null.
public com.mongodb.DBRef createDbRef(DBRef annotation,
MongoPersistentEntity<?> entity,
Object id)
DbRefResolverDBRef instance for the given DBRef
annotation, MongoPersistentEntity and id.
createDbRef in interface DbRefResolverannotation - will never be null.entity - will never be null.id - will never be null.
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||