@@ -100,7 +100,17 @@ private ExternalPropertyType() { }
100
100
* Representing type: String
101
101
*/
102
102
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 ;
104
114
public static final short Reserved6 = 113 ;
105
115
public static final short Reserved7 = 114 ;
106
116
public static final short Reserved8 = 115 ;
@@ -110,7 +120,7 @@ private ExternalPropertyType() { }
110
120
public static final short Int128Vector = 116 ;
111
121
public static final short Reserved9 = 117 ;
112
122
/**
113
- * A vector (array) of Int128 values
123
+ * A vector (array) of UUID values
114
124
*/
115
125
public static final short UuidVector = 118 ;
116
126
public static final short Reserved10 = 119 ;
@@ -144,7 +154,7 @@ private ExternalPropertyType() { }
144
154
*/
145
155
public static final short MongoRegex = 127 ;
146
156
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" , };
148
158
149
159
public static String name (int e ) { return names [e ]; }
150
160
}
0 commit comments