|
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.properties.ClientDBProperties
Constructor Summary | |
ClientDBProperties()
Uses default properties filename path ". |
|
ClientDBProperties(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)
Get jar filename |
java.lang.String |
getDriverJarPath(java.lang.String dbname)
Gets Driver Jar path |
int |
getMaxNoConn(java.lang.String dbname)
Get min no of connections for dbname. |
int |
getMinNoConn(java.lang.String dbname)
Get min no of connections for dbname. |
java.lang.String |
getRealDBName(java.lang.String dbname)
Get Real DB Name with aid of key. |
java.lang.String |
getServerHostname(java.lang.String dbname)
Gets the Server Hostname |
java.lang.String |
getServerSubprotocol(java.lang.String dbname)
Get Server Subprotocol. |
void |
reload()
Reloads Properties from file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientDBProperties() throws java.io.FileNotFoundException, java.io.IOException
"./conf/ClientDB.properties"
public ClientDBProperties(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
filename
- properties filename
Method Detail |
public java.lang.String getRealDBName(java.lang.String dbname)
getRealDBName
in interface ClientDBProps
dbname
- The key to use in search
public java.lang.String getServerHostname(java.lang.String dbname)
getServerHostname
in interface ClientDBProps
dbname
- Key to search
server hostname
to connect to (of type
ip_addrs,ip_addrs:port,dns_name,localhost)public java.lang.String getDriverClassName(java.lang.String dbname)
getDriverClassName
in interface ClientDBProps
dbname
- the key to search
public java.lang.String getDriverJarPath(java.lang.String dbname)
getDriverJarPath
in interface ClientDBProps
dbname
- the key to search
public java.lang.String getDriverJarFilename(java.lang.String dbname)
getDriverJarFilename
in interface ClientDBProps
dbname
- Key to search
public java.lang.String getServerSubprotocol(java.lang.String dbname)
getServerSubprotocol
in interface ClientDBProps
dbname
- Key to search
public int getMinNoConn(java.lang.String dbname)
getMinNoConn
in interface ClientDBProps
dbname
- Key to search
public int getMaxNoConn(java.lang.String dbname)
getMaxNoConn
in interface ClientDBProps
dbname
- Key to search
public void reload() throws java.io.FileNotFoundException, java.io.IOException
reload
in interface Props
java.io.FileNotFoundException
java.io.IOException
|
DBAbstract API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |