Thanks for the prompt response Kimbro.
If it is implemented as a service would the Collection recognize it as a
child collection? I mean, what would be the difference between creating just
a Collection compared to creating a child collection using your service?

Best regards,
Per
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Kimbro Staken
> Sent: den 15 juni 2001 17:14
> To: [EMAIL PROTECTED]
> Subject: Re: Creating child collections
>
>
> Uhh, wrong list Jay. :-)
>
> To answer Per's original question.
>
> In the current API there isn't a way to create collections because this
> is something that varies widely across databases. I did propose a simple
> CollectionManagement service that would be an optional part of the API
> for those implementors that can use its simple mechanism. For more
> complex collection management functionality you need to write a vendor
> specific service.
>
> I'm sure this can be beefed up some but this is the service that I
> proposed.
>
> interface CollectionManagementService {
>    /* Create a new basic collection */
>    Collection createCollection( in string name ) raises(XMLDBException);
>
>    /* Remove the named collection */
>    void removeCollection( in string name ) raises(XMLDBException);
> };
>
> Jay Kalafus wrote:
> >
> > You create them as any other collection, only the context
> switch changes.
> >
> > Ex...
> >
> >                dbxmladmin add_collection -c /db -n pebbles
> >                dbxmladmin add_collection -c /db/pebbles -n boulder1
> >                dbxmladmin add_collection -c /db/pebbles -n boulder2
> >
> > Will give you a collection structure of
> >
> > /db/pebbles
> > /db/pebbles/boulder1
> > /db/pebbles/boulder2
> >
> > Jay....
> >
> > >How are you supposed to create child collections in a
> Collection? You can
> > >get them and list them etc. but I see no support for
> setting/creating them.
> > >Am I missing something here?
> > >
> > --
> >   __                        __
> >  / /       Jay Kalafus      \ \   The dbXML Group, LLC
> > / /                          \ \  www.dbxmlgroup.com
> > \ \ [EMAIL PROTECTED]  / /
> >  \_\     (480)421-1241      /_/
> >
> > ----------------------------------------------------------------------
> > Post a message:         mailto:[EMAIL PROTECTED]
> > Unsubscribe:
> mailto:[EMAIL PROTECTED]
> > Contact adminstrator:   mailto:[EMAIL PROTECTED]
> > Read archived messages: http://archive.xmldb.org/
> > ----------------------------------------------------------------------
>
> --
> Kimbro Staken
> The dbXML Project
> http://www.dbxml.org/
>
> ----------------------------------------------------------------------
> Post a message:         mailto:[EMAIL PROTECTED]
> Unsubscribe:            mailto:[EMAIL PROTECTED]
> Contact adminstrator:   mailto:[EMAIL PROTECTED]
> Read archived messages: http://archive.xmldb.org/
> ----------------------------------------------------------------------
>


----------------------------------------------------------------------
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