#include <cdbDAONode.h>
Public Member Functions | |
DAONode (const char *nodeName, CDB::DAL_ptr dal, PortableServer::POA_ptr poa) | |
virtual | ~DAONode () |
void | readConfiguration () |
DAONode * | createDAONode (const char *nodeName) |
DAONode * | createChild (const char *childName) |
virtual CORBA::Long | get_long (const char *propertyName) |
virtual CORBA::Double | get_double (const char *propertyName) |
virtual char * | get_string (const char *propertyName) |
virtual char * | get_field_data (const char *propertyName) |
virtual ::CDB::stringSeq * | get_string_seq (const char *propertyName) |
virtual ::CDB::longSeq * | get_long_seq (const char *propertyName) |
virtual ::CDB::doubleSeq * | get_double_seq (const char *propertyName) |
template<class T > | |
T | getValue (const char *propertyName) |
virtual void | destroy () |
Protected Member Functions | |
DAONode () | |
void | connect (bool silent=true) |
Protected Attributes | |
std::string | m_name |
DAO CURL (name). | |
CDB::DAL_var | m_dal |
CDB DAL. | |
PortableServer::POA_var | m_poa |
CORBA POA. | |
DAOProxy * | m_daoImpl |
DAO implementation. | |
bool | m_remote |
local or remote DAO flag | |
DALChangeListenerImplementation * | m_dalChangeListener |
DAL change listener. | |
Friends | |
class | DALChangeListenerImplementation |
DAL Access implementation.
cdb::DAONode::DAONode | ( | const char * | nodeName, | |
CDB::DAL_ptr | dal, | |||
PortableServer::POA_ptr | poa | |||
) |
Constrcutor.
nodeName | name of the CDB node (DAO) to be created. | |
dal | CDB DAL. | |
poa | POA to be used to activate CORBA object (SYSTEM_ID). |
virtual cdb::DAONode::~DAONode | ( | ) | [virtual] |
Destructor.
cdb::DAONode::DAONode | ( | ) | [protected] |
Default constructor.
void cdb::DAONode::connect | ( | bool | silent = true |
) | [protected] |
Connect. Sets the m_daoImpl.
silent | exception reporting flag, if true exception will be thrown if connect fails |
DAONode* cdb::DAONode::createChild | ( | const char * | childName | ) |
Create child DAO. Prefixing all reuqests with child name and delegating it to this instance).
Reimplemented in cdb::DAOChildNode.
DAONode* cdb::DAONode::createDAONode | ( | const char * | nodeName | ) |
Create DAO using current DAL.
nodeName | name of the CDB node (DAO) to be created. |
Reimplemented in cdb::DAOChildNode.
virtual void cdb::DAONode::destroy | ( | ) | [virtual] |
Reimplemented in cdb::DAOChildNode.
virtual CORBA::Double cdb::DAONode::get_double | ( | const char * | propertyName | ) | [virtual] |
Reimplemented in cdb::DAOChildNode.
virtual ::CDB::doubleSeq* cdb::DAONode::get_double_seq | ( | const char * | propertyName | ) |
Reimplemented in cdb::DAOChildNode.
virtual char* cdb::DAONode::get_field_data | ( | const char * | propertyName | ) | [virtual] |
Reimplemented in cdb::DAOChildNode.
virtual CORBA::Long cdb::DAONode::get_long | ( | const char * | propertyName | ) | [virtual] |
Reimplemented in cdb::DAOChildNode.
virtual ::CDB::longSeq* cdb::DAONode::get_long_seq | ( | const char * | propertyName | ) |
Reimplemented in cdb::DAOChildNode.
virtual char* cdb::DAONode::get_string | ( | const char * | propertyName | ) | [virtual] |
Reimplemented in cdb::DAOChildNode.
virtual ::CDB::stringSeq* cdb::DAONode::get_string_seq | ( | const char * | propertyName | ) |
Reimplemented in cdb::DAOChildNode.
T cdb::DAONode::getValue | ( | const char * | propertyName | ) |
template version of getter method, which is used mostly in baci It is specialized for baci (scalar) types
cdbErrType::WrongCDBDataTypeEx | ||
cdbErrType::CDBFieldDoesNotExistEx |
Reimplemented in cdb::DAOChildNode.
Referenced by cdb::DAOChildNode::getValue().
void cdb::DAONode::readConfiguration | ( | ) |
Read configuration.
friend class DALChangeListenerImplementation [friend] |
CDB::DAL_var cdb::DAONode::m_dal [protected] |
CDB DAL.
DAL change listener.
DAOProxy* cdb::DAONode::m_daoImpl [protected] |
DAO implementation.
std::string cdb::DAONode::m_name [protected] |
DAO CURL (name).
PortableServer::POA_var cdb::DAONode::m_poa [protected] |
CORBA POA.
bool cdb::DAONode::m_remote [protected] |
local or remote DAO flag