Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
ace7d563
Commit
ace7d563
authored
Mar 12, 2008
by
Javier Herrero
Browse files
New remove_by_condition_analysis_url method
parent
ec2f4717
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
+10
-16
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisCtrlRuleAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisCtrlRuleAdaptor.pm
+10
-16
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisCtrlRuleAdaptor.pm
View file @
ace7d563
...
...
@@ -117,28 +117,23 @@ sub store {
}
=head2 remove
=head2 remove
_by_condition_analysis_url
Arg[1] : Bio::EnsEMBL::Hive::AnalysisCtrlRule which must be persistent
with a valid dbID.
Usage : $self->remove( $rule );
Function: removes given object from database.
Arg[1] : string condition_analysis_url
Usage : $self->remove_by_condition_analysis_url("ThisAnalysisLogicName");
Function: removes all the control rules for this condition analysis URL
Returns : -
=cut
sub
remove
{
my
(
$self
,
$
rule
)
=
@_
;
sub
remove
_by_condition_analysis_url
{
my
(
$self
,
$
condition_analysis_url
)
=
@_
;
my
$dbID
=
$rule
->
dbID
;
if
(
!
defined
$dbID
)
{
throw
(
"
AnalysisCtrlRuleAdaptor->remove called with non persistent AnalysisCtrlRule
"
);
}
my
$sth
=
$self
->
prepare
("
DELETE FROM analysis_ctrl_rule WHERE ctrled_analysis_id = ?, condition_analysis_url = '?'
");
$sth
->
execute
(
$rule
->
ctrled_analysis_id
,
$rule
->
condition_analysis_url
);
my
$sth
=
$self
->
prepare
("
DELETE FROM analysis_ctrl_rule WHERE condition_analysis_url =?
");
$sth
->
execute
(
$condition_analysis_url
);
}
=head2 create_rule
Arg[1] : condition analysis object (Bio::EnsEMBL::Analysis object)
...
...
@@ -284,4 +279,3 @@ sub _generic_fetch {
1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment