PICA::Modification::Queue - Queued list of modification requests on PICA+ records
version 0.14
# create a PICA::Modification::Queue::Hash my $q = PICA::Modification::Queue->new('Hash'); # create a different kind of queue (all equivalent) $q = PICA::Modification::Queue->new('foo', bar => 'doz'); $q = PICA::Modification::Queue->new({type => 'foo', bar => 'doz' }); $q = PICA::Modification::Queue::Foo->new( bar => 'doz' ); # operations on queues: my $id = $q->insert( $modification ); my $mod = $q->get( $id ); $id = $q->update( $id => $modification ); $id = $q->delete( $id ); my @mods = $q->list( $key => $value ... );
PICA::Modification::Queue implements a collection of modifications (PICA::Modification) or requests (PICA::Modification::Request) on PICA+ records together with the CRUDL operations get, insert, update, delete, and list. A queue may support insertion of modifications which then are stored as modification requests.
The default implementation is a in-memory (non-persistent) hash (PICA::Modification::Queue::Hash). Additional types of queues can be implemented in the PICA::Modification::Queue:: module namespace.
PICA::Modification::Queue::
Creates a new queue. Options are passed to the queue's constructor.
Must return the id only on success.
Returns a stored modification or undef.
List all or a selection of queued modifications. Parameters can be used for selection. Special parameters are: page, limit, and sort.
page
limit
sort
Jakob Voß <voss@gbv.de>
This software is copyright (c) 2012 by Jakob Voß.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install PICA::Modification, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PICA::Modification
CPAN shell
perl -MCPAN -e shell install PICA::Modification
For more information on module installation, please visit the detailed CPAN module installation guide.