Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java Sqlite
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 9:42am
Edited 26-Feb-13 9:48am
Mehdi Gholam253.2K
v2

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
Member 9856775 at 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
0 OriginalGriff 5,130
1 DamithSL 4,237
2 Maciej Los 3,700
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,846


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
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