Results 1 to 1 of 1

Thread: Business objects dependends of other persistent BOs

  1. #1
    Join Date
    Sep 2004
    Posts
    5

    Default Business objects dependends of other persistent BOs

    Hi.

    Iīm with troubles here defining the were to put some business logic.
    I have an Scheduler business object, and it have a collection of some events (ScheduledEvent). However, to optimize some of itīs operation, it is not necessary to fetch all ScheduledEvents from persistent storage (I'm currently using Hibernate).

    I just readed this thread http://forum.springframework.org/showthread.php?t=9818 about the roles and responsabilities of the layers. However, in my case I just couldnīt think of an good solution. I can think of two possible implementations:

    1) Create a class SchedulerManager, which is responsible to, say, fetch the events in a specified range (itīs not a simple query, since an event could be repeated), and it uses the SchedulerDAO as a support class; or

    2) Since I find that the operation "list the events in this schedule in this time range" is an operation of the Scheduler class, it will end have an dependency to the data access objects. In this case, how do I pass this reference?

    Any comments?
    Thanks for any response.
    Last edited by robyn; May 14th, 2006 at 09:54 AM.

Similar Threads

  1. Spring-based architectural approach
    By diegum in forum Architecture
    Replies: 9
    Last Post: May 10th, 2007, 04:09 PM
  2. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  3. Testing Business Objects
    By jopaki in forum Container
    Replies: 2
    Last Post: Aug 16th, 2005, 04:11 AM
  4. Binding to business domain objects
    By klr8 in forum Architecture
    Replies: 2
    Last Post: Mar 15th, 2005, 01:21 AM
  5. Should Business Objects have References to DAOs?
    By sethladd in forum Architecture
    Replies: 9
    Last Post: Aug 25th, 2004, 01:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •