public class CDBAccess
extends java.lang.Object
It retrieves and caches XML data from the CDB unless property DAO.remote is true.
| Constructor and Description |
|---|
CDBAccess(java.util.logging.Logger logger)
Constructor used only when
setDAL(DAL) is called afterwards. |
CDBAccess(org.omg.CORBA.ORB orb,
java.util.logging.Logger logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DAL |
connectAndGetDAL()
Active (connects if necessary) DAL accessor.
|
DAOProxy |
createDAO(java.lang.String curl)
Performs the connect of the specified DAO.
|
void |
destroy()
Destroys.
|
DAL |
getDAL()
DAL accessor.
|
java.lang.String[] |
getSubNodes(DAOProxy proxy)
Helper method to get all subnodes of the current proxy, removes ".xml" element from the list.
|
java.lang.String[] |
getSubNodes(DAOProxy proxy,
java.lang.String subnode)
Helper method to get all subnodes of the current proxy, removes ".xml" element from the list.
|
boolean |
isBypassNameService() |
void |
readConfiguration()
Interprets the configuration delivered by System JVM properties.
|
void |
setBypassNameService(boolean bypassNameService) |
void |
setDAL(DAL dal)
DAL setter.
|
public CDBAccess(java.util.logging.Logger logger)
setDAL(DAL) is called afterwards.logger - logger.public CDBAccess(org.omg.CORBA.ORB orb,
java.util.logging.Logger logger)
orb - CORBA ORB.logger - logger.public DAOProxy createDAO(java.lang.String curl)
curl - DAO curl, non-nulljava.lang.RuntimeException - on failurepublic boolean isBypassNameService()
public void setBypassNameService(boolean bypassNameService)
bypassNameService - the bypassNameService to setpublic java.lang.String[] getSubNodes(DAOProxy proxy) throws java.lang.Throwable
proxy - proxy whose subnodes to return.java.lang.Throwable - exception on failure (e.g. connection failure, etc.)public java.lang.String[] getSubNodes(DAOProxy proxy, java.lang.String subnode) throws java.lang.Throwable
proxy - proxy whose subnodes to return.subnode - proxy subnode to be queriedjava.lang.Throwable - exception on failure (e.g. connection failure, etc.)public void readConfiguration()
public void destroy()
public void setDAL(DAL dal)
dal - DAL reference.public DAL getDAL()
public DAL connectAndGetDAL()
null if failed to connect.