Class ReferenceResolver.ReferenceCollection
java.lang.Object
org.springframework.data.mongodb.core.convert.ReferenceResolver.ReferenceCollection
- Enclosing interface:
ReferenceResolver
ReferenceResolver.ReferenceCollection is a value object that contains information about the target database and collection
name of an association.- Since:
- 3.3
- Author:
- Christoph Strobl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromDBRef(com.mongodb.DBRef dbRef) Create a new instance ofReferenceResolver.ReferenceCollectionfrom the givenDBRef.Get the target collection name.@Nullable StringGet the target database name.
-
Constructor Details
-
ReferenceCollection
-
-
Method Details
-
fromDBRef
Create a new instance ofReferenceResolver.ReferenceCollectionfrom the givenDBRef.- Parameters:
dbRef- must not be null.- Returns:
- new instance of
ReferenceResolver.ReferenceCollection.
-
getCollection
-
getDatabase
Get the target database name. If null the default database should be used.- Returns:
- can be null.
-