5
votes
1answer
289 views

Android database interaction logic

I have a database-intensive app. Almost every activity requires access to the database, both reading and writing. I had a lot of problems with separate threads and activities on the stack closing ...
3
votes
3answers
53 views

Simplify things in the run method to look cleaner

I am trying to insert into Database using JDBC and each thread will be inserting into database. I need to insert into around 30-35 columns. I wrote a Stored procedure that will UPSERT into those ...
3
votes
4answers
182 views

Should I break my DAO into one DAO class for each transfer object?

As a learn-by-doing project to learn java webapps I'm creating a website for registering and displaying happenings using JSP/Servlets, Apache Tomcat server, JDBC and a MySQL database. I use JSP for ...
2
votes
1answer
97 views

DAO Layer Code Review

Please review my following code for DAO layer. public List<Channel> getListOfChannels() throws DataAccessException { // will have the channel in form of List // to hold the ...
2
votes
1answer
51 views

ORM Entity with many similar relationships

To provide some background context, I'm implementing a web-based solution (Java, Spring, Hibernate) that allows the creation/authoring of task-centric workflow documents. Basically a workflow ...
1
vote
2answers
99 views

Make code looks more cleaner in the run method

I am trying to insert into Database using JDBC and each thread will be inserting into database. I need to insert into around 30-35 columns. I wrote a Stored procedure that will UPSERT into those ...
0
votes
3answers
56 views

What is the best way to save this? (saving the data generated by an application) [closed]

I have this code, and i want to save the generated data, but i don't know how, A database? a file? do i need to chance everyting in the code and start over again? I'm from brazil, so the variables ...