18
18
19
19
package io .objectbox .model ;
20
20
21
+ /**
22
+ * Basic type of a property
23
+ */
21
24
public final class PropertyType {
22
25
private PropertyType () { }
23
26
/**
@@ -34,14 +37,17 @@ private PropertyType() { }
34
37
public static final short Double = 8 ;
35
38
public static final short String = 9 ;
36
39
/**
37
- * Internally stored as a 64 bit long(? )
40
+ * Date/time stored as a 64 bit long representing milliseconds since 1970-01-01 (unix epoch )
38
41
*/
39
42
public static final short Date = 10 ;
40
43
/**
41
44
* Relation to another entity
42
45
*/
43
46
public static final short Relation = 11 ;
44
- public static final short Reserved1 = 12 ;
47
+ /**
48
+ * High precision date/time stored as a 64 bit long representing nanoseconds since 1970-01-01 (unix epoch)
49
+ */
50
+ public static final short DateNano = 12 ;
45
51
public static final short Reserved2 = 13 ;
46
52
public static final short Reserved3 = 14 ;
47
53
public static final short Reserved4 = 15 ;
@@ -61,8 +67,9 @@ private PropertyType() { }
61
67
public static final short DoubleVector = 29 ;
62
68
public static final short StringVector = 30 ;
63
69
public static final short DateVector = 31 ;
70
+ public static final short DateNanoVector = 32 ;
64
71
65
- public static final String [] names = { "Unknown" , "Bool" , "Byte" , "Short" , "Char" , "Int" , "Long" , "Float" , "Double" , "String" , "Date" , "Relation" , "Reserved1 " , "Reserved2" , "Reserved3" , "Reserved4" , "Reserved5" , "Reserved6" , "Reserved7" , "Reserved8" , "Reserved9" , "Reserved10" , "BoolVector" , "ByteVector" , "ShortVector" , "CharVector" , "IntVector" , "LongVector" , "FloatVector" , "DoubleVector" , "StringVector" , "DateVector" , };
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 " , };
66
73
67
74
public static String name (int e ) { return names [e ]; }
68
75
}
0 commit comments