Creating android financial manager application with using of SQLite.
My question is how to deal with the database in terms of object oriented programming?
Say I want to write information about a purchase into the database.
Should I:
1) Get user information from EditTexts, put it into an object say "Purchase", which contains fields: productName, ammount, price...
And only than put information from the object into the database?
2) Or put data from EditTexts directly into the database?
Aucun commentaire:
Enregistrer un commentaire