Package Bio :: Package config :: Module DBRegistry :: Class BioCorbaDB
[hide private]
[frames] | no frames]

Class BioCorbaDB

source code

Registry.RegisterableObject --+    
                              |    
                       DBObject --+
                                  |
                                 BioCorbaDB

Represent a BioCorba BioSequenceCollection for SeqRecord objects.

Returns SeqRecord-like objects.

Instance Methods [hide private]
 
__init__(self, name, ior_ref, server_type=None, doc='')
Intialize with IOR reference for a BioCorba Collection.
source code
 
_get_retriever(self, server_type)
Return a BioCorba retriever object based on the specified server.
source code
 
_get_corba_client(self, ior_ref, retriever)
Get a connection to the CORBA server based on the ior_ref
source code
data
_get(self, key) source code
another data type
_convert_to(self, data, to_io) source code

Inherited from DBObject: __getitem__, get, get_as, set

Inherited from DBObject (private): _make_pickleable, _set, _unmake_pickleable

Method Details [hide private]

__init__(self, name, ior_ref, server_type=None, doc='')
(Constructor)

source code 

Intialize with IOR reference for a BioCorba Collection.

ior_ref is a URL or file reference to an IOR string. The IOR should reference a BioSequenceCollection. This is the top level BioCorba object we should use for making objects available.

server_type is a hack parameter which might be necessary if there are server/client issues (ie. as with Perl ORBit) that we need to muck around with. If not set, we just use a standard retriever.

Overrides: Registry.RegisterableObject.__init__

_get_retriever(self, server_type)

source code 

Return a BioCorba retriever object based on the specified server.

This returns a ready-to-go client retriever which can be used to connect to a BioCorba server.

_get(self, key)

source code 
Returns: data
Overrides: DBObject._get
(inherited documentation)

_convert_to(self, data, to_io)

source code 
Returns: another data type
Overrides: DBObject._convert_to
(inherited documentation)