« blib/lib/MOBY/Adaptor/moby/DataAdapterI.pm
↑ Summary
blib/lib/MOBY/Adaptor/moby/Impl/ObjectDataAdapter.pm »
| 1 | #$Id: NamespaceDataAdapter.pm,v 1.3 2008/09/02 13:09:01 kawas Exp $ | ||
| 2 | package MOBY::Adaptor::moby::Impl::NamespaceDataAdapter; | ||
| 3 | use strict; | ||
| 4 | use Carp; | ||
| 5 | |||
| 6 | use vars qw /$VERSION/; | ||
| 7 | $VERSION = sprintf "%d.%02d", q$Revision: 1.3 $ =~ /: (\d+)\.(\d+)/; | ||
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | MOBY::Adaptor::moby::Impl::NamespaceDataAdapter - An interface definition for MOBY Central underlying data-stores | ||
| 12 | |||
| 13 | =cut | ||
| 14 | |||
| 15 | =head1 SYNOPSIS | ||
| 16 | |||
| 17 | use MOBY::Adaptor::moby::DataAdapterI # implements this interface def | ||
| 18 | |||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | Description here. | ||
| 25 | |||
| 26 | =head1 AUTHORS | ||
| 27 | |||
| 28 | Mark Wilkinson markw_at_ illuminae dot com | ||
| 29 | Dennis Wang oikisai _at_ hotmail dot com | ||
| 30 | BioMOBY Project: http://www.biomoby.org | ||
| 31 | |||
| 32 | |||
| 33 | =cut | ||
| 34 | |||
| 35 | =head1 METHODS | ||
| 36 | |||
| 37 | =head2 new | ||
| 38 | |||
| 39 | Title : new | ||
| 40 | Usage : | ||
| 41 | Function : | ||
| 42 | |||
| 43 | Returns : | ||
| 44 | Args : | ||
| 45 | Notes : | ||
| 46 | |||
| 47 | |||
| 48 | =cut | ||
| 49 | |||
| 50 | sub new { | ||
| 51 | my ($caller, %args) = @_; | ||
| 52 | my $caller_is_obj = ref($caller); | ||
| 53 | |||
| 54 | return my $self; | ||
| 55 | } | ||
| 56 | |||
| 57 | =head2 create | ||
| 58 | |||
| 59 | Title : create | ||
| 60 | Usage : my $un = $API->create(%args) | ||
| 61 | Function : create an Object and register it into mobycentral | ||
| 62 | Args : | ||
| 63 | Returns : 1 if creation was successful | ||
| 64 | 0 otherwise | ||
| 65 | =cut | ||
| 66 | sub create{ | ||
| 67 | } | ||
| 68 | |||
| 69 | =cut | ||
| 70 | |||
| 71 | =head2 delete | ||
| 72 | |||
| 73 | Title : delete | ||
| 74 | Usage : my $un = $API->delete(%args) | ||
| 75 | Function : delete an Object from mobycentral | ||
| 76 | Args : | ||
| 77 | Returns : 1 if deletion was successful | ||
| 78 | 0 otherwise | ||
| 79 | =cut | ||
| 80 | sub delete{ | ||
| 81 | } | ||
| 82 | |||
| 83 | =head2 update | ||
| 84 | |||
| 85 | Title : update | ||
| 86 | Usage : my $un = $API->update(%args) | ||
| 87 | Function : update an Object in mobycentral | ||
| 88 | Args : | ||
| 89 | Returns : 1 if the update was successful | ||
| 90 | 0 otherwise | ||
| 91 | =cut | ||
| 92 | sub update{ | ||
| 93 | die "update not applicable with this registry.\n"; | ||
| 94 | } | ||
| 95 | |||
| 96 | =head2 query | ||
| 97 | |||
| 98 | Title : query | ||
| 99 | Usage : my $un = $API->query(%args) | ||
| 100 | Function : retrieve an Object from mobycentral | ||
| 101 | Args : | ||
| 102 | Returns : 1 if deletion was successful | ||
| 103 | 0 otherwise | ||
| 104 | =cut | ||
| 105 | sub query{ | ||
| 106 | } | ||
| 107 | |||
| 108 | ##########PRIVATE MEMBER VARIABLES############# | ||
| 109 | { | ||
| 110 | |||
| 111 | }; | ||
| 112 | 1; |