Classes | Public Member Functions

com.cosylab.cdb.client.CDBAccess Class Reference

List of all members.

Classes

class  ChangeListener

Public Member Functions

 CDBAccess (Logger logger)
 CDBAccess (ORB orb, Logger logger)
DAOProxy createDAO (String curl)
String[] getSubNodes (DAOProxy proxy) throws Throwable
String[] getSubNodes (DAOProxy proxy, String subnode) throws Throwable
void readConfiguration ()
void destroy ()
void setDAL (DAL dal)
DAL getDAL ()
DAL connectAndGetDAL ()

Detailed Description

Class managing CDB access (establishing connection to the CDB, observing DAO changes, and providing accessor methods to the user).

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@

Constructor & Destructor Documentation

com.cosylab.cdb.client.CDBAccess.CDBAccess ( Logger  logger  ) 

Constructor used only when setDAL(DAL) is called afterwards.

Parameters:
logger logger.
com.cosylab.cdb.client.CDBAccess.CDBAccess ( ORB  orb,
Logger  logger 
)

Constructor.

Parameters:
orb CORBA ORB.
logger logger.

References com.cosylab.cdb.client.CDBAccess.readConfiguration().


Member Function Documentation

DAL com.cosylab.cdb.client.CDBAccess.connectAndGetDAL (  ) 

Active (connects if necessary) DAL accessor.

Returns:
DAL reference, null if failed to connect.
DAOProxy com.cosylab.cdb.client.CDBAccess.createDAO ( String  curl  ) 

Performs the connect of the specified DAO.

Parameters:
curl DAO curl, non-null
Returns:
DAO proxy.
Exceptions:
RuntimeException on failure
void com.cosylab.cdb.client.CDBAccess.destroy (  ) 
DAL com.cosylab.cdb.client.CDBAccess.getDAL (  ) 
String [] com.cosylab.cdb.client.CDBAccess.getSubNodes ( DAOProxy  proxy  )  throws Throwable

Helper method to get all subnodes of the current proxy, removes ".xml" element from the list.

Parameters:
proxy proxy whose subnodes to return.
Returns:
array of subnodes.
Exceptions:
Throwable exception on failure (e.g. connection failure, etc.)
String [] com.cosylab.cdb.client.CDBAccess.getSubNodes ( DAOProxy  proxy,
String  subnode 
) throws Throwable

Helper method to get all subnodes of the current proxy, removes ".xml" element from the list.

Parameters:
proxy proxy whose subnodes to return.
subnode proxy subnode to be queried
Returns:
array of subnodes.
Exceptions:
Throwable exception on failure (e.g. connection failure, etc.)
void com.cosylab.cdb.client.CDBAccess.readConfiguration (  ) 

Interprets the configuration delivered by System JVM properties.

Referenced by com.cosylab.cdb.client.CDBAccess.CDBAccess().

void com.cosylab.cdb.client.CDBAccess.setDAL ( DAL  dal  ) 

DAL setter.

Parameters:
dal DAL reference.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties