Click here to Skip to main content
15,846,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 26-Feb-13 9:48am
v2

1 solution

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.
 
Share this answer
 
Comments
Confucius II 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900