kandi background
Explore Kits

objectbox-java | ObjectBox is a superfast lightweight database for objects | Database library

 by   objectbox Java Version: V3.1.2 License: Apache-2.0

 by   objectbox Java Version: V3.1.2 License: Apache-2.0

Download this library from

kandi X-RAY | objectbox-java Summary

objectbox-java is a Java library typically used in Telecommunications, Media, Telecom, Database applications. objectbox-java has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub, Maven.
ObjectBox is a superfast object-oriented database with strong relation support. ObjectBox is embedded into your Android, Linux, macOS, or Windows app.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • objectbox-java has a medium active ecosystem.
  • It has 4009 star(s) with 282 fork(s). There are 107 watchers for this library.
  • There were 1 major release(s) in the last 6 months.
  • There are 143 open issues and 901 have been closed. On average issues are closed in 12 days. There are 2 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of objectbox-java is V3.1.2
objectbox-java Support
Best in #Database
Average in #Database
objectbox-java Support
Best in #Database
Average in #Database

quality kandi Quality

  • objectbox-java has 0 bugs and 0 code smells.
objectbox-java Quality
Best in #Database
Average in #Database
objectbox-java Quality
Best in #Database
Average in #Database

securitySecurity

  • objectbox-java has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • objectbox-java code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
objectbox-java Security
Best in #Database
Average in #Database
objectbox-java Security
Best in #Database
Average in #Database

license License

  • objectbox-java is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
objectbox-java License
Best in #Database
Average in #Database
objectbox-java License
Best in #Database
Average in #Database

buildReuse

  • objectbox-java releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • objectbox-java saves you 7204 person hours of effort in developing the same functionality from scratch.
  • It has 22169 lines of code, 2868 functions and 279 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
objectbox-java Reuse
Best in #Database
Average in #Database
objectbox-java Reuse
Best in #Database
Average in #Database
Top functions reviewed by kandi - BETA

kandi has reviewed objectbox-java and discovered the below as its top functions. This is intended to give you an instant insight into objectbox-java implemented functionality, and help decide if they suit your requirements.

  • Get the CPU architecture
  • Prepare to connect to one .
  • Calls a callable with a retry attempt .
  • Registers an observer .
  • Run the Observer thread
  • Build the FlatStoreOptions .
  • Finds the platform .
  • Create FlatStore options .
  • Gets the entity at the specified location .
  • Execute the query for entities .

objectbox-java Key Features

🏁 High performance on restricted devices, like IoT gateways, micro controllers, ECUs etc. 🪂 Resourceful with minimal CPU, power and Memory usage for maximum flexibility and sustainability 🔗 Relations: object links / relationships are built-in 💻 Multiplatform: Linux, Windows, Android, iOS, macOS. 🌱 Scalable: handling millions of objects resource-efficiently with ease 💐 Queries: filter data as needed, even across relations 🦮 Statically typed: compile time checks & optimizations 📃 Automatic schema migrations: no update scripts needed. And much more than just data persistence 👥 ObjectBox Sync: keeps data in sync between devices and servers 🕒 ObjectBox TS: time series extension for time based data.

ObjectBox Java (Kotlin, Android)

copy iconCopydownload iconDownload
// Kotlin
val playlist = Playlist("My Favorites")
playlist.songs.add(Song("Lalala"))
playlist.songs.add(Song("Lololo"))
box.put(playlist)

Gradle setup

copy iconCopydownload iconDownload
buildscript {
    ext.objectboxVersion = "3.1.2"
    repositories {        
        mavenCentral()    
    }
    dependencies {
        classpath("io.objectbox:objectbox-gradle-plugin:$objectboxVersion")
    }
}

First steps

copy iconCopydownload iconDownload
// Kotlin
@Entity data class Playlist( ... )

// Java
@Entity public class Playlist { ... }

License

copy iconCopydownload iconDownload
Copyright 2017-2022 ObjectBox Ltd. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

How to query for relations that are empty?

copy iconCopydownload iconDownload
final noToOneTargetQuery = box.query(Entity_.toOne.equals(0)).build();

Community Discussions

Trending Discussions on objectbox-java
  • How to query for relations that are empty?
  • lots of warnings on webserver using objectbox
  • Paging integration with Objectbox database in Android
Trending Discussions on objectbox-java

QUESTION

How to query for relations that are empty?

Asked 2022-Feb-14 at 06:29

I have two classes with one-to-many relation:

@Entity()
class Lesson {
  final course = ToOne<Course>();
}


@Entity()
class Course {
  @Backlink('course')
  final lessons = ToMany<Lesson>();
}

I want to query for all lessons that does not belong to any course. Below does not work:

final qb = _box.query(Lesson_.course.isNull());

And the reason is explained in this issue.

So I have to do this:

final qb = _box.query(Lesson_.course.equals(0));

Is there a better or a recommended way for this?

ANSWER

Answered 2022-Feb-14 at 06:29

Yes, for ObjectBox for Dart adding an equals 0 condition on the ToOne is the way to find objects without a ToOne target:

final noToOneTargetQuery = box.query(Entity_.toOne.equals(0)).build();

Source https://stackoverflow.com/questions/71077665

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install objectbox-java

For Android projects, add the ObjectBox Gradle plugin to your root build.gradle:.

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Share this Page

share link
Compare Database Libraries with Highest Support
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.
  • © 2022 Open Weaver Inc.