| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package DBIx::Class::Wrapper::FactoryBase; |
|
2
|
|
|
|
|
|
|
$DBIx::Class::Wrapper::FactoryBase::VERSION = '0.009'; |
|
3
|
4
|
|
|
4
|
|
2972
|
use Moose; |
|
|
4
|
|
|
|
|
10
|
|
|
|
4
|
|
|
|
|
33
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
DBIx::Class::Wrapper::FactoryBase - A Factory class to inherit from |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=cut |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head2 create |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Should create a new object given the parameters. |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub create{ |
|
18
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
|
19
|
0
|
|
|
|
|
|
confess("Please implement that"); |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head2 search |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Should return an iterable set of objects given the parameters. |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=cut |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub search{ |
|
29
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
|
30
|
0
|
|
|
|
|
|
confess("Please implement that"); |
|
31
|
|
|
|
|
|
|
} |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 find |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Just return one or zero object given the parameters. |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub find{ |
|
40
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
|
41
|
0
|
|
|
|
|
|
confess("Please implement that"); |
|
42
|
|
|
|
|
|
|
} |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
|
45
|
|
|
|
|
|
|
1; |