File Coverage

blib/lib/Rose/DB/Object/Metadata/Column/Pg/Chkpass.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 19 19 100.0


line stmt bran cond sub pod time code
1             package Rose::DB::Object::Metadata::Column::Pg::Chkpass;
2              
3 1     1   7 use strict;
  1         2  
  1         37  
4              
5 1     1   6 use Rose::Object::MakeMethods::Generic;
  1         3  
  1         14  
6 1     1   581 use Rose::DB::Object::MakeMethods::Pg;
  1         2  
  1         8  
7              
8 1     1   36 use Rose::DB::Object::Metadata::Column;
  1         3  
  1         145  
9             our @ISA = qw(Rose::DB::Object::Metadata::Column);
10              
11             our $VERSION = '0.03';
12              
13             __PACKAGE__->add_common_method_maker_argument_names('encrypted_suffix', 'cmp_suffix');
14              
15             Rose::Object::MakeMethods::Generic->make_methods
16             (
17             { preserve_existing => 1 },
18             scalar => [ __PACKAGE__->common_method_maker_argument_names ]
19             );
20              
21             foreach my $type (__PACKAGE__->available_method_types)
22             {
23             __PACKAGE__->method_maker_class($type => 'Rose::DB::Object::MakeMethods::Pg');
24             __PACKAGE__->method_maker_type($type => 'chkpass');
25             }
26              
27 5     5 1 22 sub type { 'chkpass' }
28              
29             1;
30              
31             __END__
32              
33             =head1 NAME
34              
35             Rose::DB::Object::Metadata::Column::Pg::Chkpass - PostgreSQL CHKPASS column metadata.
36              
37             =head1 SYNOPSIS
38              
39             use Rose::DB::Object::Metadata::Column::Pg::Chkpass;
40              
41             $col = Rose::DB::Object::Metadata::Column::Pg::Chkpass->new(...);
42             $col->make_methods(...);
43             ...
44              
45             =head1 DESCRIPTION
46              
47             Objects of this class store and manipulate metadata for CHKPASS columns in a PostgreSQL database. Column metadata objects store information about columns (data type, size, etc.) and are responsible for creating object methods that manipulate column values. See the L<Rose::DB::Object::MakeMethods::Pg> for more information on PostgreSQL's CHKPASS data type.
48              
49             This class inherits from L<Rose::DB::Object::Metadata::Column>. Inherited methods that are not overridden will not be documented a second time here. See the L<Rose::DB::Object::Metadata::Column> documentation for more information.
50              
51             =head1 METHOD MAP
52              
53             =over 4
54              
55             =item C<get_set>
56              
57             L<Rose::DB::Object::MakeMethods::Pg>, L<chkpass|Rose::DB::Object::MakeMethods::Pg/chkpass>, ...
58              
59             =item C<get>
60              
61             L<Rose::DB::Object::MakeMethods::Pg>, L<chkpass|Rose::DB::Object::MakeMethods::Pg/chkpass>, ...
62              
63             =item C<get_set>
64              
65             L<Rose::DB::Object::MakeMethods::Pg>, L<chkpass|Rose::DB::Object::MakeMethods::Pg/chkpass>, ...
66              
67             =back
68              
69             See the L<Rose::DB::Object::Metadata::Column|Rose::DB::Object::Metadata::Column/"MAKING METHODS"> documentation for an explanation of this method map.
70              
71             =head1 OBJECT METHODS
72              
73             =over 4
74              
75             =item B<cmp_suffix [STRING]>
76              
77             Get or set the suffix used to form the name of the comparison method. See the documentation for the C<chkpass> method type in L<Rose::DB::Object::MakeMethods::Pg> for more information.
78              
79             =item B<encrypted_suffix [STRING]>
80              
81             Get or set the suffix used to form the name of the accessor method for the encrypted version of the column value. See the documentation for the C<chkpass> method type in L<Rose::DB::Object::MakeMethods::Pg> for more information.
82              
83             =item B<type>
84              
85             Returns "chkpass".
86              
87             =back
88              
89             =head1 AUTHOR
90              
91             John C. Siracusa (siracusa@gmail.com)
92              
93             =head1 LICENSE
94              
95             Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is
96             free software; you can redistribute it and/or modify it under the same terms
97             as Perl itself.