GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge branch 'dev' into sync · hehuelet/objectbox-java@db8a98d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • no-response.yml
  • objectbox-java-api/src/main/java/io/objectbox
    • annotation
      • BaseEntity.java
      • Convert.java
      • Entity.java
      • apihint
        • Temporary.java
      • package-info.java
    • converter
      • package-info.java
  • objectbox-java/src/main/java/io/objectbox
    • Box.java
    • BoxStore.java
    • BoxStoreBuilder.java
    • Property.java
    • model
      • Model.java
    • package-info.java
    • query
      • LazyList.java
      • Query.java
      • QueryBuilder.java
    • reactive
      • package-info.java
    • relation
      • package-info.java
  • tests/objectbox-java-test/src/test/java/io/objectbox/query
    • QueryObserverTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/no-response.yml‎

Copy file name to clipboard
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Configuration for probot-no-response - https://github.com/probot/no-response
2+
3+
# Number of days of inactivity before an Issue is closed for lack of response
4+
daysUntilClose: 21
5+
# Label requiring a response
6+
responseRequiredLabel: "more info required"
7+
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
8+
closeComment: >
9+
Without additional information, we are unfortunately not sure how to
10+
resolve this issue. Therefore this issue has been automatically closed.
11+
Feel free to comment with additional details and we can re-open this issue.
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/BaseEntity.java‎

Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/BaseEntity.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
import java.lang.annotation.Target;
77

88
/**
9-
* Annotation for an entity base class.
10-
* ObjectBox will include properties of an entity super class marked with this annotation.
9+
* Marks a class as an ObjectBox Entity super class.
10+
* ObjectBox will store properties of this class as part of an Entity that inherits from this class.
11+
* See <a href="https://docs.objectbox.io/advanced/entity-inheritance">the Entity Inheritance documentation</a> for details.
1112
*/
1213
@Retention(RetentionPolicy.CLASS)
1314
@Target(ElementType.TYPE)
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/Convert.java‎

Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Convert.java
+10-6Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,29 @@
1616

1717
package io.objectbox.annotation;
1818

19-
import io.objectbox.converter.PropertyConverter;
20-
2119
import java.lang.annotation.ElementType;
2220
import java.lang.annotation.Retention;
2321
import java.lang.annotation.RetentionPolicy;
2422
import java.lang.annotation.Target;
2523

24+
import io.objectbox.converter.PropertyConverter;
25+
2626
/**
27-
* Specifies {@link PropertyConverter} for the field to support custom types
27+
* Supplies a {@link PropertyConverter converter} to store custom Property types as a supported {@link #dbType()}.
28+
* See the <a href="https://docs.objectbox.io/advanced/custom-types">Custom Types documentation</a> for details.
2829
*/
2930
@Retention(RetentionPolicy.CLASS)
3031
@Target(ElementType.FIELD)
3132
public @interface Convert {
32-
/** Converter class */
33+
/**
34+
* The converter class that ObjectBox should use. See {@link PropertyConverter} for implementation guidelines.
35+
*/
3336
Class<? extends PropertyConverter> converter();
3437

3538
/**
36-
* Class of the DB type the Java property is converted to/from.
37-
* This is limited to all java classes which are supported natively by ObjectBox.
39+
* The Property type the Java field value is converted to/from.
40+
* See the <a href="https://docs.objectbox.io/advanced/custom-types">Custom Types documentation</a> for a list
41+
* of supported types.
3842
*/
3943
Class dbType();
4044
}
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/Entity.java‎

Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Entity.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import java.lang.annotation.Target;
2323

2424
/**
25-
* Annotation for entities
26-
* ObjectBox only persist objects of classes which are marked with this annotation
25+
* Marks a class as an ObjectBox Entity.
26+
* Allows to obtain a Box for this Entity from BoxStore to persist Objects of this class.
2727
*/
2828
@Retention(RetentionPolicy.CLASS)
2929
@Target(ElementType.TYPE)
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/apihint/Temporary.java‎

Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/apihint/Temporary.java
-32Lines changed: 0 additions & 32 deletions
This file was deleted.
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/package-info.java‎

Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/package-info.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
/**
1818
* Annotations to mark a class as an {@link io.objectbox.annotation.Entity @Entity},
19-
* to specify the {@link io.objectbox.annotation.Id @Id} property,
19+
* to specify the {@link io.objectbox.annotation.Id @Id} Property,
2020
* to create an {@link io.objectbox.annotation.Index @Index} or
21-
* a {@link io.objectbox.annotation.Transient @Transient} property.
21+
* a {@link io.objectbox.annotation.Transient @Transient} Property.
2222
* <p>
2323
* For more details look at the documentation of individual classes and
2424
* <a href="https://docs.objectbox.io/entity-annotations">docs.objectbox.io/entity-annotations</a>.
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/converter/package-info.java‎

Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/converter/package-info.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/**
1818
* For use with {@link io.objectbox.annotation.Convert @Convert}: {@link io.objectbox.converter.PropertyConverter}
19-
* to convert custom property types.
19+
* to convert custom Property types.
2020
* <p>
2121
* For more details look at the documentation of individual classes and
2222
* <a href="https://docs.objectbox.io/advanced/custom-types">docs.objectbox.io/advanced/custom-types</a>.
Collapse file

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

Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/Box.java
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@
3939
import io.objectbox.relation.RelationInfo;
4040

4141
/**
42-
* A box to store objects of a particular class.
42+
* A Box to put and get Objects of a specific Entity class.
4343
* <p>
4444
* Thread-safe.
4545
*/
46-
@Beta
4746
@ThreadSafe
4847
@SuppressWarnings("WeakerAccess,UnusedReturnValue,unused")
4948
public class Box<T> {
Collapse file

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

Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/BoxStore.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
import io.objectbox.sync.SyncClient;
5757

5858
/**
59-
* Represents an ObjectBox database and gives you {@link Box}es to get and put Objects of a specific type
60-
* (see {@link #boxFor(Class)}).
59+
* An ObjectBox database that provides {@link Box Boxes} to put and get Objects of a specific Entity class
60+
* (see {@link #boxFor(Class)}). To get an instance of this class use {@code MyObjectBox.builder()}.
6161
*/
6262
@SuppressWarnings({"unused", "UnusedReturnValue", "SameParameterValue", "WeakerAccess"})
6363
@ThreadSafe
Collapse file

‎objectbox-java/src/main/java/io/objectbox/BoxStoreBuilder.java‎

Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/BoxStoreBuilder.java
+9-10Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package io.objectbox;
1818

1919
import com.google.flatbuffers.FlatBufferBuilder;
20-
import io.objectbox.model.FlatStoreOptions;
20+
2121
import org.greenrobot.essentials.io.IoUtils;
2222

2323
import java.io.BufferedInputStream;
@@ -39,21 +39,20 @@
3939
import io.objectbox.annotation.apihint.Internal;
4040
import io.objectbox.exception.DbException;
4141
import io.objectbox.ideasonly.ModelUpdate;
42+
import io.objectbox.model.FlatStoreOptions;
4243
import io.objectbox.model.ValidateOnOpenMode;
4344

4445
/**
45-
* Builds a {@link BoxStore} with optional configurations. The class is not initiated directly; use
46-
* MyObjectBox.builder() to get an instance.
46+
* Configures and builds a {@link BoxStore} with reasonable defaults. To get an instance use {@code MyObjectBox.builder()}.
4747
* <p>
48-
* Each configuration has reasonable defaults, which you can adjust.
49-
* For Android, you must pass a Context using {@link #androidContext(Object)}.
48+
* On Android, make sure to provide a Context to {@link #androidContext(Object) androidContext(context)}.
5049
* <p>
51-
* Configurations you can override:
50+
* Some common defaults to override are:
5251
* <ol>
53-
* <li>Name/location of DB: use {@link #name(String)}/{@link #baseDirectory}/{@link #androidContext(Object)}
54-
* OR {@link #directory(File)}(default: name "objectbox)</li>
55-
* <li>Max DB size: see {@link #maxSizeInKByte} (default: 1 GB)</li>
56-
* <li>Max readers: see {@link #maxReaders(int)} (default: 126)</li>
52+
* <li>Name/location of Store: use either {@link #name(String)}, {@link #baseDirectory(File)},
53+
* {@link #androidContext(Object)} or {@link #directory(File)} (default: name "objectbox),</li>
54+
* <li>Max DB size: see {@link #maxSizeInKByte(long)} (default: 1024 * 1024 KB = 1 GB),</li>
55+
* <li>Max readers: see {@link #maxReaders(int)} (default: 126),</li>
5756
* </ol>
5857
*/
5958
public class BoxStoreBuilder {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.