ensembl-hive  2.7.0
MappingJob.pm
Go to the documentation of this file.
1 =head1 LICENSE
2 
3 See the NOTICE file distributed with this work for additional information
4 regarding copyright ownership.
5 
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 
18 =cut
19 
20 package Xref::Schema::Result::MappingJob;
21 
22 =head1 NAME
23 
25 
26 =cut
27 
28 use strict;
29 use warnings;
30 use utf8;
31 
32 use base 'DBIx::Class::Core';
33 
34 =head1 TABLE: C<mapping_jobs>
35 
36 =cut
37 
38 __PACKAGE__->table("mapping_jobs");
39 
40 =head1 ACCESSORS
41 
42 =head2 root_dir
43 
44  data_type: 'text'
45  is_nullable: 1
46 
47 =head2 map_file
48 
49  data_type: 'varchar'
50  is_nullable: 1
51  size: 255
52 
53 =head2 status
54 
55  data_type: 'enum'
56  extra: {list => ["SUBMITTED","FAILED","SUCCESS"]}
57  is_nullable: 1
58 
59 =head2 out_file
60 
61  data_type: 'varchar'
62  is_nullable: 1
63  size: 255
64 
65 =head2 err_file
66 
67  data_type: 'varchar'
68  is_nullable: 1
69  size: 255
70 
71 =head2 array_number
72 
73  data_type: 'integer'
74  extra: {unsigned => 1}
75  is_nullable: 1
76 
77 =head2 job_id
78 
79  data_type: 'integer'
80  extra: {unsigned => 1}
81  is_nullable: 1
82 
83 =head2 failed_reason
84 
85  data_type: 'varchar'
86  is_nullable: 1
87  size: 255
88 
89 =head2 object_xref_start
90 
91  data_type: 'integer'
92  extra: {unsigned => 1}
93  is_nullable: 1
94 
95 =head2 object_xref_end
96 
97  data_type: 'integer'
98  extra: {unsigned => 1}
99  is_nullable: 1
100 
101 =cut
102 
103 __PACKAGE__->add_columns(
104  "root_dir",
105  { data_type => "text", is_nullable => 1 },
106  "map_file",
107  { data_type => "varchar", is_nullable => 1, size => 255 },
108  "status",
109  {
110  data_type => "enum",
111  extra => { list => ["SUBMITTED", "FAILED", "SUCCESS"] },
112  is_nullable => 1,
113  },
114  "out_file",
115  { data_type => "varchar", is_nullable => 1, size => 255 },
116  "err_file",
117  { data_type => "varchar", is_nullable => 1, size => 255 },
118  "array_number",
119  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
120  "job_id",
121  { data_type => "integer", extra => { unsigned => 1 } },
122  "failed_reason",
123  { data_type => "varchar", is_nullable => 1, size => 255 },
124  "object_xref_start",
125  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
126  "object_xref_end",
127  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
128 );
129 
130 __PACKAGE__->set_primary_key('job_id');
131 
132 __PACKAGE__->has_one('job', 'Xref::Schema::Result::Mapping', 'job_id' );
133 1;
Xref::Schema::Result::MappingJob
Definition: MappingJob.pm:5