Click here to Skip to main content
13,047,502 members (61,381 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi I'm new to this so please be patient. I'm attempting to develop an Android App using a SQLite Database. I have developed a database Helper class to create and upgrade the database already.

What I want to know though, is do I need to write separate 'Update', 'Inserts' and 'Deletes' for all my tables or is there a better more generic approach I can use which will cover any querying of the database. Any help would be much appreciated.
Posted 26-Feb-13 8:42am
Updated 26-Feb-13 8:48am
Mehdi Gholam339.4K

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you are making the project using 3-tier architecture then u can do it by jst giving the statement once in the business logic layer and then u can call the business logic layer in the Data Access Layer with which u need to write the query once and u can call the tables automatically. so go with the 3-tier architecture.
Member 9856775 28-Feb-13 20:03pm
Thanks for your help. I'll give it a go.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100