I've decided to design the application as modular as posible so that each layer of the application is aware only about the next layer of the application.
The database layer components are kept in the 'suncertify.db' package. This package is only accessed by the business layer.
The business layer components are kept in the 'suncertify.business' package.
The user's interface components are kept in the 'suncertify.ui' package. These components provide their functionality via the business layer.
The network components are used only in a client-server enviroment. These components are kept in the 'suncertify.network' package.
The data layer load's the data in memory and work's directly with this data so that read operations are very quick. Write operations have to update both the data in memory and the data file. The data layer is isolated enough as to change this behaviour in future if the application requires so.
Gabriel Vargas
SCJP, SCJD, now studying for SCWCD and working to be a better person
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
GREAT DAY TO BE ALIVE - Beats the alternative!<br />
SCJP 5.0
Did you realize are you going to get 399, before exam?
What targets you set and how you worked to achieve that.
Originally posted by Jar Jaquiso:
My main target was to develop an application that I would be proud of.
This meant good planing and a very well documented application.
[ August 20, 2007: Message edited by: Jar Jaquiso ]
_ _ ________________________ _ _ <br /> <br />Just SCJP (but 93%)
Originally posted by Jar Jaquiso:
Hello rinke,
About my network design the first thing to say is that I didn't expose the database interface.
I created a business interface and I exposed that interface's methods. This means that I didn't expose the lock/unlock methods of the database interface.
The client GUI operates via the business interface but is unaware about in which mode it is running (network or non-network). When the GUI is initialized I inject the correct business class, that is a business implementation when working in non-network mode or a business delegate when working in network mode.
I hope this helps you, it's difficult to explain without getting into too much detail.
Jar
_ _ ________________________ _ _ <br /> <br />Just SCJP (but 93%)
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJP 5.0<br />Next-> I Don't Know
Consider Paul's rocket mass heater. |