File: UUIDMaker.pm

package info (click to toggle)
libdbix-class-uuidcolumns-perl 0.02006-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 264 kB
  • sloc: perl: 2,251; sql: 3; makefile: 2
file content (63 lines) | stat: -rw-r--r-- 1,149 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package DBIx::Class::UUIDColumns::UUIDMaker;

use strict;
use warnings;

sub new {
    return bless {}, shift;
};

sub as_string {
    return undef;
};

1;
__END__

=head1 NAME

DBIx::Class::UUIDColumns::UUIDMaker - UUID wrapper module

=head1 SYNOPSIS

  package CustomUUIDMaker;
  use base qw/DBIx::Class::UUIDColumns::UUIDMaker/;

  sub as_string {
    my $uuid;
    ...magic incantations...
    return $uuid;
  };

=head1 DESCRIPTION

DBIx::Class::UUIDColumns::UUIDMaker is a base class used by the various uuid generation
subclasses.

=head1 METHODS

=head2 as_string

Returns the new uuid as a string.

=head2 new

Returns a new uuid maker subclass.

=head1 SEE ALSO

L<DBIx::Class::UUIDColumns>,
L<DBIx::Class::UUIDColumns::UUIDMaker::UUID>,
L<DBIx::Class::UUIDColumns::UUIDMaker::APR::UUID>,
L<DBIx::Class::UUIDColumns::UUIDMaker::Data::UUID>,
L<DBIx::Class::UUIDColumns::UUIDMaker::Win32::Guidgen>,
L<DBIx::Class::UUIDColumns::UUIDMaker::Win32API::GUID>,
L<DBIx::Class::UUIDColumns::UUIDMaker::Data::Uniqid>

=head1 AUTHOR

Chris Laco <claco@chrislaco.com>

=head1 LICENSE

You may distribute this code under the same terms as Perl itself.