« blib/lib/MOBY/Adaptor/moby/queryapi.pm
↑ Summary
blib/lib/MOBY/Adaptor/moby/Impl/NamespaceDataAdapter.pm »
| 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; |