package Workflow::Persister::UUID; # $Id: UUID.pm 299 2007-07-03 14:52:11Z jonasbn $ use strict; use Data::UUID; $Workflow::Persister::UUID::VERSION = '1.03'; sub new { my ( $class, $params ) = @_; my $self = bless( { gen => Data::UUID->new() }, $class ); return $self; } sub pre_fetch_id { my ( $self, $dbh ) = @_; return $self->{gen}->create_str(); } sub post_fetch_id { return } 1; __END__ =head1 NAME Workflow::Persister::UUID - Persister to generate Universally Unique Identifiers =head1 SYNOPSIS module to generate the UUID string, so look there if you are curious about the algorithm, efficiency, etc. =head2 METHODS =head3 new Instantiates a Workflow::Persister::UUID object, which is actually an encapsulation of L. =head3 pre_fetch_id L can then be used to generate/retrieve a unique ID, generated by L. =head3 post_fetch_id This method is unimplemented at this time, please see the TODO. =head1 TODO =over =item * Implement L =back =head1 SEE ALSO =over =item L =back =head1 COPYRIGHT Copyright (c) 2003-2004 Chris Winters. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 AUTHORS Chris Winters Echris@cwinters.comE