|
| 1 | +/* |
| 2 | + * Copyright 2025 ObjectBox Ltd. All rights reserved. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +// automatically generated by the FlatBuffers compiler, do not modify |
| 18 | + |
| 19 | +package io.objectbox.model; |
| 20 | + |
| 21 | +/** |
| 22 | + * A property type of an external system (e.g. another database) that has no default mapping to an ObjectBox type. |
| 23 | + * External property types numeric values start at 100 to avoid overlaps with ObjectBox's PropertyType. |
| 24 | + * (And if we ever support one of these as a primary type, we could share the numeric value?) |
| 25 | + */ |
| 26 | +@SuppressWarnings("unused") |
| 27 | +public final class ExternalPropertyType { |
| 28 | + private ExternalPropertyType() { } |
| 29 | + /** |
| 30 | + * Not a real type: represents uninitialized state and can be used for forward compatibility. |
| 31 | + */ |
| 32 | + public static final short Unknown = 0; |
| 33 | + /** |
| 34 | + * Representing type: ByteVector |
| 35 | + * Encoding: 1:1 binary representation, little endian (16 bytes) |
| 36 | + */ |
| 37 | + public static final short Int128 = 100; |
| 38 | + public static final short Reserved1 = 101; |
| 39 | + /** |
| 40 | + * Representing type: ByteVector |
| 41 | + * Encoding: 1:1 binary representation (16 bytes) |
| 42 | + */ |
| 43 | + public static final short Uuid = 102; |
| 44 | + /** |
| 45 | + * IEEE 754 decimal128 type, e.g. supported by MongoDB |
| 46 | + * Representing type: ByteVector |
| 47 | + * Encoding: 1:1 binary representation (16 bytes) |
| 48 | + */ |
| 49 | + public static final short Decimal128 = 103; |
| 50 | + public static final short Reserved2 = 104; |
| 51 | + public static final short Reserved3 = 105; |
| 52 | + public static final short Reserved4 = 106; |
| 53 | + /** |
| 54 | + * A key/value map; e.g. corresponds to a JSON object or a MongoDB document (although not keeping the key order). |
| 55 | + * Unlike the Flex type, this must contain a map value (e.g. not a vector or a scalar). |
| 56 | + * Representing type: Flex |
| 57 | + * Encoding: Flex |
| 58 | + */ |
| 59 | + public static final short FlexMap = 107; |
| 60 | + /** |
| 61 | + * A vector (aka list or array) of flexible elements; e.g. corresponds to a JSON array or a MongoDB array. |
| 62 | + * Unlike the Flex type, this must contain a vector value (e.g. not a map or a scalar). |
| 63 | + * Representing type: Flex |
| 64 | + * Encoding: Flex |
| 65 | + */ |
| 66 | + public static final short FlexVector = 108; |
| 67 | + /** |
| 68 | + * Placeholder (not yet used) for a JSON document. |
| 69 | + * Representing type: String |
| 70 | + */ |
| 71 | + public static final short Json = 109; |
| 72 | + /** |
| 73 | + * Placeholder (not yet used) for a BSON document. |
| 74 | + * Representing type: ByteVector |
| 75 | + */ |
| 76 | + public static final short Bson = 110; |
| 77 | + /** |
| 78 | + * JavaScript source code |
| 79 | + * Representing type: String |
| 80 | + */ |
| 81 | + public static final short JavaScript = 111; |
| 82 | + public static final short Reserved5 = 112; |
| 83 | + public static final short Reserved6 = 113; |
| 84 | + public static final short Reserved7 = 114; |
| 85 | + public static final short Reserved8 = 115; |
| 86 | + /** |
| 87 | + * A vector (array) of Int128 values |
| 88 | + */ |
| 89 | + public static final short Int128Vector = 116; |
| 90 | + public static final short Reserved9 = 117; |
| 91 | + /** |
| 92 | + * A vector (array) of Int128 values |
| 93 | + */ |
| 94 | + public static final short UuidVector = 118; |
| 95 | + public static final short Reserved10 = 119; |
| 96 | + public static final short Reserved11 = 120; |
| 97 | + public static final short Reserved12 = 121; |
| 98 | + public static final short Reserved13 = 122; |
| 99 | + /** |
| 100 | + * The 12-byte ObjectId type in MongoDB |
| 101 | + * Representing type: ByteVector |
| 102 | + * Encoding: 1:1 binary representation (12 bytes) |
| 103 | + */ |
| 104 | + public static final short MongoId = 123; |
| 105 | + /** |
| 106 | + * A vector (array) of MongoId values |
| 107 | + */ |
| 108 | + public static final short MongoIdVector = 124; |
| 109 | + /** |
| 110 | + * Representing type: Long |
| 111 | + * Encoding: Two unsigned 32-bit integers merged into a 64-bit integer. |
| 112 | + */ |
| 113 | + public static final short MongoTimestamp = 125; |
| 114 | + /** |
| 115 | + * Representing type: ByteVector |
| 116 | + * Encoding: 3 zero bytes (reserved, functions as padding), fourth byte is the sub-type, |
| 117 | + * followed by the binary data. |
| 118 | + */ |
| 119 | + public static final short MongoBinary = 126; |
| 120 | + /** |
| 121 | + * Representing type: string vector with 2 elements (index 0: pattern, index 1: options) |
| 122 | + * Encoding: 1:1 string representation |
| 123 | + */ |
| 124 | + public static final short MongoRegex = 127; |
| 125 | + |
| 126 | + public static final String[] names = { "Unknown", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Int128", "Reserved1", "Uuid", "Decimal128", "Reserved2", "Reserved3", "Reserved4", "FlexMap", "FlexVector", "Json", "Bson", "JavaScript", "Reserved5", "Reserved6", "Reserved7", "Reserved8", "Int128Vector", "Reserved9", "UuidVector", "Reserved10", "Reserved11", "Reserved12", "Reserved13", "MongoId", "MongoIdVector", "MongoTimestamp", "MongoBinary", "MongoRegex", }; |
| 127 | + |
| 128 | + public static String name(int e) { return names[e]; } |
| 129 | +} |
| 130 | + |
0 commit comments