Skip to content

FinalLevel/android-cphm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

android-cphm

Content Provider, SQLite Helper and Model together.

Features:

  • automatic create and update table schema relative to Model;
  • indexes and contraints managing;
  • creating Model from Cursor;
  • creating ContentValues from Model;
  • and many more...

Just see examples

Book book = S.instance().findFirst(
	S.getContentUri(Book.TABLE, 12),
	Book.class,
	context
);

Book bookItem = S.model(Book.class, cursor);

ContentValues contentValues = S.instance().toContentValues(newBook);

Instalation

In project root folder:

git clone https://github.com/FinalLevel/android-cphm.git

Append to settings.gradle

include ':app', ':android-cphm'

and to app/build.gradle

dependencies {
	...
	compile project(':android-cphm')
}

About

Content Provider, SQLite Helper and Model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages