Skip to content

Commit 46bd877

Browse files
committed
FlatBuffers 1.8.0, remove xxxInByteBuffer methods from model (not yet in 1.8.0)
1 parent b109987 commit 46bd877

File tree

6 files changed

+2
-11
lines changed

6 files changed

+2
-11
lines changed

objectbox-java/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies {
1919
compile fileTree(include: ['*.jar'], dir: 'libs')
2020
compile project(':objectbox-java-api')
2121
compile 'org.greenrobot:essentials:3.0.0-RC1'
22-
compile 'com.google.flatbuffers:flatbuffers-java:1.7.2'
22+
compile 'com.google.flatbuffers:flatbuffers-java:1.8.0'
2323
compile 'com.google.code.findbugs:jsr305:3.0.2'
2424
}
2525

objectbox-java/src/main/java/io/objectbox/BoxStore.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
@ThreadSafe
6060
public class BoxStore implements Closeable {
6161

62-
private static final String VERSION = "1.4.4-2018-03-04";
62+
private static final String VERSION = "1.4.4-2018-03-07";
6363
private static BoxStore defaultStore;
6464

6565
private static final Set<String> openFiles = new HashSet<>();
@@ -135,7 +135,6 @@ static native void nativeRegisterCustomType(long store, int entityId, int proper
135135
public static native boolean isObjectBrowserAvailable();
136136

137137
public static String getVersion() {
138-
139138
return VERSION;
140139
}
141140

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public final class Model extends Table {
4545
*/
4646
public String name() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; }
4747
public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(6, 1); }
48-
public ByteBuffer nameInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); }
4948
/**
5049
* User controlled version, not really used at the moment
5150
*/

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public final class ModelEntity extends Table {
3434
public IdUid id(IdUid obj) { int o = __offset(4); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; }
3535
public String name() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; }
3636
public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(6, 1); }
37-
public ByteBuffer nameInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); }
3837
public ModelProperty properties(int j) { return properties(new ModelProperty(), j); }
3938
public ModelProperty properties(ModelProperty obj, int j) { int o = __offset(8); return o != 0 ? obj.__assign(__indirect(__vector(o) + j * 4), bb) : null; }
4039
public int propertiesLength() { int o = __offset(8); return o != 0 ? __vector_len(o) : 0; }
@@ -52,7 +51,6 @@ public final class ModelEntity extends Table {
5251
*/
5352
public String nameSecondary() { int o = __offset(16); return o != 0 ? __string(o + bb_pos) : null; }
5453
public ByteBuffer nameSecondaryAsByteBuffer() { return __vector_as_bytebuffer(16, 1); }
55-
public ByteBuffer nameSecondaryInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 16, 1); }
5654

5755
public static void startModelEntity(FlatBufferBuilder builder) { builder.startObject(7); }
5856
public static void addId(FlatBufferBuilder builder, int idOffset) { builder.addStruct(0, idOffset, 0); }

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public final class ModelProperty extends Table {
3434
public IdUid id(IdUid obj) { int o = __offset(4); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; }
3535
public String name() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; }
3636
public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(6, 1); }
37-
public ByteBuffer nameInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); }
3837
public int type() { int o = __offset(8); return o != 0 ? bb.getShort(o + bb_pos) & 0xFFFF : 0; }
3938
/**
4039
* bit flags: e.g. indexed, not-nullable
@@ -47,19 +46,16 @@ public final class ModelProperty extends Table {
4746
*/
4847
public String targetEntity() { int o = __offset(14); return o != 0 ? __string(o + bb_pos) : null; }
4948
public ByteBuffer targetEntityAsByteBuffer() { return __vector_as_bytebuffer(14, 1); }
50-
public ByteBuffer targetEntityInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 14, 1); }
5149
/**
5250
* E.g. for virtual to-one target ID properties, this references the ToOne object
5351
*/
5452
public String virtualTarget() { int o = __offset(16); return o != 0 ? __string(o + bb_pos) : null; }
5553
public ByteBuffer virtualTargetAsByteBuffer() { return __vector_as_bytebuffer(16, 1); }
56-
public ByteBuffer virtualTargetInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 16, 1); }
5754
/**
5855
* Secondary name ignored by core; e.g. may reference a binding specific name (e.g. Java property)
5956
*/
6057
public String nameSecondary() { int o = __offset(18); return o != 0 ? __string(o + bb_pos) : null; }
6158
public ByteBuffer nameSecondaryAsByteBuffer() { return __vector_as_bytebuffer(18, 1); }
62-
public ByteBuffer nameSecondaryInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 18, 1); }
6359

6460
public static void startModelProperty(FlatBufferBuilder builder) { builder.startObject(8); }
6561
public static void addId(FlatBufferBuilder builder, int idOffset) { builder.addStruct(0, idOffset, 0); }

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public final class ModelRelation extends Table {
3434
public IdUid id(IdUid obj) { int o = __offset(4); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; }
3535
public String name() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; }
3636
public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(6, 1); }
37-
public ByteBuffer nameInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); }
3837
public IdUid targetEntityId() { return targetEntityId(new IdUid()); }
3938
public IdUid targetEntityId(IdUid obj) { int o = __offset(8); return o != 0 ? obj.__assign(o + bb_pos, bb) : null; }
4039

0 commit comments

Comments
 (0)