Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/objectbox/objectbox-examples
Examples for ObjectBox Android/Java, the super-fast database
https://github.com/objectbox/objectbox-examples
android database examples java kotlin
Last synced: 4 days ago
JSON representation
Examples for ObjectBox Android/Java, the super-fast database
- Host: GitHub
- URL: https://github.com/objectbox/objectbox-examples
- Owner: objectbox
- License: apache-2.0
- Created: 2017-01-24T12:04:59.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T13:39:38.000Z (about 2 months ago)
- Last Synced: 2024-12-15T01:03:09.702Z (12 days ago)
- Topics: android, database, examples, java, kotlin
- Language: Java
- Homepage: http://objectbox.io
- Size: 1000 KB
- Stars: 397
- Watchers: 20
- Forks: 95
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ObjectBox Java and Kotlin examples
Java and Kotlin examples for [ObjectBox](https://objectbox.io) ([GitHub](https://github.com/objectbox/objectbox-java)), the superfast object-oriented database.**For examples in other languages, see the [GitHub repository for that language](https://github.com/objectbox).**
## Basics
* **[android-app-kotlin](android-app-kotlin)**: a note taking app that shows how to define the data
model, indexes and relations, create a store, put and get data, use Admin UI and create unit tests.
* **[android-app](android-app)**: a more basic variant of the above written in Java.
* **[java-main](java-main) and [kotlin-main](kotlin-main)**: a note taking command-line application that shows how to define the
data model, create a store and put and get data.
* **[java-main-maven](java-main-maven)**: the above app but using a Maven project (we
recommend to use Gradle).## [Vector Search](https://docs.objectbox.io/on-device-vector-search)
* **[java-main-vector-search](java-main-vector-search)**: a cities and coordinates command-line
application that shows how to do on-device ANN vector search.## Using [Sync](https://sync.objectbox.io/)
* **[android-app-sync-kotlin](android-app-sync-kotlin)**: a task list app that shows how to define a
data model for Sync and configure a Sync client.
* **[android-app-sync](android-app-sync)**: the above app written in Java.
* **[java-main-sync](java-main-sync)**: A console-based Java application demonstrating Sync features.## Other
* **[android-app-relations](android-app-relations)**: shows how to use all types of available relations.
* **[android-app-arch](android-app-arch)**: shows how to use ObjectBoxLiveData with ViewModel and ObjectBoxDataSource with the Paging library.
* **[android-app-multimodule](android-app-multimodule)**: shows how to use a separate database in each feature module.
* **[android-app-multiprocess](android-app-multiprocess)**: shows how to use ObjectBox from a different process.
* **[android-app-daocompat](android-app-daocompat)**: shows how to use the DAOcompat compatibility layer to help migrate from greenDAO.
* **[java-performance](java-performance)**: a command-line application that runs performance tests with ObjectBox.## MyObjectBox missing? Build the project!
When you open the project in an IDE like Android Studio for the first time, it will complain that it does not find the class `MyObjectBox`.
This is expected because this class is generated during build time.
Thus, once you build the project, everything should be fine.## Issues and feedback
If you are looking for help with how to use ObjectBox [see our documentation](https://docs.objectbox.io).
If you found an issue or have feedback about these examples feel free to submit an [issue for objectbox-java](https://github.com/objectbox/objectbox-java/issues).
## Links
[ObjectBox Documentation](https://docs.objectbox.io)
[ObjectBox Features](https://objectbox.io/features/)
[ObjectBox GitHub repository](https://github.com/objectbox/objectbox-java)
## License
```
Copyright 2017-2024 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 athttps://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.
```