Set the object id. This is upon FETCH of a data object from a repository. Returns: None
| Return Type | Function name | Arguments |
|---|---|---|
| void | hdbObject::SetObjId | (uint32_t,) |
Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp
Function Logic:
Function body:
void hdbObject::SetObjId (uint32_t nObjId)
{
// Set the object id. This is upon FETCH of a data object from a repository.
//
// Argument: nObjId The Object ID
// Returns: None
if (!m_pClass)
hzexit(E_NOINIT, "Object not initialized - Cannot set ID") ;
if (!m_pRoot)
m_pRoot = _obj_data::GetInstance(m_pClass) ;
m_pRoot->m_ObjId = nObjId ;
}