|
DBAbstract API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ro.raducora.utils.props.xml.ClientDBXMLProperties
Constructor Summary | |
ClientDBXMLProperties()
Default Constructor takes as default properties filename path ". |
|
ClientDBXMLProperties(java.lang.String filename)
|
Method Summary | |
java.lang.String |
getDriverClassName(java.lang.String dbname)
Gets the Driver Class Name |
java.lang.String |
getDriverJarFilename(java.lang.String dbname)
Gets Driver Jar Filename |
java.lang.String |
getDriverJarPath(java.lang.String dbname)
Gets Driver Jar Path |
int |
getMaxNoConn(java.lang.String dbname)
Gets the maximum number of opened pool connetions for the specific key |
int |
getMinNoConn(java.lang.String dbname)
Gets the minimum number of opened pool connetions for the specific key |
java.lang.String |
getRealDBName(java.lang.String dbname)
Gets Real DB Name |
java.lang.String |
getServerHostname(java.lang.String dbname)
Gets Server Hostname |
java.lang.String |
getServerSubprotocol(java.lang.String dbname)
Gets Server Subprotocol for connection to the specific database |
void |
reload()
Reloads the Properties from properties Source |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientDBXMLProperties() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
"./conf/ClientDB.xml"
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public ClientDBXMLProperties(java.lang.String filename) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
filename
- the properties filename
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
Method Detail |
public java.lang.String getRealDBName(java.lang.String dbname)
ClientDBProps
getRealDBName
in interface ClientDBProps
dbname
- The key to use in search
ClientDBProps.getRealDBName(java.lang.String)
public java.lang.String getServerHostname(java.lang.String dbname)
ClientDBProps
getServerHostname
in interface ClientDBProps
dbname
- Key to search
server hostname
to connect to (of type
ip_addrs,ip_addrs:port,dns_name,localhost)ClientDBProps.getServerHostname(java.lang.String)
public java.lang.String getDriverClassName(java.lang.String dbname)
ClientDBProps
getDriverClassName
in interface ClientDBProps
dbname
- the key to search
ClientDBProps.getDriverClassName(java.lang.String)
public java.lang.String getDriverJarPath(java.lang.String dbname)
ClientDBProps
getDriverJarPath
in interface ClientDBProps
dbname
- the key to search
ClientDBProps.getDriverJarPath(java.lang.String)
public java.lang.String getDriverJarFilename(java.lang.String dbname)
ClientDBProps
getDriverJarFilename
in interface ClientDBProps
dbname
- Key to search
ClientDBProps.getDriverJarFilename(java.lang.String)
public java.lang.String getServerSubprotocol(java.lang.String dbname)
ClientDBProps
getServerSubprotocol
in interface ClientDBProps
dbname
- Key to search
ClientDBProps.getServerSubprotocol(java.lang.String)
public int getMinNoConn(java.lang.String dbname)
ClientDBProps
getMinNoConn
in interface ClientDBProps
dbname
- Key to search
ClientDBProps.getMinNoConn(java.lang.String)
public int getMaxNoConn(java.lang.String dbname)
ClientDBProps
getMaxNoConn
in interface ClientDBProps
dbname
- Key to search
ClientDBProps.getMaxNoConn(java.lang.String)
public void reload() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
Props
reload
in interface Props
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
Props.reload()
|
DBAbstract API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |