public interface DBObjectBuilder
| Modifier and Type | Method and Description |
|---|---|
void |
buildDBObject(BsonWriter writer,
EObject eObject,
EncoderContext context)
Build a Mongo DB object from the supplied EMF object using streamings.
|
void |
buildReferencedObject(BsonWriter writer,
EReference eReference,
EObject targetObject,
EncoderContext context)
Serializes a reference as an embedded object or a proxy as appropriate
|
java.lang.Object |
convertEMFToMongoValue(EDataType eDataType,
java.lang.Object emfValue)
Converts the EMF value into a MongoDB value using the converter service
|
void |
writePrimitiveValue(java.lang.String name,
java.lang.Object value,
BsonWriter writer)
Writes a primitive value to the
BsonWriter. |
void |
writePrimitiveValueNoName(java.lang.Object value,
BsonWriter writer)
Writes a primitive value to the
BsonWriter. |
void buildDBObject(BsonWriter writer,
EObject eObject,
EncoderContext context)
writer - the BsonWriter instance to write intoeObject - the EMF object to serializevoid writePrimitiveValue(java.lang.String name,
java.lang.Object value,
BsonWriter writer)
BsonWriter. If the value is null, nothing will be writtenname - the name of the fieldvalue - the valuewriter - the writer to write intovoid writePrimitiveValueNoName(java.lang.Object value,
BsonWriter writer)
BsonWriter. If the value is null, nothing will be writtenvalue - the valuewriter - the writer to write intojava.lang.Object convertEMFToMongoValue(EDataType eDataType,
java.lang.Object emfValue)
eDataType - the value typeemfValue - the valuevoid buildReferencedObject(BsonWriter writer,
EReference eReference,
EObject targetObject,
EncoderContext context)
writer - the BsonWriter to write intoeReference - the reference to serializetargetObject - to referenced objectcontext - the encoder contextBryan Hunt, Data In Motion Consulting