Http://satyan.github.io/sugar/index.html
It is very inconvenient to write code when the database is manipulated by some APIs provided by the Android native.
By sugar This jar package, you can convert the tables of the database into objects, and the relationship between tables and tables can be achieved by using one object as a variable of another object.
pub
the day before yesterday when doing an Android project from GitHub accidentally found sugar this awesome ORM library. Unbearable preface hope Amway, so fiddling with pen and ink, on the one hand, I think the programmer how to write an elegant Anliven, on the one hand let everyone know this really good library.What is Anliven"Anliven" is the network vocabulary, a
Android pit-Free Guide (I) Sugar and SQLite, androidsqlite
I recently used the ORM framework Sugar1.4 in Android mobile development, which saves a lot of code and also encountered a lot of trouble. The record is as follows:1. Use group by to convert query results to POJO objects
In Sugar1.4, you can use the following c
code? To compile the Android source code, the following three commands are executed first:1 SOURCE build/envsetup.sh2 lunch sugar_standard-Eng3 extract-bspThen check this time to see the out/target/product/sugar-standard/system/media/directory under the Android/directory. If not, then mkdir create it. Then put your bootanimation.zip parcel into the out/target
Create an android ORM framework opendroid (1) -- use of the orm framework, ormopendroid
I. My opinion
I remember a blog about the use of litepal. In this blog, I mentioned that the APIS provided by android have been encapsulated enough, I don't need any ORM framework at all,
First, my viewI remember that there was a blog about the use of Litepal, which I mentioned in this blog: I thought that the API provided by Android itself was already packaged well enough to have no ORM framework at all, but after using Litepal, I felt it was necessary to use the ORM framework. , here are my thoughts on ORM
(), delete (), and find () (or FindByID ()).To enable Sugarorm, you need to add the following meta-data tags in your application's androidmanifest.xml configuration:You can then extend the data classes you need to save from Sugarorm:public class User extends sugarrecordTo add a user, the code is as follows:User JohnDoe = New User (GetContext (), "John.doe", "secret", +); Johndoe.save (); Stores the new user into the databaseOfficial website: http://satyan.github.io/
1. OrmliteOrmlite is not a dedicated ORM framework for the Android platform, it is a Java ORM. Supports JDBC connection, spring and Android platform. Annotations (Annotation) are widely used in the syntax.Official website: http://ormlite.com/sqlite_java_android_orm.shtml2. SugarormSugarorm is a dedicated
Afinal is an ORM and IOC framework for Android SQLite. It is an aggregation framework, chatty. So it is not recommended to use, only to understand. To cope with the temporary project at hand.Recommended to read, so many open source framework, which is good? :I. INTRODUCTIONAfinal is an open source Android ORM and IOC a
Xutils, like Afinal, is an aggregation framework, chatty, but the more easily reaching. So it is not recommended to use, only to understand. To cope with the temporary project at hand.Android Open source Framework (IV) afinal---The ORM IOC converged framework in AndroidI. Xutils INTRODUCTIONXutils is based on afinal development, but it is much better than afinal stability. Xutils was originally derived from the Afinal framework and was heavily refacto
The best five Android ORM frameworks, androidorm
When developing Android applications, there are several ways to save data,
One is local storage, the other is in the background (providing API interfaces), and the other is in open cloud services (such as SyncAdapter will be a good choice ).
For the first method, that is, local data storage, such as embedded SQLLit
Original: http://itangqi.me/android/using-greendao-experience/ObjectiveI believe that in the normal development process, we will certainly be more or less in touch with SQLite. However, when using it, we often need to do a lot of extra work, such as writing SQL statements and parsing query results. So, the ORM framework for Android was born, and now the mainstrea
Third-party ORM framework (GreenDao) and ormgreendao for Android development databases
The user experience is very important when mobile apps are pursuing functions. When you start an APP, you must change the developer role at any time.
Standing in the APP development role and in the producer position; when you test, you should put yourself in the user role to consider the APP you have made. For example
For
It 's time to forget about Android SQLite! Android Official ORM Database Bedroom Technology Solution Brief (i)Android's Romm is a package of ORM database solutions that are officially integrated by Android. The Android House and t
Android Chamber Federated Asynclistutil implements Recyclerview page load ORM dataI wrote a series of page loading mechanisms and technical routes for asynclistutil implementation of Recyclerview and ListView, see Appendix 4, 5. Also wrote a list of articles about the official Android ORM database: The Office technolog
In the previous blog, "Build Android ORM Framework Opendroid (iv)--Elegant Delete data", we describe how opendroid gracefully removes data from the database, and can see Opendroid's design is so simple, In fact, Opendroid is just me as an interest or to hold the attitude of trying to write, of course, it certainly has a lot of shortcomings, but this does not affect us to understand an
I believe that in the normal development process, we will certainly be more or less in touch with SQLite. However, when using it, we often need to do a lot of extra work, such as writing SQL statements and parsing query results. So, the ORM framework for Android was born, and now the mainstream framework is Ormlite, Sugarorm, Active Android, Realm and Greendao. A
in the previous blog, "Build Android ORM Framework Opendroid (VI)-CASCADE query" We talked about the implementation principle of opendroid last function query. Today we will be opendroid a play, but also the last of this series of blog-Database upgrade program.Said database upgrade, I have a headache, why? Because the previous project did not consider the database upgrade scenario at all, it would drop the
from:http://blog.csdn.net/kpioneer123/article/details/51354436
Greendao is an object/relational mapping (ORM) tool for Android development. It provides an object-oriented interface to the SQLite database. ORM tools like Greendao not only save you a lot of repetitive work, but also provide a simpler interface to operate. Greendao code-generated engineering structu
In the previous blog, "Build Android ORM Framework Opendroid (iii)--persistent data", we feel the flow of opendroid to save the data, today's blog Let's take a look at opendroid how to delete data.Remember when we introduced the use of opendroid in the first blog "Building Android ORM Framework Opendroid (a)--
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.