GeezerVison is showing github.com — New Query API: not experimental since a while · PIN-AI/objectbox-java@9a51262
File tree
Expand file treeCollapse file tree
Open diff view settings
objectbox-java/src/main/java/io/objectbox
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/Box.java +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -578,14 +578,14 @@ public long panicModeRemoveAll() { |
578 | 578 |
|
579 | 579 | /** |
580 | 580 | * Returns a builder to create queries for Object matching supplied criteria. |
| 581 | + * <p> |
| 582 | + * New code should use {@link #query(QueryCondition)} instead. |
581 | 583 | */ |
582 | 584 | public QueryBuilder<T> query() { |
583 | 585 | return new QueryBuilder<>(this, store.getNativeStore(), store.getDbName(entityClass)); |
584 | 586 | } |
585 | 587 |
|
586 | 588 | /** |
587 | | - * Experimental. This API might change or be removed in the future based on user feedback. |
588 | | - * <p> |
589 | 589 | * Applies the given query conditions and returns the builder for further customization, such as result order. |
590 | 590 | * Build the condition using the properties from your entity underscore classes. |
591 | 591 | * <p> |
@@ -605,7 +605,6 @@ public QueryBuilder<T> query() { |
605 | 605 | * |
606 | 606 | * @see QueryBuilder#apply(QueryCondition) |
607 | 607 | */ |
608 | | - @Experimental |
609 | 608 | public QueryBuilder<T> query(QueryCondition<T> queryCondition) { |
610 | 609 | return query().apply(queryCondition); |
611 | 610 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/query/QueryBuilder.java -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
26 | 26 | import io.objectbox.Box; |
27 | 27 | import io.objectbox.EntityInfo; |
28 | 28 | import io.objectbox.Property; |
29 | | -import io.objectbox.annotation.apihint.Experimental; |
30 | 29 | import io.objectbox.annotation.apihint.Internal; |
31 | 30 | import io.objectbox.exception.DbException; |
32 | 31 | import io.objectbox.relation.RelationInfo; |
@@ -289,8 +288,6 @@ private void verifyHandle() { |
289 | 288 | } |
290 | 289 |
|
291 | 290 | /** |
292 | | - * Experimental. This API might change or be removed in the future based on user feedback. |
293 | | - * <p> |
294 | 291 | * Applies the given query conditions and returns the builder for further customization, such as result order. |
295 | 292 | * Build the condition using the properties from your entity underscore classes. |
296 | 293 | * <p> |
@@ -308,7 +305,6 @@ private void verifyHandle() { |
308 | 305 | * </pre> |
309 | 306 | * Use {@link Box#query(QueryCondition)} as a shortcut for this method. |
310 | 307 | */ |
311 | | - @Experimental |
312 | 308 | public QueryBuilder<T> apply(QueryCondition<T> queryCondition) { |
313 | 309 | ((QueryConditionImpl<T>) queryCondition).apply(this); |
314 | 310 | return this; |
|