org.springframework.data.document.mongodb
Interface MongoWriter<T>
- Type Parameters:
T
- the type of the object to convert to a DBObject
- All Known Subinterfaces:
- MongoConverter, MongoReaderWriter<T>
- All Known Implementing Classes:
- MappingMongoConverter, SimpleMongoConverter
public interface MongoWriter<T>
A MongoWriter is responsible for converting an object of type T to the native MongoDB representation DBObject.
- Author:
- Mark Pollack, Thomas Risberg
Method Summary |
void |
write(T t,
DBObject dbo)
Write the given object of type T to the native MongoDB object representation DBObject. |
write
void write(T t,
DBObject dbo)
- Write the given object of type T to the native MongoDB object representation DBObject.
- Parameters:
t
- The object to convert to a DBObjectdbo
- The DBObject to use for writing.