Hi all,
I am working on the B&S 2.3.2 project and I am starting to get confused about where I need to have record locking (I'm probably just looking at it for too long!!)
I have the Sun provided DBMain.java interface which is implemented in Data.java. I have decided implement a "thin client" i.e. the GUI will only be able to call Book() and Search() methods. These business methods are in a class called DBServerImpl.java.
In pseudo code one of the business methods would be similar to:
So far everything is fine!
My question is do we need to provide a similar level of record locking in the Data.java class? For example do we need to be concerned about other programs who might not use the business methods in DBServerImpl (i.e. Sun
Test Harness, B&S legacy application etc) and would call methods randomly in Data.java? So would we need the following in Data.java?
Or is it enough presume that we only need to be worried about record locking in the DBServerImpl.java class above and Data.java is simply a wrapper to the Database, as follows:
I hope my question makes sense!
Thanks in advance,
Ian