Skip to content

Commit 5235c6e

Browse files
committed
minor updates to classes generated by FlatBuffers
1 parent dd0292c commit 5235c6e

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

objectbox-java/src/main/java/io/objectbox/model/EntityFlags.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ private EntityFlags() { }
2828
*/
2929
public static final int USE_NO_ARG_CONSTRUCTOR = 1;
3030

31-
// Private to protect contents from getting modified.
32-
private static final String[] names = { "USE_NO_ARG_CONSTRUCTOR", };
31+
public static final String[] names = { "USE_NO_ARG_CONSTRUCTOR", };
3332

3433
public static String name(int e) { return names[e - USE_NO_ARG_CONSTRUCTOR]; }
3534
}

objectbox-java/src/main/java/io/objectbox/model/PropertyFlags.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,10 @@ private PropertyFlags() { }
8686
*/
8787
public static final int UNSIGNED = 8192;
8888
/**
89-
* By defining an ID companion property, the entity type uses a special ID encoding scheme involving this property
90-
* in addition to the ID.
89+
* By defining an ID companion property, a special ID encoding scheme is activated involving this property.
9190
*
9291
* For Time Series IDs, a companion property of type Date or DateNano represents the exact timestamp.
93-
* (Future idea: string hash IDs, with a String companion property to store the full string ID).
92+
* (In the future, ID companion string properties may be added as another supported type).
9493
*/
9594
public static final int ID_COMPANION = 16384;
9695
}

objectbox-java/src/main/java/io/objectbox/model/PropertyType.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ private PropertyType() { }
6969
public static final short DateVector = 31;
7070
public static final short DateNanoVector = 32;
7171

72-
// Private to protect contents from getting modified.
73-
private static final String[] names = { "Unknown", "Bool", "Byte", "Short", "Char", "Int", "Long", "Float", "Double", "String", "Date", "Relation", "DateNano", "Reserved2", "Reserved3", "Reserved4", "Reserved5", "Reserved6", "Reserved7", "Reserved8", "Reserved9", "Reserved10", "BoolVector", "ByteVector", "ShortVector", "CharVector", "IntVector", "LongVector", "FloatVector", "DoubleVector", "StringVector", "DateVector", "DateNanoVector", };
72+
public static final String[] names = { "Unknown", "Bool", "Byte", "Short", "Char", "Int", "Long", "Float", "Double", "String", "Date", "Relation", "DateNano", "Reserved2", "Reserved3", "Reserved4", "Reserved5", "Reserved6", "Reserved7", "Reserved8", "Reserved9", "Reserved10", "BoolVector", "ByteVector", "ShortVector", "CharVector", "IntVector", "LongVector", "FloatVector", "DoubleVector", "StringVector", "DateVector", "DateNanoVector", };
7473

7574
public static String name(int e) { return names[e]; }
7675
}

objectbox-java/src/main/java/io/objectbox/query/OrderFlags.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ private OrderFlags() { }
4646
*/
4747
public static final int NULLS_ZERO = 16;
4848

49-
// Private to protect contents from getting modified.
50-
private static final String[] names = { "DESCENDING", "CASE_SENSITIVE", "", "UNSIGNED", "", "", "", "NULLS_LAST", "", "", "", "", "", "", "", "NULLS_ZERO", };
49+
public static final String[] names = { "DESCENDING", "CASE_SENSITIVE", "", "UNSIGNED", "", "", "", "NULLS_LAST", "", "", "", "", "", "", "", "NULLS_ZERO", };
5150

5251
public static String name(int e) { return names[e - DESCENDING]; }
5352
}

0 commit comments

Comments
 (0)