blib/lib/MOBY/Adaptor/moby/DataAdapterI.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
create
2.0
delete
2.0
update
2.0
CRAP 2.0
1 #$Id: DataAdapterI.pm,v 1.2 2008/09/02 13:09:30 kawas Exp $
2 package MOBY::Adaptor::moby::DataAdapterI;
3 use strict;
4 use Carp;
5  
6 use vars qw /$VERSION/;
7 $VERSION = sprintf "%d.%02d", q$Revision: 1.2 $ =~ /: (\d+)\.(\d+)/;
8  
9 =head1 NAME
10  
11 MOBY::Adaptor::moby::DataAdapterI - An interface definition for MOBY Central underlying data-stores
12  
13 =cut
14  
15 =head1 SYNOPSIS
16  
17 use MOBY::Adaptor::moby::queryapi::mysql # implements this interface def
18  
19 =cut
20  
21 =head1 DESCRIPTION
22  
23 This is an interface definition. There is NO implementation in this module
24 with the exception that certain calls to required parameters have get/setter
25 functions in this module (that can be overridden)
26  
27 =head1 AUTHORS
28  
29 Mark Wilkinson markw_at_ illuminae dot com
30 Dennis Wang oikisai _at_ hotmail dot com
31 BioMOBY Project: http://www.biomoby.org
32  
33  
34 =cut
35  
36 =head1 METHODS
37  
38 =head2 create
39  
40 Title : create
41 Usage : my $un = $API->create(%args)
42 Function : create an Object and register it into mobycentral
43 Args :
44 Returns : 1 if creation was successful
45 0 otherwise
46 =cut
47 sub create{
48 die "create not implemented in the DataAdapterI Interface file.\n";
49 }
50  
51 =cut
52  
53 =head2 delete
54  
55 Title : delete
56 Usage : my $un = $API->delete(%args)
57 Function : delete an Object from mobycentral
58 Args :
59 Returns : 1 if deletion was successful
60 0 otherwise
61 =cut
62 sub delete{
63 die "delete not implemented in the DataAdapterI Interface file.\n";
64 }
65  
66 =head2 update
67  
68 Title : update
69 Usage : my $un = $API->update(%args)
70 Function : update an Object in mobycentral
71 Args :
72 Returns : 1 if the update was successful
73 0 otherwise
74 =cut
75 sub update{
76 die "update not implemented in the DataAdapterI Interface file.\n";
77 }
78  
79 =head2 query
80  
81 Title : query
82 Usage : my $un = $API->query(%args)
83 Function : retrieve an Object from mobycentral
84 Args :
85 Returns : 1 if deletion was successful
86 0 otherwise
87 =cut
88 sub query{
89 die "query not implemented in the DataAdapterI Interface file.\n";
90 }
91  
92 1;