Class MappedDocument
java.lang.Object
org.springframework.data.mongodb.core.MappedDocument
A MongoDB document in its mapped state. I.e. after a source document has been mapped using mapping information of the
entity the source document was supposed to represent.
- Since:
- 2.1
- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptiongetId()<T> Tstatic DocumentgetIdIn(Collection<?> ids) static DocumentbooleanhasId()booleanbooleanisIdPresent(Class<?> type) static MappedDocumenttoIds(Collection<Document> documents) voidUpdates the documentsID_FIELD.
-
Method Details
-
of
-
getIdOnlyProjection
-
getIdIn
-
toIds
-
hasId
public boolean hasId() -
hasNonNullId
public boolean hasNonNullId() -
getId
-
getId
-
isIdPresent
-
getIdFilter
-
get
-
updateWithoutId
-
getDocument
-
updateId
Updates the documentsID_FIELD.- Parameters:
value- the _id value to set.- Since:
- 3.4.3
-