|
ensembl-hive
2.7.0
|
Inheritance diagram for Bio::EnsEMBL::DBSQL::BaseMetaContainer:
An object that encapsulates access to db meta data
Definition at line 20 of file BaseMetaContainer.pm.
| protected Bio::EnsEMBL::DBSQL::BaseMetaContainer::_species_specific_key | ( | ) |
Undocumented method
Code:
| public void Bio::EnsEMBL::DBSQL::BaseMetaContainer::delete_key | ( | ) |
Arg [1] : string $key
The key which should be removed from the database.
Example : Description: Removes all rows from the meta table which have a meta_key
equal to $key.
Returntype : none
Exceptions : none
Caller : dna_compress script, general
Status : Stable
Code:
| public void Bio::EnsEMBL::DBSQL::BaseMetaContainer::delete_key_value | ( | ) |
Arg [1] : string $key
The key which should be removed from the database.
Arg [2] : string $value
The value to be removed.
Example : Description: Removes all rows from the meta table which have a meta_key
equal to $key, AND a meta_value equal to $value.
Returntype : none
Exceptions : none
Caller : general
Status : Stable
Code:
| public Int Bio::EnsEMBL::DBSQL::BaseMetaContainer::get_schema_version | ( | ) |
Arg [1] : none Example :
Description: Retrieves the schema version from the database meta table Returntype : int Exceptions : none Caller : ? Status : Medium risk
Code:
| public Boolean Bio::EnsEMBL::DBSQL::BaseMetaContainer::key_value_exists | ( | ) |
Arg [1] : string $key
the key to check
Arg [2] : string $value
the value to check
Example : Description: Return true (1) if a particular key/value pair exists,
false (0) otherwise.
Returntype : boolean
Exceptions : none
Caller : ?
Status : Stable
Code:
| public Listref Bio::EnsEMBL::DBSQL::BaseMetaContainer::list_value_by_key | ( | ) |
Arg [1] : string $key
the key to obtain values from the meta table with
Example :Description: gets a value for a key. Can be anything Returntype : listref of strings Exceptions : none Caller : ? Status : Stable
Code:
| public Scalar Bio::EnsEMBL::DBSQL::BaseMetaContainer::single_value_by_key | ( | ) |
Arg [1] : string $key
the key to obtain values from the meta table with
Arg [2] : boolean $warn
If true will cause the code to warn the non-existence of a value
Example :Description: Gets a value for a key. Can be anything Returntype : Scalar Exceptions : Raised if more than 1 meta item is returned
Code:
| public void Bio::EnsEMBL::DBSQL::BaseMetaContainer::store_key_value | ( | ) |
Arg [1] : string $key
a key under which $value should be stored
Arg [2] : string $value
the value to store in the meta table
Example :Description: stores a value in the meta container, accessable by a key Returntype : none Exceptions : Thrown if the key/value already exists. Caller : ? Status : Stable
Code:
| public void Bio::EnsEMBL::DBSQL::BaseMetaContainer::update_key_value | ( | ) |
Arg [1] : string $key
a key under which $value should be updated
Arg [2] : string $value
the value to update in the meta table
Example :Description: update a value in the meta container, accessable by a key Returntype : none Exceptions : none Caller : ? Status : Stable
Code: