@@ -100,7 +100,17 @@ private ExternalPropertyType() { }
100100 * Representing type: String
101101 */
102102 public static final short JavaScript = 111 ;
103- public static final short Reserved5 = 112 ;
103+ /**
104+ * A JSON string that is converted to a native "complex" representation in the external system.
105+ * For example in MongoDB, embedded/nested documents are converted to a JSON string in ObjectBox and vice versa.
106+ * This allows a quick and simple way to work with non-normalized data from MongoDB in ObjectBox.
107+ * Alternatively, you can use FlexMap and FlexVector to map to language primitives (e.g. maps with string keys;
108+ * not supported by all ObjectBox languages yet).
109+ * For MongoDB, (nested) documents and arrays are supported.
110+ * Note that this is very close to the internal representation, e.g. the key order is preserved (unlike Flex).
111+ * Representing type: String
112+ */
113+ public static final short JsonToNative = 112 ;
104114 public static final short Reserved6 = 113 ;
105115 public static final short Reserved7 = 114 ;
106116 public static final short Reserved8 = 115 ;
@@ -110,7 +120,7 @@ private ExternalPropertyType() { }
110120 public static final short Int128Vector = 116 ;
111121 public static final short Reserved9 = 117 ;
112122 /**
113- * A vector (array) of Int128 values
123+ * A vector (array) of UUID values
114124 */
115125 public static final short UuidVector = 118 ;
116126 public static final short Reserved10 = 119 ;
@@ -144,7 +154,7 @@ private ExternalPropertyType() { }
144154 */
145155 public static final short MongoRegex = 127 ;
146156
147- public static final String [] names = { "Unknown" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "Int128" , "Reserved1" , "Uuid" , "Decimal128" , "UuidString" , "UuidV4" , "UuidV4String" , "FlexMap" , "FlexVector" , "Json" , "Bson" , "JavaScript" , "Reserved5 " , "Reserved6" , "Reserved7" , "Reserved8" , "Int128Vector" , "Reserved9" , "UuidVector" , "Reserved10" , "Reserved11" , "Reserved12" , "Reserved13" , "MongoId" , "MongoIdVector" , "MongoTimestamp" , "MongoBinary" , "MongoRegex" , };
157+ public static final String [] names = { "Unknown" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "Int128" , "Reserved1" , "Uuid" , "Decimal128" , "UuidString" , "UuidV4" , "UuidV4String" , "FlexMap" , "FlexVector" , "Json" , "Bson" , "JavaScript" , "JsonToNative " , "Reserved6" , "Reserved7" , "Reserved8" , "Int128Vector" , "Reserved9" , "UuidVector" , "Reserved10" , "Reserved11" , "Reserved12" , "Reserved13" , "MongoId" , "MongoIdVector" , "MongoTimestamp" , "MongoBinary" , "MongoRegex" , };
148158
149159 public static String name (int e ) { return names [e ]; }
150160}
0 commit comments