tomdz       2005/05/08 05:28:50

  Modified:    src/test/org/apache/ojb repository.dtd
  Log:
  Updated DTD to reflect the two new procedures (select-by-pk and select-by-fk)
  
  Revision  Changes    Path
  1.61      +47 -2     db-ojb/src/test/org/apache/ojb/repository.dtd
  
  Index: repository.dtd
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository.dtd,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- repository.dtd    6 Jan 2005 21:00:01 -0000       1.60
  +++ repository.dtd    8 May 2005 12:28:50 -0000       1.61
  @@ -283,13 +283,20 @@
       sql statements (INSERT INTO xxx..., UPDATE xxx, DELETE FROM xxx) will
       be utilized.
   
  +    The select-by-pk-procedure specifies the database procedure to be used
  +    when objects of this class shall be retrieved by identity (i.e. by the
  +    primary key values). Likewise, the select-by-fk-procedure is used for
  +    retrieving objects of this class that based on foreignkey field values
  +    in the object. This for instance is the case when fetching the elements
  +    of a collection.
     -->
   <!ELEMENT class-descriptor
        ((documentation?, extent-class+, attribute*) |
        (documentation?, object-cache?, extent-class*, 
discriminator-descriptor?,
         field-descriptor+, reference-descriptor*, collection-descriptor*,
        index-descriptor*, attribute*,
  -     insert-procedure?, update-procedure?, delete-procedure?))>
  +     insert-procedure?, update-procedure?, delete-procedure?,
  +     select-by-pk-procedure?, select-by-fk-procedure?))>
   
   
   <!--
  @@ -918,4 +925,42 @@
        (documentation?, attribute*)>
   <!ATTLIST constant-argument
       value CDATA #REQUIRED
  ->
  \ No newline at end of file
  +>
  +
  +<!--
  +     Identifies the procedure/function that should be used to handle
  +    selects based on the identity (primary key values) for this class
  +    descriptor.
  +
  +    The return-field-ref identifies the field-descriptor that will receive
  +    the value that is returned by the procedure/function.  If the procedure/
  +    function does not include a return value, then do not specify a value
  +    for this attribute.
  +
  +    The name attribute identifies the name of the procedure/function to use
  +  -->
  +<!ELEMENT select-by-pk-procedure
  +     (documentation?, attribute*)>
  +<!ATTLIST insert-procedure
  +     name CDATA #REQUIRED
  +    return-field-ref CDATA #IMPLIED
  +>
  +
  +<!--
  +     Identifies the procedure/function that should be used to handle
  +    selects based on the values of foreign key fields in the objects of
  +    this type. It will e.g. be used for retrieving collection elements.
  +
  +    The return-field-ref identifies the field-descriptor that will receive
  +    the value that is returned by the procedure/function.  If the procedure/
  +    function does not include a return value, then do not specify a value
  +    for this attribute.
  +
  +    The name attribute identifies the name of the procedure/function to use
  +  -->
  +<!ELEMENT select-by-fk-procedure
  +     (documentation?, attribute*)>
  +<!ATTLIST insert-procedure
  +     name CDATA #REQUIRED
  +    return-field-ref CDATA #IMPLIED
  +>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to