XML::DB::CollectionManager - manages collections |
XML::DB::CollectionManager - manages collections
$collectionManager = $collection->getService('CollectionManager', '1.0'); $collectionManager->createCollection('test'); $collectionManager->removeCollection('test');
CollectionManager implements Service. It provides the ability to create or remove Collections from the database.
Graham Seaman CPAN ID: GSEAMAN graham@opencollector.org
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.
perl(1).
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
Usage : $cm->removeCollection($name)
Purpose : removes a collection from the database
Arguments : name of collection
Returns : undef
Throws : exception if unable to remove collection
Usage : Should only be called indirectly, from a Collection (see Synopsis)
Purpose : Constructor
=back
XML::DB::CollectionManager - manages collections |