File Coverage

blib/lib/Bio/Chado/Schema/Result/NaturalDiversity/NdGeolocation.pm
Criterion Covered Total %
statement 11 14 78.5
branch 0 2 0.0
condition n/a
subroutine 5 6 83.3
pod 1 1 100.0
total 17 23 73.9


line stmt bran cond sub pod time code
1             package Bio::Chado::Schema::Result::NaturalDiversity::NdGeolocation;
2             BEGIN {
3 6     6   2839 $Bio::Chado::Schema::Result::NaturalDiversity::NdGeolocation::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   115 $Bio::Chado::Schema::Result::NaturalDiversity::NdGeolocation::VERSION = '0.08001'; # TRIAL
7             }
8              
9             # Created by DBIx::Class::Schema::Loader
10             # DO NOT MODIFY THE FIRST PART OF THIS FILE
11              
12 6     6   38 use strict;
  6         14  
  6         97  
13 6     6   30 use warnings;
  6         12  
  6         130  
14              
15 6     6   28 use base 'DBIx::Class::Core';
  6         14  
  6         1272  
16              
17              
18              
19             __PACKAGE__->table("nd_geolocation");
20              
21              
22             __PACKAGE__->add_columns(
23             "nd_geolocation_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "nd_geolocation_nd_geolocation_id_seq",
29             },
30             "description",
31             { data_type => "varchar", is_nullable => 1, size => 255 },
32             "latitude",
33             { data_type => "real", is_nullable => 1 },
34             "longitude",
35             { data_type => "real", is_nullable => 1 },
36             "geodetic_datum",
37             { data_type => "varchar", is_nullable => 1, size => 32 },
38             "altitude",
39             { data_type => "real", is_nullable => 1 },
40             );
41             __PACKAGE__->set_primary_key("nd_geolocation_id");
42              
43              
44             __PACKAGE__->has_many(
45             "nd_experiments",
46             "Bio::Chado::Schema::Result::NaturalDiversity::NdExperiment",
47             { "foreign.nd_geolocation_id" => "self.nd_geolocation_id" },
48             { cascade_copy => 0, cascade_delete => 0 },
49             );
50              
51              
52             __PACKAGE__->has_many(
53             "nd_geolocationprops",
54             "Bio::Chado::Schema::Result::NaturalDiversity::NdGeolocationprop",
55             { "foreign.nd_geolocation_id" => "self.nd_geolocation_id" },
56             { cascade_copy => 0, cascade_delete => 0 },
57             );
58              
59              
60             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
61             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SQ+EKgMKT42po3xuGLJYoA
62              
63              
64              
65             sub create_geolocationprops {
66 0     0 1   my ($self, $props, $opts) = @_;
67              
68             # process opts
69             $opts->{cv_name} = 'geolocation_property'
70 0 0         unless defined $opts->{cv_name};
71 0           return Bio::Chado::Schema::Util->create_properties
72             ( properties => $props,
73             options => $opts,
74             row => $self,
75             prop_relation_name => 'nd_geolocationprops',
76             );
77             }
78              
79              
80             # You can replace this text with custom content, and it will be preserved on regeneration
81             1;
82              
83             __END__