line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#********************************************************************* |
2
|
|
|
|
|
|
|
#*** ResourcePool::Factory::Alzabo |
3
|
|
|
|
|
|
|
#*** Copyright (c) 2004 by Texas A&M University |
4
|
|
|
|
|
|
|
#*** Based on ResourcePool::Factory::DBI |
5
|
|
|
|
|
|
|
#*** Copyright (c) 2003 by Markus Winand |
6
|
|
|
|
|
|
|
#*** $Id: Alzabo.pm,v 1.1 2004/04/15 20:44:02 jgsmith Exp $ |
7
|
|
|
|
|
|
|
#********************************************************************* |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package ResourcePool::Factory::Alzabo; |
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
294523
|
use vars qw($VERSION @ISA); |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
208
|
|
12
|
3
|
|
|
3
|
|
17
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
102
|
|
13
|
3
|
|
|
3
|
|
2063
|
use ResourcePool::Resource::Alzabo; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
98
|
|
14
|
3
|
|
|
3
|
|
2486
|
use ResourcePool::Factory; |
|
3
|
|
|
|
|
12377
|
|
|
3
|
|
|
|
|
520
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
$VERSION = "1.0100"; |
17
|
|
|
|
|
|
|
push @ISA, "ResourcePool::Factory"; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub new($$$$$$) { |
20
|
32
|
|
|
32
|
1
|
5451
|
my $proto = shift; |
21
|
32
|
|
66
|
|
|
123
|
my $class = ref($proto) || $proto; |
22
|
32
|
|
|
|
|
125
|
my $self = $class->SUPER::new("Alzabo"); |
23
|
|
|
|
|
|
|
|
24
|
32
|
50
|
|
|
|
835
|
if (! exists($self->{schema})) { |
25
|
32
|
|
|
|
|
54
|
$self -> {schema} = shift; |
26
|
32
|
|
|
|
|
50
|
$self->{DS} = shift; |
27
|
32
|
|
|
|
|
62
|
$self->{user} = shift; |
28
|
32
|
|
|
|
|
41
|
$self->{auth} = shift; |
29
|
32
|
|
|
|
|
49
|
$self->{attr} = shift; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
32
|
|
|
|
|
66
|
bless($self, $class); |
33
|
|
|
|
|
|
|
|
34
|
32
|
|
|
|
|
83
|
return $self; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub create_resource($) { |
38
|
2
|
|
|
2
|
1
|
9
|
my ($self) = @_; |
39
|
2
|
|
|
|
|
13
|
return ResourcePool::Resource::Alzabo->new( |
40
|
|
|
|
|
|
|
$self->{schema} |
41
|
|
|
|
|
|
|
, $self->{DS} |
42
|
|
|
|
|
|
|
, $self->{user} |
43
|
|
|
|
|
|
|
, $self->{auth} |
44
|
|
|
|
|
|
|
, $self->{attr} |
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |