#include <OW_GenericHDBRepository.hpp>
Inheritance diagram for OW_NAMESPACE::GenericHDBRepository:
Public Member Functions | |
GenericHDBRepository () | |
Create a new GenericHDBRepository object. | |
virtual | ~GenericHDBRepository () |
Destroy this GenericHDBRepository object. | |
virtual void | init (const ServiceEnvironmentIFCRef &env) |
Initialize. | |
virtual void | open (const String &path) |
Open this GenericHDBRepository. | |
virtual void | close () |
Close this GenericHDBRepository. | |
virtual int | createNameSpace (const String &ns) |
Create the necessary containers to make a valid path. | |
void | deleteNameSpace (const String &key) |
Delete a container and all of its' children. | |
bool | nameSpaceExists (const String &key) |
Check whether a namespace exists. | |
bool | isOpen () |
void | nodeToCIMObject (CIMBase &cimObj, const HDBNode &node) |
void | getCIMObject (CIMBase &cimObj, const String &key, HDBHandle hdl) |
void | updateCIMObject (const CIMBase &cimObj, HDBNode &node, HDBHandle hdl) |
void | addCIMObject (const CIMBase &cimObj, const String &key, HDBNode &parentNode, HDBHandle hdl, UInt32 nodeFlags=0) |
void | addCIMObject (const CIMBase &cimObj, const String &key, HDBHandle hdl, UInt32 nodeFlags=0) |
HDBHandle | getHandle () |
void | freeHandle (HDBHandle &hdl) |
Free a and that was previously acquired by a call to getHandle. | |
HDBNode | getNameSpaceNode (HDBHandleLock &hdl, String key) |
Get the name space node for a given key. | |
Static Public Attributes | |
static const String | COMPONENT_NAME |
Protected Types | |
enum | { MAXHANDLES = 10 } |
Protected Member Functions | |
void | throwIfNotOpen () |
Throw an IOException is this repository is not open. | |
Protected Attributes | |
HDB | m_hdb |
bool | m_opened |
Mutex | m_guard |
Array< HDBHandle > | m_handles |
ServiceEnvironmentIFCRef | m_env |
Friends | |
class | HDBHandleLock |
Definition at line 51 of file OW_GenericHDBRepository.hpp.
|
Definition at line 165 of file OW_GenericHDBRepository.hpp. |
|
Create a new GenericHDBRepository object.
Definition at line 56 of file OW_GenericHDBRepository.cpp. |
|
Destroy this GenericHDBRepository object.
Definition at line 69 of file OW_GenericHDBRepository.cpp. References close(). |
|
Definition at line 306 of file OW_GenericHDBRepository.cpp. References hdl, ostrm, OW_NAMESPACE::HDBNode::turnFlagsOn(), and OW_NAMESPACE::SerializableIFC::writeObject(). |
|
Definition at line 294 of file OW_GenericHDBRepository.cpp. References hdl, ostrm, OW_NAMESPACE::HDBNode::turnFlagsOn(), and OW_NAMESPACE::SerializableIFC::writeObject(). Referenced by OW_NAMESPACE::MetaRepository::createClass(). |
|
Close this GenericHDBRepository.
Definition at line 144 of file OW_GenericHDBRepository.cpp. References OW_NAMESPACE::HDL_NOTINUSE, i, m_guard, m_handles, m_opened, and OW_NAMESPACE::Array< T >::size(). Referenced by OW_NAMESPACE::CIMRepository::close(), open(), and ~GenericHDBRepository(). |
|
Create the necessary containers to make a valid path. Fail if the last container already exists.
Reimplemented in OW_NAMESPACE::InstanceRepository, and OW_NAMESPACE::MetaRepository. Definition at line 186 of file OW_GenericHDBRepository.cpp. References OW_NAMESPACE::String::empty(), getHandle(), hdl, ns, and throwIfNotOpen(). Referenced by OW_NAMESPACE::MetaRepository::createNameSpace(), OW_NAMESPACE::InstanceRepository::createNameSpace(), and open(). |
|
Delete a container and all of its' children.
Reimplemented in OW_NAMESPACE::InstanceRepository, and OW_NAMESPACE::MetaRepository. Definition at line 220 of file OW_GenericHDBRepository.cpp. References OW_NAMESPACE::String::equals(), OW_NAMESPACE::CIMException::FAILED, OW_THROWCIMMSG, and throwIfNotOpen(). Referenced by OW_NAMESPACE::MetaRepository::deleteNameSpace(), and OW_NAMESPACE::InstanceRepository::deleteNameSpace(). |
|
Free a and that was previously acquired by a call to getHandle. This method MUST be called on all HDBHandles acquired through getHandle.
Definition at line 107 of file OW_GenericHDBRepository.cpp. References hdl, OW_NAMESPACE::HDL_NOTINUSE, m_guard, m_handles, and OW_NAMESPACE::Array< T >::size(). |
|
Definition at line 278 of file OW_GenericHDBRepository.cpp. References hdl, and nodeToCIMObject(). Referenced by OW_NAMESPACE::MetaRepository::getQualifierType(). |
|
|
Get the name space node for a given key.
Definition at line 166 of file OW_GenericHDBRepository.cpp. References OW_NAMESPACE::String::empty(). Referenced by OW_NAMESPACE::MetaRepository::createClass(), OW_NAMESPACE::InstanceRepository::createClass(), OW_NAMESPACE::InstanceRepository::createInstance(), OW_NAMESPACE::MetaRepository::enumClass(), OW_NAMESPACE::MetaRepository::enumClassNames(), and OW_NAMESPACE::MetaRepository::getTopLevelAssociations(). |
|
Initialize.
Reimplemented in OW_NAMESPACE::MetaRepository. Definition at line 63 of file OW_GenericHDBRepository.cpp. Referenced by OW_NAMESPACE::MetaRepository::init(), and OW_NAMESPACE::CIMRepository::init(). |
|
Definition at line 109 of file OW_GenericHDBRepository.hpp. Referenced by OW_NAMESPACE::CIMRepository::open(). |
|
Check whether a namespace exists.
Definition at line 246 of file OW_GenericHDBRepository.cpp. References OW_NAMESPACE::HDBNode::areAllFlagsOn(), getHandle(), OW_NAMESPACE::HDBNSNODE_FLAG, hdl, and throwIfNotOpen(). Referenced by OW_NAMESPACE::CIMRepository::_commonAssociators(), OW_NAMESPACE::CIMRepository::_commonReferences(), OW_NAMESPACE::CIMRepository::checkGetClassRvalAndThrow(), OW_NAMESPACE::CIMRepository::checkGetClassRvalAndThrowInst(), OW_NAMESPACE::CIMRepository::deleteQualifierType(), and OW_NAMESPACE::MetaRepository::getQualifierType(). |
|
|
Open this GenericHDBRepository.
Reimplemented in OW_NAMESPACE::MetaRepository. Definition at line 120 of file OW_GenericHDBRepository.cpp. References OW_NAMESPACE::String::c_str(), close(), createNameSpace(), m_guard, m_hdb, m_opened, and OW_NAMESPACE::HDB::open(). Referenced by OW_NAMESPACE::MetaRepository::open(). |
|
|
Definition at line 285 of file OW_GenericHDBRepository.cpp. References hdl, ostrm, and OW_NAMESPACE::SerializableIFC::writeObject(). Referenced by OW_NAMESPACE::MetaRepository::modifyClass(), and OW_NAMESPACE::MetaRepository::setQualifierType(). |
|
Definition at line 166 of file OW_GenericHDBRepository.hpp. |
|
Definition at line 142 of file OW_GenericHDBRepository.hpp. Referenced by OW_NAMESPACE::MetaRepository::open(). |
|
Definition at line 164 of file OW_GenericHDBRepository.hpp. Referenced by init(), and OW_NAMESPACE::MetaRepository::open(). |
|
Definition at line 162 of file OW_GenericHDBRepository.hpp. Referenced by close(), freeHandle(), getHandle(), and open(). |
|
Definition at line 163 of file OW_GenericHDBRepository.hpp. Referenced by close(), freeHandle(), and getHandle(). |
|
Definition at line 160 of file OW_GenericHDBRepository.hpp. Referenced by open(). |
|
Definition at line 161 of file OW_GenericHDBRepository.hpp. |