XML::DB::CollectionManager - manages collections


NAME

XML::DB::CollectionManager - manages collections


SYNOPSIS

    $collectionManager = $collection->getService('CollectionManager', '1.0');
    $collectionManager->createCollection('test');
    $collectionManager->removeCollection('test');


DESCRIPTION

CollectionManager implements Service. It provides the ability to create or remove Collections from the database.


BUGS


AUTHOR

        Graham Seaman
        CPAN ID: GSEAMAN
        graham@opencollector.org


COPYRIGHT

Copyright (c) 2002 Graham Seaman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.


SEE ALSO

perl(1).


PUBLIC METHODS

createCollection

Usage : $coll = $cm->createCollection($name)

Purpose : creates a new (empty) collection in the database

Arguments : name of collection

Returns : collection

Throws : exception if unable to create collection

removeCollection

Usage : $cm->removeCollection($name)

Purpose : removes a collection from the database

Arguments : name of collection

Returns : undef

Throws : exception if unable to remove collection

new

Usage : Should only be called indirectly, from a Collection (see Synopsis)

Purpose : Constructor


=back
 XML::DB::CollectionManager - manages collections