Package conduit :: Module MappingDB :: Class MappingDB
[hide private]

Class MappingDB

source code

Manages mappings of RID <-> RID on a per dataprovider basis. Table with 5 fields -
  1. Source Wrapper UID
  2. Source Data LUID
  3. Sink Wrapper UID
  4. Sink Data LUID
  5. Modification Time


Instance Methods [hide private]
 
__init__(self, filename) source code
 
_get_mapping_oid(self, sourceUID, dataLUID, sinkUID) source code
 
_open_db_and_check_structure(self, filename) source code
 
_open_db(self, f)
Opens the mapping DB at the location @ filename
source code
 
get_mapping(self, sourceUID, dataLUID, sinkUID)
pass
source code
 
get_mappings_for_dataproviders(self, sourceUID, sinkUID)
Gets all the data mappings for the dataprovider pair sourceUID --> sinkUID
source code
 
save_mapping(self, mapping)
Saves a mapping between the dataproviders
source code
 
get_matching_UID(self, sourceUID, dataLUID, sinkUID)
For a given source and sink pair and a dataLUID from the pair find the other matching dataLUID.
source code
 
delete_mapping(self, mapping)
Deletes mapping between the dataproviders sourceUID and sinkUID that involve dataLUID
source code
 
save(self) source code
 
delete(self) source code
 
debug(self) source code
 
close(self) source code
Method Details [hide private]

get_matching_UID(self, sourceUID, dataLUID, sinkUID)

source code 
For a given source and sink pair and a dataLUID from the pair find the other matching dataLUID.
Returns:
dataLUID