.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "GO::ObjFactory 3pm" .TH GO::ObjFactory 3pm "2016-12-17" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" .Vb 1 \& GO::ObjFactory \- GO Object Factory .Ve .SH "SYNOPSIS" .IX Header "SYNOPSIS" You should not use this method directly .SH "DESCRIPTION" .IX Header "DESCRIPTION" You only need to be aware of this class if you are generating new objects. You should not directly create objects like this: .PP .Vb 1 \& $term = GO::Model::Term\->new($h); .Ve .PP Instead you should create them like this: .PP .Vb 2 \& $fac = GO::ObjFactory\->new(); \& $term = $fac\->create_term_obj($h); .Ve .PP Usually you do not need to instantiate a factory, as all objects created with a factory carry around a reference to that factory, so you can do this: .PP .Vb 2 \& # $graph object was previously created via a factory \& $term = $graph\->create_term_obj($h); .Ve .PP If you are only using the go-perl module, then factories do not buy you much. However, if you are also using go-db-perl and GO::AppHandle, then factories can be useful \- all objects generated from the database will be attached to an AppHandle which means that \*(L"lazy loading\*(R" can be used. See GO::AppHandle in go-db-perl for details .SS "create_term_obj" .IX Subsection "create_term_obj" .Vb 3 \& Usage \- $term = $apph\->create_term_obj; \& Returns \- L \& Args \- .Ve .SS "create_relationship_obj" .IX Subsection "create_relationship_obj" .Vb 3 \& Usage \- $relationship = $apph\->create_relationship_obj; \& Returns \- L \& Args \- .Ve .SS "create_xref_obj" .IX Subsection "create_xref_obj" .Vb 3 \& Usage \- $xref = $apph\->create_xref_obj; \& Returns \- L \& Args \- .Ve .SS "create_evidence_obj" .IX Subsection "create_evidence_obj" .Vb 3 \& Usage \- $evidence = $apph\->create_evidence_obj; \& Returns \- L \& Args \- .Ve .SS "create_seq_obj" .IX Subsection "create_seq_obj" .Vb 3 \& Usage \- $seq = $apph\->create_seq_obj; \& Returns \- L \& Args \- .Ve .SS "create_db_obj" .IX Subsection "create_db_obj" .Vb 3 \& Usage \- $db = $apph\->create_db_obj; \& Returns \- L \& Args \- .Ve .SS "create_association_obj" .IX Subsection "create_association_obj" .Vb 3 \& Usage \- $association = $apph\->create_association_obj; \& Returns \- L \& Args \- .Ve .SS "create_gene_product_obj" .IX Subsection "create_gene_product_obj" .Vb 4 \& Usage \- $gene_product = $apph\->create_gene_product_obj; \& Synonym \- create_product_obj \& Returns \- L \& Args \- .Ve .SS "create_species_obj" .IX Subsection "create_species_obj" .Vb 3 \& Usage \- $species = $apph\->create_species_obj; \& Returns \- L \& Args \- .Ve .SS "create_graph_obj" .IX Subsection "create_graph_obj" .Vb 3 \& Usage \- $graph = $apph\->create_graph_obj; \& Returns \- L \& Args \- .Ve