Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Should I use DAO method ?  RSS feed

Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,

After trying so hard on my code, I am beginning to doubt whether I am on the right track and hope to have some advice.

I have read through DAO tutorial on the web and realised most of the time DAO covers CRUD.

In my web app, I'd need to include a method that returns an arralylist of subject.

So, is DAO still applicable in my case ?

I tried to look at other design pattern such as Template design but most of the method used are void methods....

The thing is that I need to use this return of static Arraylist of subjects method in my 3rd DAOImpl and DAO so that my controller will not complaint.

My controller I have this subjectTeachesDAOImpl(int tutorId, Arraylist<Integer>subject Id>

Hope someone can tell me the right way to do things.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!