• Post Reply Bookmark Topic Watch Topic
  • New Topic

What should be the return for this case - DAO, DAOImpl, Manager, Controller ?  RSS feed

 
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear expert,

I have re-write my insert method and changed it to prepared statement to avoid sql injection attack.

Now, I am facing problem in the manager class where the Eclipse EE just asked me to put the return type as return but then it doesn't work out.. as the data still can't be inserted into the database

Hope someone can correct my code. Tks.

Here's the code :











 
Marshal
Posts: 4120
246
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you be more specific about the nature of the failure? Do you get a compilation error? Runtime error? Unexpected program function? Other?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!