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) 得到的结果,然后过滤了 ...
随机推荐
- webpack插件去除没用到的css
去除没用到的css需要用到purifycss-webpack插件,而这个插件又依赖于purify-css 1.安装 npm i purifycss-webpack purify-css -D 2.加入 ...
- MySQL简单查询详解-单表查询
MySQL简单查询详解-单表查询 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.查询的执行路径 一条SQL查询语句的执行过程大致如下图所示: 1>.客户端和服务端通过my ...
- 笔记 freemark list标签迭代Map<Map<String,Object>集合排序问题
本博客是自己在学习和工作途中的积累与总结,仅供自己参考,也欢迎大家转载,转载时请注明出处. 工作中出现一个比较特殊的问题,在模板ftl文件中,一般用list迭代map 举例: 后台: // 传入的参数 ...
- JavaScript 计时
http://www.w3school.com.cn/js/js_timing.asp JavaScript 计时事件 通过使用 JavaScript,我们有能力作到在一个设定的时间间隔之后来执行代码 ...
- A - Jugs ZOJ - 1005 (模拟)
题目链接:https://cn.vjudge.net/contest/281037#problem/A 题目大意:给你a,b,n.a代表第一个杯子的容量,b代表第二个杯子的容量,然后一共有6种操作.让 ...
- 「Android 开发」入门笔记
「Android 开发」入门笔记(界面编程篇) ------每日摘要------ DAY-1: 学习笔记: Android应用结构分析 界面编程与视图(View)组件 布局管理器 问题整理: Andr ...
- SQLServer xp_instance_regread returned error 5,Access is denied(配置最小权限)
公司一套智能巡检系统,客户需要最小的权限去给这套系统使用:配置完后发现很多权限报错,有一条是关于xp_instance_regread读系统注册表error 5的报错.常理error 5.是属于系统权 ...
- js input输入框的总结
一.输入框只能输入数字 原文:https://www.cnblogs.com/sese/p/5872144.html 分享下js限制输入框中只能输入数字的方法,包括整数与小数,分享几个例子,有需要的朋 ...
- pandas删除dataframe列
data2 = data.drop(data.columns[0,1,3,4,6,8,10], 1)
- Babel(抽象语法树,又称AST)
文章:https://juejin.im/post/5a9315e46fb9a0633a711f25 https://github.com/jamiebuilds/babel-handbook/blo ...