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 Gholam249.7K
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 587
1 Sergey Alexandrovich Kryukov 544
2 Maciej Los 325
3 DamithSL 223
4 Mathew Soji 195
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,712
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.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