Class MongoDbBasicConverters
- java.lang.Object
-
- org.apache.camel.component.mongodb.converters.MongoDbBasicConverters
-
@Converter(generateLoader=true) public final class MongoDbBasicConverters extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.bson.Document
fromByteArrayToDocument(byte[] data, org.apache.camel.Exchange exchange)
static Map<String,Object>
fromDocumentToMap(org.bson.Document document)
static org.bson.Document
fromFileToDocument(File f, org.apache.camel.Exchange exchange)
static org.bson.Document
fromInputStreamToDocument(InputStream is, org.apache.camel.Exchange exchange)
static org.bson.Document
fromMapToDocument(Map<String,Object> map)
static org.bson.Document
fromStringToDocument(String s)
static List<org.bson.conversions.Bson>
fromStringToList(String value)
static org.bson.types.ObjectId
fromStringToObjectId(String s)
-
-
-
Method Detail
-
fromMapToDocument
@Converter public static org.bson.Document fromMapToDocument(Map<String,Object> map)
-
fromDocumentToMap
@Converter public static Map<String,Object> fromDocumentToMap(org.bson.Document document)
-
fromStringToDocument
@Converter public static org.bson.Document fromStringToDocument(String s)
-
fromStringToObjectId
@Converter public static org.bson.types.ObjectId fromStringToObjectId(String s)
-
fromFileToDocument
@Converter public static org.bson.Document fromFileToDocument(File f, org.apache.camel.Exchange exchange) throws Exception
- Throws:
Exception
-
fromByteArrayToDocument
@Converter public static org.bson.Document fromByteArrayToDocument(byte[] data, org.apache.camel.Exchange exchange) throws Exception
- Throws:
Exception
-
fromInputStreamToDocument
@Converter public static org.bson.Document fromInputStreamToDocument(InputStream is, org.apache.camel.Exchange exchange) throws Exception
- Throws:
Exception
-
-