Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. if (!areEquals(empFraMD.getUserId(), empFraBubba.getUserId())) {
  2. empFraMD.setUserId(empFraBubba.getUserId());
  3. updated = true;
  4. }
  5.  
  6. if (!areEquals(empFraMD.getFirstName(), empFraBubba.getFirstName())){
  7. empFraMD.setFirstName(empFraBubba.getFirstName());
  8. updated = true;
  9. }
  10. .........200 Times check for 200 different parameter. 150 Times String checks 20 times integer checks.
  11. //EmpFraMD is current employees in Database and empFraBubba is employees fetched from SFTP
  12. and both are objects of same class. The requirement here is just to update database
  13. only in case difference
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement