• Post Reply Bookmark Topic Watch Topic
  • New Topic

package question  RSS feed

 
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In URLyBird server is package in suncertify.db and data.java as well. Is it okay to put every other class in that package? Assignment has not mention anything about that except for data.java
 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ken Boyd:
In URLyBird server is package in suncertify.db and data.java as well. Is it okay to put every other class in that package? Assignment has not mention anything about that except for data.java



Hi Ken,

Technically it would be OK to do that. But if you want to show your skills in OO-design, you'd better distribute your classes over a few packages. For example, I had the following packages: db, network, business, ui and util.

Frans.
 
Ken Boyd
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frans
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo,

I have the same distibution more on less(gui, db, network)

Frans, you mentioned a business package, you have here the business logic ?
This is not suppose to be on the GUI level(I think ui on you) ?
Can you explain a little bit ?

Mihai.
[ May 25, 2005: Message edited by: Mihai Radulescu ]
 
Frans Janssen
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Frans, you mentioned a business package, you have here the business logic ?
This is not suppose to be on the GUI level(I think ui on you) ?
Can you explain a little bit ?



db: data operations on record level (read, lock, etc.); no interpretation of the data!

business: data operations on business level (book, findContractor)

ui: presentation and user interaction

The ui-package does never call methods in the db package directly, but always through a business method.

The network package was sandwiched between db and business, to provide adapters that do RMI or direct access.

Frans.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!