Public Member Functions | Protected Attributes

cdb::DAOChildNode Class Reference

#include <cdbDAONode.h>

Inheritance diagram for cdb::DAOChildNode:
Inheritance graph
[legend]
Collaboration diagram for cdb::DAOChildNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DAOChildNode (DAONode *parent, const char *childName)
virtual ~DAOChildNode ()
DAONodecreateDAONode (const char *nodeName)
DAONodecreateChild (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 >
getValue (const char *propertyName)
virtual void destroy ()

Protected Attributes

DAONodem_parent
 Parent instance (delegate).
std::string m_childName
 Child name (prefix).
std::string m_childNamePrefix
 Prefix with hierarchy delimiter.

Detailed Description

Child DAL Access implementation.


Constructor & Destructor Documentation

cdb::DAOChildNode::DAOChildNode ( DAONode parent,
const char *  childName 
)

Constrcutor.

Parameters:
parent parent DAONode node.
childNamen child name, prefix to propertyNames (concated string is then delegated to parent).
virtual cdb::DAOChildNode::~DAOChildNode (  )  [virtual]

Destructor.


Member Function Documentation

DAONode* cdb::DAOChildNode::createChild ( const char *  childName  ) 

Create child DAO. Prefixing all reuqests with child name and delegating it to this instance).

Reimplemented from cdb::DAONode.

DAONode* cdb::DAOChildNode::createDAONode ( const char *  nodeName  ) 

Create DAO using current DAL.

Parameters:
nodeName name of the CDB node (DAO) to be created.

Reimplemented from cdb::DAONode.

virtual void cdb::DAOChildNode::destroy (  )  [virtual]

Reimplemented from cdb::DAONode.

virtual CORBA::Double cdb::DAOChildNode::get_double ( const char *  propertyName  )  [virtual]

Reimplemented from cdb::DAONode.

virtual ::CDB::doubleSeq* cdb::DAOChildNode::get_double_seq ( const char *  propertyName  ) 

Reimplemented from cdb::DAONode.

virtual char* cdb::DAOChildNode::get_field_data ( const char *  propertyName  )  [virtual]

Reimplemented from cdb::DAONode.

virtual CORBA::Long cdb::DAOChildNode::get_long ( const char *  propertyName  )  [virtual]

Reimplemented from cdb::DAONode.

virtual ::CDB::longSeq* cdb::DAOChildNode::get_long_seq ( const char *  propertyName  ) 

Reimplemented from cdb::DAONode.

virtual char* cdb::DAOChildNode::get_string ( const char *  propertyName  )  [virtual]

Reimplemented from cdb::DAONode.

virtual ::CDB::stringSeq* cdb::DAOChildNode::get_string_seq ( const char *  propertyName  ) 

Reimplemented from cdb::DAONode.

template<class T >
T cdb::DAOChildNode::getValue ( const char *  propertyName  )  [inline]

template version of getter method, which is used mostly in baci It is specialized for baci (scalar) types

Exceptions:
cdbErrType::WrongCDBDataTypeEx 
cdbErrType::CDBFieldDoesNotExistEx 

Reimplemented from cdb::DAONode.

References cdb::DAONode::getValue(), and m_parent.


Member Data Documentation

std::string cdb::DAOChildNode::m_childName [protected]

Child name (prefix).

std::string cdb::DAOChildNode::m_childNamePrefix [protected]

Prefix with hierarchy delimiter.

Parent instance (delegate).

Referenced by getValue().


The documentation for this class was generated from the following file: