Is there something I am missing? Where does your sequencekey value come from?
For an "insert" I will be generating the sequenceKey(By calling a utility method - using PL/SQL sequence), from search screen I have a table which lists records with the first column having a hyper link on-click of which takes me to the pre-poluated editable page(sequenceKey is fetched from database for this corresponding record) and hitting the save which is an "update" functionality. So for update we will have sequenceKey in place
I wanted to know should I code the entire logic for insert & update in the same method like scenario-I or use scenario-II.
I feel with scenario-I cohesion concept is NOT being followed whereas in scenario-II we follow cohesion concept. Am I correct here.
scenario-I
scenario-II