kishanvshah007/SOEN-6471-iFreeBudget-Milestone-4 — pull request #2 by kishanvshah007 (2014-04-07 23:53:29+00:00)
Title: Extract class-Move method

Problem: The FManEntityManager acts as a god class taking to much responsibility upon itself.It has methods to handle transactions(like add/update/delete/get transactions),accounts,user and portfolio.

Solution: We decided to solve this code smell by extracting a separate class that would handle all the methods that are related to Accounts.We have created a new class FManAccountEntityManager and moved all the methods that are responsible for account related actions to the new class.

Step 1:Created a new Class FManAccountEntityManager and moved all the account related methods like addAccount,getAccount,deleteAccount,updateAccount to it.

Step 2: We have created an object of the new FManAccountEntityManager class and used its reference for calling the different account methods present inside it. Since there are a number of methods that uses the FManEnityManager class, we have delegated all the account related methods to the FManAccountEntityManager class.