This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Android and the fly likes ORM for Android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Android
Bookmark "ORM for Android" Watch "ORM for Android" New topic
Author

ORM for Android

Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Hi Friends,

Is there any light weight ORM for Android?


Poornima Sharma
SCJP 6.0
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42055
    
  64
Check out OrmLite (which I just found by searching for "orm for android" - hint, hint).


Ping & DNS - my free Android networking tools app
Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Yes, even I have found it but I don't know if it is industry accepted or not. Or if it is stable or not.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

I tried ORMLite and it is ok.

I am actually working on a tool myself. I am using it in one of my apps that I am developing and so far working pretty good. I still have more tests to write and some exception handling, as well as more Javadocs and documentation. When I am done, it will be open source. I just can't tell you yet where that will be. But, I'll say it will be in a very well respected place, as long as what I have done is really good. ;)

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Thanks Mark, we will be waiting for your tool.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42055
    
  64
Poornima Sharma wrote:Thanks Mark, we will be waiting for your tool.

Umm, you did understand that you may be waiting for an indeterminate amount of time, right?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Ulf Dittmer wrote:
Poornima Sharma wrote:Thanks Mark, we will be waiting for your tool.

Umm, you did understand that you may be waiting for an indeterminate amount of time, right?


Ulf Dittmer wrote:
Poornima Sharma wrote:Thanks Mark, we will be waiting for your tool.

Umm, you did understand that you may be waiting for an indeterminate amount of time, right?


Yes, it is very much a work in progress. Trying to hide the horrible SQLite/Android apis is daunting. Just trying to make it easy to do an update statement is driving me crazy. I can do it easy way, but you won't get a return on how many rows were updated. Or just a pass through for update, but I hate an api like update(String table, ContentValues values, String whereClause, String[] whereArgs)

That is too many parameters. I will want it to be update(String sql, Object… args), I do already have update(Object domain) if you use the Annotations in the class to map it to the table.

Mark
 
GeeCON Prague 2014
 
subject: ORM for Android