Click here to Skip to main content
11,578,739 members (60,361 online)
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 8:42am
Edited 26-Feb-13 8:48am
Mehdi Gholam280.8K
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 Peter Leow 135
1 Frankie-C 115
2 OriginalGriff 113
3 Richard MacCutchan 85
4 Afzaal Ahmad Zeeshan 75
0 OriginalGriff 933
1 Sergey Alexandrovich Kryukov 740
2 Abhinav S 573
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 403


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2015
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