Hmm, I don't fully understand this. :-/ I see the lot of work to be
done to map from hierarchical structure to flat relational tables and
back. Ok, so far. But where is the difference (not functionally but
basically) between getCollection() and createCollection()? You have
to generate the "same" mapping algorithm. You just write CREATE TABLE
instead of SELECT FROM in your mapping code. Ok, this is written a
little bit too credulously but only because I don't see the difference
you want to point out ...


On Mon, 30 Apr 2001 10:43:11 -0700
Tom Bradford <[EMAIL PROTECTED]> wrote:
> Lars Martin wrote:
> > well,as far as I can remember we already noticed the lack of methods
> > for the create of new root collections as well as child collections.
> > To move forward I propose the addition of the following two methods:
> 
> While every attempt should be made to create a standard way of producing
> collections, I don't know if any one approach can be considered correct
> for all cases.  
> 
> For example, an XML:DB driver may be hitting a relational database as
> its data store, and a Collection may be exposed as the result of
> relational mapping between several RDBMS tables.  In this case, there is
> no clean way of creating a Collection as there's a lot of mapping and
> other homework that has to be done ahead of time.
> 
> One way to approach the problem would be to break the problem down into
> classes, and say that for native and enabled XML databases, there IS a
> clean way to do it, but for mapped databases there isn't, and thus it
> would be up to the vendor of the mapped database driver to figure out
> Collection creation.  The problem with that is that it leads to
> inconsistency between the clean way and the various ways mapping vendors
> are implementing it.
>
> Of course, the same applies to dropping Collections.


--
______________________________________________________________________
Lars Martin                                    mailto:[EMAIL PROTECTED]
SMB GmbH                                        http://www.smb-tec.com


----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact adminstrator:   mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to