-
Notifications
You must be signed in to change notification settings - Fork 2
caspian311/sqlite-orm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
-------------------------------------------------------------------------------- sqlite-orm -------------------------------------------------------------------------------- This is a very basic ORM (object relational mapping) for Android. Usage example: public interface Person extends DBObject { String getFirstName(); void setFirstName(String firstName); String getLastName(); void setLastName(String lastName); } EntityManager entityManager = new EntityManager(....); // to insert... Person person = entityManager.create(Person.class); // to update person.setFirstName("Matt"); person.setLastName("Todd"); person.save(); // to delete person.delete(); // get all the rows List entityManager.getAll(Person.class); // delete all the rows entityManager.deleteAll(); -------------------------------------------------------------------------------- Author -------------------------------------------------------------------------------- Matt Todd (http://www.github.com/caspian311) -------------------------------------------------------------------------------- Build -------------------------------------------------------------------------------- To build, you will need to first set the location of your Android SDK in the build shell script and the local.properties file located in the sqlite-orm-androidtest project. $ vi build.sh edit the android sdk path, ex: ANDROID_SDK_PATH=/path/to/android/sdk $ echo sdk.dir=/path/to/android/sdk > sqlite-orm-androidtest/local.properties Then run the build script. $ ./build.sh
About
A SQLite ORM for android
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published