17
17
18
18
package io .objectbox ;
19
19
20
- // Copied from generated tests (& removed some unused Properties)
21
-
22
20
import io .objectbox .TestEntityCursor .Factory ;
23
21
import io .objectbox .annotation .apihint .Internal ;
24
22
import io .objectbox .internal .CursorFactory ;
25
23
import io .objectbox .internal .IdGetter ;
26
24
25
+ // NOTE: Copied from a plugin project (& removed some unused Properties).
26
+ // THIS CODE IS GENERATED BY ObjectBox, DO NOT EDIT.
27
+
27
28
/**
28
29
* Properties for entity "TestEntity". Can be used for QueryBuilder and for referencing DB names.
29
30
*/
@@ -33,6 +34,8 @@ public final class TestEntity_ implements EntityInfo<TestEntity> {
33
34
34
35
public static final String __ENTITY_NAME = "TestEntity" ;
35
36
37
+ public static final int __ENTITY_ID = 1 ;
38
+
36
39
public static final Class <TestEntity > __ENTITY_CLASS = TestEntity .class ;
37
40
38
41
public static final String __DB_NAME = "TestEntity" ;
@@ -44,44 +47,65 @@ public final class TestEntity_ implements EntityInfo<TestEntity> {
44
47
45
48
public final static TestEntity_ __INSTANCE = new TestEntity_ ();
46
49
47
- public final static Property <TestEntity > id = new Property <>(__INSTANCE , 0 , 1 , long .class , "id" , true , "id" );
48
- public final static Property <TestEntity > simpleBoolean = new Property <>(__INSTANCE , 1 , 2 , boolean .class , "simpleBoolean" , false , "simpleBoolean" );
49
- public final static Property <TestEntity > simpleByte = new Property <>(__INSTANCE , 2 , 3 , byte .class , "simpleByte" , false , "simpleByte" );
50
- public final static Property <TestEntity > simpleShort = new Property <>(__INSTANCE , 3 , 4 , short .class , "simpleShort" , false , "simpleShort" );
51
- public final static Property <TestEntity > simpleInt = new Property <>(__INSTANCE , 4 , 5 , int .class , "simpleInt" , false , "simpleInt" );
52
- public final static Property <TestEntity > simpleLong = new Property <>(__INSTANCE , 5 , 6 , long .class , "simpleLong" , false , "simpleLong" );
53
- public final static Property <TestEntity > simpleFloat = new Property <>(__INSTANCE , 6 , 7 , float .class , "simpleFloat" , false , "simpleFloat" );
54
- public final static Property <TestEntity > simpleDouble = new Property <>(__INSTANCE , 7 , 8 , double .class , "simpleDouble" , false , "simpleDouble" );
55
- public final static Property <TestEntity > simpleString = new Property <>(__INSTANCE , 8 , 9 , String .class , "simpleString" , false , "simpleString" );
56
- public final static Property <TestEntity > simpleByteArray = new Property <>(__INSTANCE , 9 , 10 , byte [].class , "simpleByteArray" , false , "simpleByteArray" );
50
+ public final static io .objectbox .Property <TestEntity > id =
51
+ new io .objectbox .Property <>(__INSTANCE , 0 , 1 , long .class , "id" , true , "id" );
52
+
53
+ public final static io .objectbox .Property <TestEntity > simpleBoolean =
54
+ new io .objectbox .Property <>(__INSTANCE , 1 , 2 , boolean .class , "simpleBoolean" );
55
+
56
+ public final static io .objectbox .Property <TestEntity > simpleByte =
57
+ new io .objectbox .Property <>(__INSTANCE , 2 , 3 , byte .class , "simpleByte" );
58
+
59
+ public final static io .objectbox .Property <TestEntity > simpleShort =
60
+ new io .objectbox .Property <>(__INSTANCE , 3 , 4 , short .class , "simpleShort" );
61
+
62
+ public final static io .objectbox .Property <TestEntity > simpleInt =
63
+ new io .objectbox .Property <>(__INSTANCE , 4 , 5 , int .class , "simpleInt" );
64
+
65
+ public final static io .objectbox .Property <TestEntity > simpleLong =
66
+ new io .objectbox .Property <>(__INSTANCE , 5 , 6 , long .class , "simpleLong" );
67
+
68
+ public final static io .objectbox .Property <TestEntity > simpleFloat =
69
+ new io .objectbox .Property <>(__INSTANCE , 6 , 7 , float .class , "simpleFloat" );
70
+
71
+ public final static io .objectbox .Property <TestEntity > simpleDouble =
72
+ new io .objectbox .Property <>(__INSTANCE , 7 , 8 , double .class , "simpleDouble" );
73
+
74
+ public final static io .objectbox .Property <TestEntity > simpleString =
75
+ new io .objectbox .Property <>(__INSTANCE , 8 , 9 , String .class , "simpleString" );
76
+
77
+ public final static io .objectbox .Property <TestEntity > simpleByteArray =
78
+ new io .objectbox .Property <>(__INSTANCE , 9 , 10 , byte [].class , "simpleByteArray" );
57
79
58
80
@ SuppressWarnings ("unchecked" )
59
- public final static Property <TestEntity >[] __ALL_PROPERTIES = new Property []{
81
+ public final static io . objectbox . Property <TestEntity >[] __ALL_PROPERTIES = new io . objectbox . Property []{
60
82
id ,
61
- simpleInt ,
83
+ simpleBoolean ,
84
+ simpleByte ,
62
85
simpleShort ,
86
+ simpleInt ,
63
87
simpleLong ,
64
- simpleString ,
65
88
simpleFloat ,
66
- simpleBoolean ,
89
+ simpleDouble ,
90
+ simpleString ,
67
91
simpleByteArray
68
92
};
69
93
70
- public final static Property <TestEntity > __ID_PROPERTY = id ;
94
+ public final static io . objectbox . Property <TestEntity > __ID_PROPERTY = id ;
71
95
72
96
@ Override
73
97
public String getEntityName () {
74
98
return __ENTITY_NAME ;
75
99
}
76
100
77
101
@ Override
78
- public Class < TestEntity > getEntityClass () {
79
- return __ENTITY_CLASS ;
102
+ public int getEntityId () {
103
+ return __ENTITY_ID ;
80
104
}
81
105
82
106
@ Override
83
- public int getEntityId () {
84
- return 1 ;
107
+ public Class < TestEntity > getEntityClass () {
108
+ return __ENTITY_CLASS ;
85
109
}
86
110
87
111
@ Override
@@ -90,12 +114,12 @@ public String getDbName() {
90
114
}
91
115
92
116
@ Override
93
- public Property <TestEntity >[] getAllProperties () {
117
+ public io . objectbox . Property <TestEntity >[] getAllProperties () {
94
118
return __ALL_PROPERTIES ;
95
119
}
96
120
97
121
@ Override
98
- public Property <TestEntity > getIdProperty () {
122
+ public io . objectbox . Property <TestEntity > getIdProperty () {
99
123
return __ID_PROPERTY ;
100
124
}
101
125
@@ -111,6 +135,7 @@ public CursorFactory<TestEntity> getCursorFactory() {
111
135
112
136
@ Internal
113
137
static final class TestEntityIdGetter implements IdGetter <TestEntity > {
138
+ @ Override
114
139
public long getId (TestEntity object ) {
115
140
return object .getId ();
116
141
}
0 commit comments