primary key in DAO pattern

From: f (ffunus_at_yahoo.com)
Date: 12/08/03

  • Next message: Mike: "newbie: jsp / ms sql - nested queries problem"
    Date: 8 Dec 2003 07:18:42 -0800
    
    

    I am writing a system which is going to be used on different
    databases. I use the DAO design pattern. The idea is that my system
    focus on business logic only and it is up to the implementation of the
    DAO that links my system to different databases with different schema.
    My question is how to design the primary key in my system for each
    data piece. I think the key is nessary for me when I write this
    system, even though I know my system is to used differently, because
    sometimes I need to join the data or whatever. And the key needs to be
    translated to different databases when DAO is implemented.

    DO I need the primary key for my Data? How to design the key so it can
    be easily implemented by different database?

    THanks,

    ff


  • Next message: Mike: "newbie: jsp / ms sql - nested queries problem"

    Relevant Pages

    • Re: primary key in DAO pattern
      ... DO NOT use an auto incrementing integer as ... I use the DAO design pattern. ... >DAO that links my system to different databases with different schema. ... >My question is how to design the primary key in my system for each ...
      (comp.lang.java.databases)
    • Re: primary key in DAO pattern
      ... DO NOT use an auto incrementing integer as ... I use the DAO design pattern. ... >DAO that links my system to different databases with different schema. ... >My question is how to design the primary key in my system for each ...
      (comp.lang.java.programmer)
    • Re: primary key in DAO pattern
      ... DO NOT use an auto incrementing integer as ... I use the DAO design pattern. ... >DAO that links my system to different databases with different schema. ... >My question is how to design the primary key in my system for each ...
      (comp.lang.java.help)
    • primary key in DAO pattern
      ... I use the DAO design pattern. ... DAO that links my system to different databases with different schema. ... DO I need the primary key for my Data? ...
      (comp.lang.java.help)
    • primary key in DAO pattern
      ... I use the DAO design pattern. ... DAO that links my system to different databases with different schema. ... DO I need the primary key for my Data? ...
      (comp.lang.java.programmer)