Results 1 to 2 of 2

Thread: Noob Middle Tier Question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Sydney Australia
    Posts
    804

    Noob Middle Tier Question

    I have an address book app. It has 2 tables, 1 for New Contacts and one for New Phone Numbers.

    As a new contact is added, one or more numbers may be added associated with that contact. E.g Add Contact Joe Smith, Then Joe has a work and home number which are added to the phone number table.

    I have the app up and running but only in 2 tier format.

    If I want to create objects to handle access to the db server, what objects should I use in this circumstance?

    For example should I have a contact object and a phone number object?

  2. #2
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Yep...Sounds fine and Good to me.

    PhoneNumber object to validate entered numbers and contact object to validate addresses or emails.

    If both are gonna be relatively small classes...think about including both classes in a single component called ContactInfo or something

    You will save resources by just instantiating one component instead of two...
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

Posting Permissions

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



Click Here to Expand Forum to Full Width