Class MongoDbBasicConverters


  • @Converter(generateLoader=true)
    public final class MongoDbBasicConverters
    extends Object
    • 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
      • fromStringToList

        @Converter(allowNull=true)
        public static List<org.bson.conversions.Bson> fromStringToList​(String value)