#include <OW_InstanceRepository.hpp>
Inheritance diagram for OW_NAMESPACE::InstanceRepository:
Definition at line 47 of file OW_InstanceRepository.hpp.
|
Create a new InstanceRepository object.
Definition at line 53 of file OW_InstanceRepository.hpp. |
|
Definition at line 487 of file OW_InstanceRepository.cpp. References OW_NAMESPACE::CIMClass::getQualifier(), OW_NAMESPACE::CIMInstance::getQualifiers(), OW_NAMESPACE::CIMQualifier::getValue(), inst, and theClass. Referenced by createInstance(). |
|
Determin if a given class has instances.
Definition at line 339 of file OW_InstanceRepository.cpp. References OW_NAMESPACE::CIMObjectPath::getClassName(), OW_NAMESPACE::GenericHDBRepository::getHandle(), OW_NAMESPACE::CIMObjectPath::getNameSpace(), OW_NAMESPACE::HDBCLSNODE_FLAG, hdl, makeClassKey(), OW_THROW, and OW_NAMESPACE::GenericHDBRepository::throwIfNotOpen(). |
|
Ensure there is a container for a given class in the instance repository.
Definition at line 444 of file OW_InstanceRepository.cpp. References OW_NAMESPACE::CIMException::ALREADY_EXISTS, OW_NAMESPACE::String::c_str(), cimClass, OW_NAMESPACE::GenericHDBRepository::getHandle(), OW_NAMESPACE::CIMClass::getName(), OW_NAMESPACE::GenericHDBRepository::getNameSpaceNode(), OW_NAMESPACE::HDBCLSNODE_FLAG, OW_NAMESPACE::HDBNSNODE_FLAG, hdl, OW_NAMESPACE::CIMException::INVALID_NAMESPACE, makeClassKey(), ns, OW_THROWCIMMSG, and OW_NAMESPACE::GenericHDBRepository::throwIfNotOpen(). |
|
Creates a instance in the store.
Definition at line 309 of file OW_InstanceRepository.cpp. References _removeDuplicatedQualifiers(), OW_NAMESPACE::CIMException::ALREADY_EXISTS, OW_NAMESPACE::String::c_str(), OW_NAMESPACE::CIMInstance::getClassName(), OW_NAMESPACE::GenericHDBRepository::getHandle(), OW_NAMESPACE::GenericHDBRepository::getNameSpaceNode(), hdl, OW_NAMESPACE::CIMException::INVALID_CLASS, makeClassKey(), makeInstanceKey(), ns, ostrm, OW_THROWCIMMSG, theClass, OW_NAMESPACE::GenericHDBRepository::throwIfNotOpen(), and OW_NAMESPACE::CIMInstance::writeObject(). |
|
Create the necessary containers to make a valid path. Fail if the last container already exists.
Reimplemented from OW_NAMESPACE::GenericHDBRepository. Definition at line 435 of file OW_InstanceRepository.cpp. References OW_NAMESPACE::GenericHDBRepository::createNameSpace(), and ns. |
|
Remove the class name container for a given class.
Definition at line 468 of file OW_InstanceRepository.cpp. References OW_NAMESPACE::HDBNode::areAllFlagsOn(), className, OW_NAMESPACE::GenericHDBRepository::getHandle(), OW_NAMESPACE::HDBCLSNODE_FLAG, hdl, makeClassKey(), ns, OW_THROW, and OW_NAMESPACE::GenericHDBRepository::throwIfNotOpen(). |
|
Delete an existing instance from the store.
Definition at line 288 of file OW_InstanceRepository.cpp. References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::CIMNULL, cop, OW_NAMESPACE::GenericHDBRepository::getHandle(), hdl, makeInstanceKey(), OW_NAMESPACE::GenericHDBRepository::nodeToCIMObject(), OW_NAMESPACE::CIMException::NOT_FOUND, ns, OW_THROWCIMMSG, OW_NAMESPACE::CIMObjectPath::setNameSpace(), theClass, OW_NAMESPACE::GenericHDBRepository::throwIfNotOpen(), and OW_NAMESPACE::CIMObjectPath::toString(). |
|
Delete the given namespace and all object contained within it.
Reimplemented from OW_NAMESPACE::GenericHDBRepository. Definition at line 427 of file OW_InstanceRepository.cpp. References OW_NAMESPACE::GenericHDBRepository::deleteNameSpace(), and OW_NAMESPACE::GenericHDBRepository::throwIfNotOpen(). |
|
Retrieve a specific instance.
Definition at line 252 of file OW_InstanceRepository.cpp. References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::CIMNULL, cop, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_LOCAL_ONLY, OW_NAMESPACE::GenericHDBRepository::getHandle(), hdl, makeInstanceKey(), OW_NAMESPACE::GenericHDBRepository::nodeToCIMObject(), OW_NAMESPACE::CIMException::NOT_FOUND, ns, OW_THROWCIMMSG, propertyList, OW_NAMESPACE::CIMObjectPath::setNameSpace(), theClass, OW_NAMESPACE::GenericHDBRepository::throwIfNotOpen(), and OW_NAMESPACE::CIMObjectPath::toString(). Referenced by OW_NAMESPACE::CIMRepository::getInstance(). |
|
|
|
Definition at line 179 of file OW_InstanceRepository.cpp. References className, ns, OW_NAMESPACE::NS_SEPARATOR_C(), and OW_NAMESPACE::String::toLowerCase(). Referenced by classHasInstances(), createClass(), createInstance(), deleteClass(), getCIMInstances(), getInstanceNames(), and makeInstanceKey(). |
|
Definition at line 65 of file OW_InstanceRepository.cpp. References cop, OW_NAMESPACE::CIMObjectPath::getClassName(), OW_NAMESPACE::CIMClass::getKeys(), OW_NAMESPACE::CIMException::INVALID_PARAMETER, makeClassKey(), ns, OW_NAMESPACE::NS_SEPARATOR_C(), OW_THROWCIMMSG, OW_NAMESPACE::StringBuffer::releaseString(), OW_NAMESPACE::Array< T >::size(), and theClass. Referenced by createInstance(), deleteInstance(), and getCIMInstance(). |
|
Update an instance.
Definition at line 359 of file OW_InstanceRepository.cpp. References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::CIMInstance::createModifiedInstance(), OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::GenericHDBRepository::getHandle(), OW_NAMESPACE::CIMInstance::getKeyValuePairs(), hdl, OW_THROWCIMMSG, propertyList, OW_NAMESPACE::Array< T >::size(), theClass, and OW_NAMESPACE::GenericHDBRepository::throwIfNotOpen(). Referenced by OW_NAMESPACE::CIMRepository::modifyInstance(). |