Skip to content

Commit 9a51262

Browse files
New Query API: not experimental since a while
1 parent 7b2fc8d commit 9a51262

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,14 +578,14 @@ public long panicModeRemoveAll() {
578578

579579
/**
580580
* Returns a builder to create queries for Object matching supplied criteria.
581+
* <p>
582+
* New code should use {@link #query(QueryCondition)} instead.
581583
*/
582584
public QueryBuilder<T> query() {
583585
return new QueryBuilder<>(this, store.getNativeStore(), store.getDbName(entityClass));
584586
}
585587

586588
/**
587-
* Experimental. This API might change or be removed in the future based on user feedback.
588-
* <p>
589589
* Applies the given query conditions and returns the builder for further customization, such as result order.
590590
* Build the condition using the properties from your entity underscore classes.
591591
* <p>
@@ -605,7 +605,6 @@ public QueryBuilder<T> query() {
605605
*
606606
* @see QueryBuilder#apply(QueryCondition)
607607
*/
608-
@Experimental
609608
public QueryBuilder<T> query(QueryCondition<T> queryCondition) {
610609
return query().apply(queryCondition);
611610
}

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import io.objectbox.Box;
2727
import io.objectbox.EntityInfo;
2828
import io.objectbox.Property;
29-
import io.objectbox.annotation.apihint.Experimental;
3029
import io.objectbox.annotation.apihint.Internal;
3130
import io.objectbox.exception.DbException;
3231
import io.objectbox.relation.RelationInfo;
@@ -289,8 +288,6 @@ private void verifyHandle() {
289288
}
290289

291290
/**
292-
* Experimental. This API might change or be removed in the future based on user feedback.
293-
* <p>
294291
* Applies the given query conditions and returns the builder for further customization, such as result order.
295292
* Build the condition using the properties from your entity underscore classes.
296293
* <p>
@@ -308,7 +305,6 @@ private void verifyHandle() {
308305
* </pre>
309306
* Use {@link Box#query(QueryCondition)} as a shortcut for this method.
310307
*/
311-
@Experimental
312308
public QueryBuilder<T> apply(QueryCondition<T> queryCondition) {
313309
((QueryConditionImpl<T>) queryCondition).apply(this);
314310
return this;

0 commit comments

Comments
 (0)