Public Member Functions | Protected Member Functions | Protected Attributes | Friends

cdb::DAONode Class Reference

#include <cdbDAONode.h>

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

List of all members.

Public Member Functions

 DAONode (const char *nodeName, CDB::DAL_ptr dal, PortableServer::POA_ptr poa)
virtual ~DAONode ()
void readConfiguration ()
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 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.
DAOProxym_daoImpl
 DAO implementation.
bool m_remote
 local or remote DAO flag
DALChangeListenerImplementationm_dalChangeListener
 DAL change listener.

Friends

class DALChangeListenerImplementation

Detailed Description

DAL Access implementation.


Constructor & Destructor Documentation

cdb::DAONode::DAONode ( const char *  nodeName,
CDB::DAL_ptr  dal,
PortableServer::POA_ptr  poa 
)

Constrcutor.

Parameters:
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.


Member Function Documentation

void cdb::DAONode::connect ( bool  silent = true  )  [protected]

Connect. Sets the m_daoImpl.

Parameters:
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.

Parameters:
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.

template<class T >
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

Exceptions:
cdbErrType::WrongCDBDataTypeEx 
cdbErrType::CDBFieldDoesNotExistEx 

Reimplemented in cdb::DAOChildNode.

Referenced by cdb::DAOChildNode::getValue().

void cdb::DAONode::readConfiguration (  ) 

Read configuration.


Friends And Related Function Documentation

friend class DALChangeListenerImplementation [friend]

Member Data Documentation

CDB::DAL_var cdb::DAONode::m_dal [protected]

CDB DAL.

DAL change listener.

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


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