greenDao 介绍
greenDAO是一个针对Android的轻快速ORM解决方案,它将对象映射到SQLite数据库。http://greenrobot.org/greendao/
greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases. http://greenrobot.org/greendao/
比SQLite更快地查找对象持久性?
查看我们的新移动数据库ObjectBox(GitHub)。
Looking for object persistence faster than SQLite? Check out our new mobile database ObjectBox (GitHub).
greenDAO是一个针对Android的轻而快速的ORM,它将对象映射到SQLite数据库。
由于对Android进行了高度优化,greenDAO提供了出色的性能,并且消耗了最少的内存。
greenDAO is a light & fast ORM for Android that maps objects to SQLite databases. Being highly optimized for Android, greenDAO offers great performance and consumes minimal memory.
主页、文档和支持链接:http://greenrobot.org/greendao/
Home page, documentation, and support links: http://greenrobot.org/greendao/
greenDAO的独特功能:
摇滚实体:greenDAO自2011年就开始使用,并被无数的著名应用所使用。
超级简单:简洁而直接的API,在V3中有注释
小:库是小于150 k的,它只是普通的Java jar(没有CPU依赖的本地部件)
快速:可能是Android最快的ORM,由智能代码生成驱动
安全而富有表现力的查询API:QueryBuilder使用属性常量来避免输入错误
功能强大的连接:跨实体查询,甚至连接复杂关系的链连接
灵活的属性类型:使用定制类或枚举来表示实体中的数据
加密:支持sql密码加密数据库
greenDAO's unique set of features:
- Rock solid: greenDAO has been around since 2011 and is used by countless famous apps
- Super simple: concise and straight-forward API, in V3 with annotations
- Small: The library is <150K and it's just plain Java jar (no CPU dependent native parts)
- Fast: Probably the fastest ORM for Android, driven by intelligent code generation
- Safe and expressive query API: QueryBuilder uses property constants to avoid typos
- Powerful joins: query across entities and even chain joins for complex relations
- Flexible property types: use custom classes or enums to represent data in your entity
- Encryption: supports SQLCipher encrypted databases
在您的项目中添加greenDAO
greenDAO在Maven中心提供。请确保您正在使用最新的版本,检查这里和这里
在你的Android项目中添加以下等级配置:
Add greenDAO to your project
greenDAO is available on Maven Central. Please ensure that you are using the latest versions by checking here and here
Add the following Gradle configuration to your Android project:
// 在你的根。gradle文件: 【】In your root build.gradle file:
buildscript {
repositories {
jcenter()
mavenCentral() // add repository
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin
}
} //在你的应用程序项目中。gradle文件:【】 In your app projects build.gradle file:
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao' // apply plugin dependencies {
compile 'org.greenrobot:greendao:3.2.2' // add library
}
=====
请注意,这将把greenDAO Gradle 插件连接到您的构建过程中。
当您构建您的项目时,它会生成诸如DaoMaster、dao会话和DAOs之类的类。
Note that this hooks up the greenDAO Gradle plugin to your build process. When you build your project, it generates classes like DaoMaster, DaoSession and DAOs.
主页、文档链接
要了解更多关于greenDAO的信息,请查看greenDAO网站。
下面是一些你可能觉得有用的直接链接:
特征
greenDAO 3
文档
更新日志
技术常见问题解答
非技术常见问题解答
Homepage, Documentation, Links
For more details on greenDAO please check greenDAO's website. Here are some direct links you may find useful:
===
绿色机器人更多的开源软件
ObjectBox是一种新型的面向移动的面向对象的面向对象的数据库。
EventBus是一个针对Android的中央发布/订阅总线,它带有可选的交付线程、优先级和粘性事件。
一个很好的工具,可以将组件(例如活动、片段、逻辑组件)解耦。
要点是一组实用程序类和用于Android和Java项目的散列函数。
跟随我们在Google+上保持最新的状态。
More Open Source by greenrobot
ObjectBox is a new superfast object-oriented database for mobile.
EventBus is a central publish/subscribe bus for Android with optional delivery threads, priorities, and sticky events. A great tool to decouple components (e.g. Activities, Fragments, logic components) from each other.
Essentials is a set of utility classes and hash functions for Android & Java projects.
Follow us on Google+ to stay up to date.
=======
如何开始使用greenDAO,文档
对于greenDAO的第一步,请检查文档,特别是入门指南和入门教程。
How to get started with greenDAO, Documentation
For first steps with greenDAO, please check the documentation, especially the getting started guide and the introduction tutorial.
===
greenDAO文档
greenDAO Documentation
迁移到ObjectBox【】Migrating to ObjectBox
ObjectBox Daocompat- 从greenrobot迁移到快速的新的移动数据库【】ObjectBox DaoCompat – migrate to the fast new mobile database from greenrobot
迁移到greenDAO 3【】Migrating to greenDAO 3
从greenDAO 2迁移到版本3【】 Migrating from greenDAO 2 to version 3
教程和指引【】Tutorials and How-Tos
介绍,项目设置【】 Introduction – project setup
建模实体——模式和注释【】 Modelling entities – schema and annotations
会话——身份范围和会话缓存【】 Sessions – identity scope and session cache
查询——使用查询构建器【】 Queries – using the query builder
连接-多表连接和自连接【】 Joins – multi-table joins and self-joins
关系-对一个和多个实体之间的关系【】Relations – to-one and to-many relations between entities
定制类型——映射类和枚举到数据库值【】Custom types – mapping classes and enums to database values
数据库加密——使用sql密码 【】Database Encryption – using SQLCipher
API参考:JavaDocs 【】API Reference: JavaDocs
JavaDoc概述【】 JavaDoc overview
常见问题【】FAQs
技术常见问题解答【】 Technical FAQ
非技术FAQ(许可证等)【】 Non-technical FAQ (license etc.)
如果文件中没有涉及到的内容,或者可以改进,请告诉我们。【】If there is something not covered by the documentation or can be improved, please let us know.
===
greenDao 介绍的更多相关文章
- GreenDao介绍
GreenDao介绍 greenDAO 是一个将对象映射到 SQLite 数据库中的轻量且快速的 ORM 解决方案 何为ORM? ORM(Object/Relation Mapping): 对象/关系 ...
- Android数据存储之GreenDao 3.0 详解
前言: 今天一大早收到GreenDao 3.0 正式发布的消息,自从2014年接触GreenDao至今,项目中一直使用GreenDao框架处理数据库操作,本人使用数据库路线 Sqlite----> ...
- android高效ORM数据库框架greenDao使用
因为项目中多处用到了数据库,需要对数据库频繁的读写操作,虽然android 自带的SQLiteOpenHelper的.这种方式比较方便易懂,但是在使用过程中需要写很多的sql语句,而且需要及时的关闭和 ...
- Android greenDAO 数据库 简单学习之基本使用
看网上对greenDAO介绍的不错,今天就动手来试一把,看看好不好使. greenDAO 官方网站:http://greendao-orm.com/ 代码托管地址:https://github.com ...
- GreenDao 数据库:使用Raw文件夹下的数据库文件以及数据库升级
一.使用Raw文件夹下的数据库文件 在使用GreenDao框架时,数据库和数据表都是根据生成的框架代码来自动创建的,从生成的DaoMaster中的OpenHelper类可以看出: public sta ...
- greenDao:操作数据库的开源框架
greenDAO: Android ORM for your SQLite database 1. greenDao库获取 英文标题借鉴的是greendrobot官网介绍greenDao时给出的Tit ...
- Android ORM 框架之 greenDAO 使用心得
前言 我相信,在平时的开发过程中,大家一定会或多或少地接触到 SQLite.然而在使用它时,我们往往需要做许多额外的工作,像编写 SQL 语句与解析查询结果等.所以,适用于 Android 的ORM ...
- 快速入门GreenDao框架并实现增删改查案例
大家的项目中不可避免的使用到SQLite,为此我们要花费心思编写一个增删改查框架.而一个好的ORM框架则能够给我们带来极大的方便,今天给大家讲解一个非常火热的ORM-GreenDao. 基本概念 Gr ...
- GitHub上排名前100的Android开源库介绍(来自github)
本项目主要对目前 GitHub 上排名前 100 的 Android 开源库进行简单的介绍,至于排名完全是根据 GitHub 搜索 Java 语言选择 (Best Match) 得到的结果,然后过滤了 ...
随机推荐
- python---django中模板渲染(csrf令牌使用,自定义模板函数)
使用终端,可以更方便的去实验,但是没有提示信息: 在项目目录下: D:\MyPython\day23\HelloWorld>python manage.py shell 开始实验: >&g ...
- nodejs npm install -g 全局安装
1. npm install xxx -g 时, 模块将被下载安装到[全局目录]中. [全局目录]通过 npm config set prefix "目录路径" 来设置. 比如说, ...
- Java入门系列(九)Java API
String,StringBuilder,StringBuffer三者的区别 1.首先说运行速度,或者说是执行速度 在这方面运行速度快慢为:StringBuilder > StringBuffe ...
- 利用requestAnimationFrame和Tween算法实现兼容所有浏览器的运动动画,直接秒杀Css3动画
以下贴出Tween的代码: /* * Tween.js * t: current time(当前时间): * b: beginning value(初始值): * c: change in value ...
- 洛谷 P1563 玩具谜题
如果你想不耗费脑力做出这个题目,往下看: 本萌新看到这个题目,想到了乘法法则,题目中左右方向要判断两次,很耗脑力,和乘法中的正负号判断非常像. 抽象一点:这个人向内向外就是乘法中括号外的正负号,他的左 ...
- Java笔记之java.lang.String#trim
String的trim()方法是使用频率频率很高的一个方法,直到不久前我不确定trim去除两端的空白符时对换行符是怎么处理的点进去看了下源码的实现,才发现String#trim的实现跟我想像的完全不一 ...
- 线段树->面积并 Atlantis HDU - 1542
题目链接:https://cn.vjudge.net/problem/HDU-1542 题目大意:求面积并 具体思路:我们首先把矩形分割成一横条一横条的,然后对于每一个我们给定的矩形,我们将储存两个点 ...
- 一份最中肯的Java学习路线+资源分享(拒绝傻逼式分享)
这是一篇针对Java初学者,或者说在Java学习路线上出了一些问题(不知道该学什么.不知道整体的学习路线是什么样的) 第一步:Java基础(一个月左右) 推荐视频: 下面的是黑马内部视频,我比较推荐的 ...
- Linux中断(interrupt)子系统之三:中断流控处理层【转】
转自:http://blog.csdn.net/droidphone/article/details/7489756 1. 中断流控层简介 早期的内核版本中,几乎所有的中断都是由__do_IRQ函数 ...
- 2018-11-3& maven
https://www.cnblogs.com/clsn/p/7944116.html#auto_id_10 http://www.runoob.com/maven/maven-creating-pr ...