Guest User

Untitled

a guest
Sep 5th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. public class Result {
  2.    private Object returnObjectOfMethod;
  3.    private boolean status; //success or fail. true / false
  4.    private statusMessage; // you got the following error / your request was successfull
  5. }
  6.  
  7. - each DAO works independantly and returns an entity ////////// cant make up the strategy for problems in DAO. should the same be followed as below for service?
  8.  
  9. - the returning object from service method is not an entity but a RESULT.returningObjectOfMethod (which is entity inside the result class)
  10.  
  11. - This RESULT is evaluated in controller and dealt like wise and error message or success message is passted to JSP
Advertisement
Add Comment
Please, Sign In to add comment