Id' like to change DBMain interface (addings 3 methods) 1) public void setLockStrategy(LockStrategy) 2) public Accommodation recordToAccomodation(String record) 3) public String accomodationToRecord(Accomodation ac)
Explanation: 1) Just to be able to disable/enable lockstrategy in DAO (DBMain). I don't like using singleton with a LockManager 2) and 3): Application of value object pattern in DAO. In my opinion DBMain is responsible to transform domain objects (bussiness objects) in database format objects
Thanks in advance
Joined: Dec 29, 2007
Sorry but I forgot the question...
Am i authorized to do this change according to SUN exam rules??