Bio::Chado::Schema::Result::Library::Library - Bio::Chado::Schema::Result::Library::Library documentation


Bio-Chado-Schema documentation Contained in the Bio-Chado-Schema distribution.

Index


Code Index:

NAME

Top

Bio::Chado::Schema::Result::Library::Library

NAME

Top

Bio::Chado::Schema::Result::Library::Library

ACCESSORS

Top

library_id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0
  sequence: 'library_library_id_seq'

organism_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

name

  data_type: 'varchar'
  is_nullable: 1
  size: 255

uniquename

  data_type: 'text'
  is_nullable: 0

type_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

The type_id foreign key links to a controlled vocabulary of library types. Examples of this would be: "cDNA_library" or "genomic_library"

is_obsolete

  data_type: 'integer'
  default_value: 0
  is_nullable: 0

timeaccessioned

  data_type: 'timestamp'
  default_value: current_timestamp
  is_nullable: 0
  original: {default_value => \"now()"}

timelastmodified

  data_type: 'timestamp'
  default_value: current_timestamp
  is_nullable: 0
  original: {default_value => \"now()"}

RELATIONS

Top

cell_line_libraries

Type: has_many

Related object: Bio::Chado::Schema::Result::CellLine::CellLineLibrary

type

Type: belongs_to

Related object: Bio::Chado::Schema::Result::Cv::Cvterm

organism

Type: belongs_to

Related object: Bio::Chado::Schema::Result::Organism::Organism

library_cvterms

Type: has_many

Related object: Bio::Chado::Schema::Result::Library::LibraryCvterm

library_dbxrefs

Type: has_many

Related object: Bio::Chado::Schema::Result::Library::LibraryDbxref

library_features

Type: has_many

Related object: Bio::Chado::Schema::Result::Library::LibraryFeature

libraryprops

Type: has_many

Related object: Bio::Chado::Schema::Result::Library::Libraryprop

library_pubs

Type: has_many

Related object: Bio::Chado::Schema::Result::Library::LibraryPub

library_synonyms

Type: has_many

Related object: Bio::Chado::Schema::Result::Library::LibrarySynonym

AUTHOR

Top

Robert Buels <rbuels@cpan.org>

COPYRIGHT AND LICENSE

Top


Bio-Chado-Schema documentation Contained in the Bio-Chado-Schema distribution.

package Bio::Chado::Schema::Result::Library::Library;
BEGIN {
  $Bio::Chado::Schema::Result::Library::Library::AUTHORITY = 'cpan:RBUELS';
}
BEGIN {
  $Bio::Chado::Schema::Result::Library::Library::VERSION = '0.08100';
}

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use base 'DBIx::Class::Core';



__PACKAGE__->table("library");


__PACKAGE__->add_columns(
  "library_id",
  {
    data_type         => "integer",
    is_auto_increment => 1,
    is_nullable       => 0,
    sequence          => "library_library_id_seq",
  },
  "organism_id",
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
  "name",
  { data_type => "varchar", is_nullable => 1, size => 255 },
  "uniquename",
  { data_type => "text", is_nullable => 0 },
  "type_id",
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
  "is_obsolete",
  { data_type => "integer", default_value => 0, is_nullable => 0 },
  "timeaccessioned",
  {
    data_type     => "timestamp",
    default_value => \"current_timestamp",
    is_nullable   => 0,
    original      => { default_value => \"now()" },
  },
  "timelastmodified",
  {
    data_type     => "timestamp",
    default_value => \"current_timestamp",
    is_nullable   => 0,
    original      => { default_value => \"now()" },
  },
);
__PACKAGE__->set_primary_key("library_id");
__PACKAGE__->add_unique_constraint("library_c1", ["organism_id", "uniquename", "type_id"]);


__PACKAGE__->has_many(
  "cell_line_libraries",
  "Bio::Chado::Schema::Result::CellLine::CellLineLibrary",
  { "foreign.library_id" => "self.library_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->belongs_to(
  "type",
  "Bio::Chado::Schema::Result::Cv::Cvterm",
  { cvterm_id => "type_id" },
  {
    cascade_copy   => 0,
    cascade_delete => 0,
    is_deferrable  => 1,
    on_delete      => "CASCADE",
    on_update      => "CASCADE",
  },
);


__PACKAGE__->belongs_to(
  "organism",
  "Bio::Chado::Schema::Result::Organism::Organism",
  { organism_id => "organism_id" },
  {
    cascade_copy   => 0,
    cascade_delete => 0,
    is_deferrable  => 1,
    on_delete      => "CASCADE",
    on_update      => "CASCADE",
  },
);


__PACKAGE__->has_many(
  "library_cvterms",
  "Bio::Chado::Schema::Result::Library::LibraryCvterm",
  { "foreign.library_id" => "self.library_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "library_dbxrefs",
  "Bio::Chado::Schema::Result::Library::LibraryDbxref",
  { "foreign.library_id" => "self.library_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "library_features",
  "Bio::Chado::Schema::Result::Library::LibraryFeature",
  { "foreign.library_id" => "self.library_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "libraryprops",
  "Bio::Chado::Schema::Result::Library::Libraryprop",
  { "foreign.library_id" => "self.library_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "library_pubs",
  "Bio::Chado::Schema::Result::Library::LibraryPub",
  { "foreign.library_id" => "self.library_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "library_synonyms",
  "Bio::Chado::Schema::Result::Library::LibrarySynonym",
  { "foreign.library_id" => "self.library_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fLTH97E8H695k2TFazyY8A


# You can replace this text with custom content, and it will be preserved on regeneration
1;

__END__