BioPerl-DB
view release on metacpan or search on metacpan
lib/Bio/DB/DBD.pm view on Meta::CPAN
Report bugs to the Bioperl bug tracking system to help us keep track
of the bugs and their resolution. Bug reports can be submitted via
the web:
http://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Hilmar Lapp
Email hlapp at gmx.net
Describe contact details here
=head1 CONTRIBUTORS
Additional contributors names and emails here
=head1 APPENDIX
The rest of the documentation details each of the object methods.
Internal methods are usually preceded with a _
=cut
# Let the code begin...
package Bio::DB::DBD;
use vars qw(@ISA);
use strict;
use Carp;
use Bio::Root::RootI;
@ISA = qw( Bio::Root::RootI );
=head2 prepare_delete_sth
Title : prepare_delete_sth
Usage :
Function: Creates a prepared statement with one placeholder variable suitable
to delete one row from the respective table the given class maps to.
The method may throw an exception, or the database handle methods
involved may throw an exception.
Example :
Returns : A DBI statement handle for a prepared statement with one placeholder
Args : The database handle to use for preparing the statement.
The class of which a corresponding entry shall be deleted.
Optionally, additional (named) arguments.
=cut
sub prepare_delete_sth{
my ($self,@args) = @_;
$self->throw_not_implemented();
}
=head2 cascade_delete
Title : cascade_delete
Usage :
Function: Removes all persistent objects dependent from the given persistent
object from the database (foreign key integrity).
The method may throw an exception, or the database calls
involved may throw an exception.
If the RDBMS supports cascading deletes, and the schema definition
enabled FK constraints with cascading deletes, then the
implementation won''t need to do anything.
Example :
Returns : TRUE on success, and FALSE otherwise
Args : The DBContextI implementing object for the database.
The object for which the dependent rows shall be deleted.
Optionally, additional (named) arguments.
=cut
sub cascade_delete{
my ($self,@args) = @_;
$self->throw_not_implemented();
}
1;
( run in 1.317 second using v1.01-cache-2.11-cpan-39bf76dae61 )