c++/MQDB/DBObject.cpp
/* db_id

  Description: the worldwide unique identifier for this object.
               A URL-like combination of database, class, and id
  Returntype : string or undef if database is not defined
  Exceptions : none

*/
db_id
Description: the worldwide unique identifier for this object.
A URL-like combination of database, class, and id
Returntype : string or undef if database is not defined
Exceptions : none
db_id Description : the worldwide unique identifier for this object . A URL - like combination of database class and id Returntype : string or undef if database is not defined Exceptions : none
string MQDB::DBObject::db_id() {
  if(!_db_id.empty()) { return _db_id; }
  if(peer_uuid() != NULL) {
    _db_id = peer_uuid();
    _db_id += "::" + id();
    if(_classname != string("Feature")) { _db_id += ":::" + string(_classname); }
  } else if(_database != NULL) {
    _db_id = _database->url();
    _db_id += "/"+ string(_classname) +"?id="+ id();
  }
  return _db_id;
}
string MQDB :: DBObject :: db_id ( ) { if ( ! _db_id . empty ( ) ) { return _db_id ; } if ( peer_uuid ( ) != NULL ) { _db_id = peer_uuid ( ) ; _db_id += " " + id ( ) ; if ( _classname != string ( " " ) ) { _db_id += " " + string ( _classname ) ; } } else if ( _database != NULL ) { _db_id = _database -> url ( ) ; _db_id += " " + string ( _classname ) + " " + id ( ) ; } return _db_id ; }
db_id
Description: the worldwide unique identifier for this object.
db_id Description : the worldwide unique identifier for this object .