Skip to content

Commit 3ae3d7d

Browse files
committed
BoxStore: prepare new native methods: create with flat options, is read-only, validation
1 parent 953655c commit 3ae3d7d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2019 ObjectBox Ltd. All rights reserved.
2+
* Copyright 2017-2020 ObjectBox Ltd. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -136,8 +136,13 @@ public static String getVersionNative() {
136136
*/
137137
public static native void testUnalignedMemoryAccess();
138138

139+
@Deprecated
139140
static native long nativeCreate(String directory, long maxDbSizeInKByte, int maxReaders, byte[] model);
140141

142+
static native long nativeCreateWithFlatOptions(byte[] options, byte[] model);
143+
144+
static native boolean nativeIsReadOnly(long store);
145+
141146
static native void nativeDelete(long store);
142147

143148
static native void nativeDropAllData(long store);
@@ -166,6 +171,8 @@ static native void nativeRegisterCustomType(long store, int entityId, int proper
166171

167172
static native boolean nativeIsObjectBrowserAvailable();
168173

174+
native long nativeValidate(long store, long pageLimit, boolean checkLeafLevel);
175+
169176
public static boolean isObjectBrowserAvailable() {
170177
NativeLibraryLoader.ensureLoaded();
171178
return nativeIsObjectBrowserAvailable();

0 commit comments

Comments
 (0)