DBAbstract API Documentation

ro.raducora.utils.props
Interface ClientDBProps

All Superinterfaces:
Props
All Known Implementing Classes:
ClientDBProperties, ClientDBXMLProperties

public interface ClientDBProps
extends Props

Author:
Radu Coravu

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
 
Methods inherited from interface ro.raducora.utils.props.Props
reload
 

Method Detail

getRealDBName

public java.lang.String getRealDBName(java.lang.String dbname)
Gets Real DB Name

Parameters:
dbname - The key to use in search
Returns:
the real db name

getDriverClassName

public java.lang.String getDriverClassName(java.lang.String dbname)
Gets the Driver Class Name

Parameters:
dbname - the key to search
Returns:
the Driver Class Name of form "org.gjt.Driver"

getDriverJarPath

public java.lang.String getDriverJarPath(java.lang.String dbname)
Gets Driver Jar Path

Parameters:
dbname - the key to search
Returns:
Path to the Jar containing the driver ,for example "e:/lib/" or "" if jar file not needed or in current directory

getDriverJarFilename

public java.lang.String getDriverJarFilename(java.lang.String dbname)
Gets Driver Jar Filename

Parameters:
dbname - Key to search
Returns:
File name of jar containing driver class

getServerSubprotocol

public java.lang.String getServerSubprotocol(java.lang.String dbname)
Gets Server Subprotocol for connection to the specific database

Parameters:
dbname - Key to search
Returns:
The server subprotocol ,for example:mysql,pgsql,odbc,mssql

getServerHostname

public java.lang.String getServerHostname(java.lang.String dbname)
Gets Server Hostname

Parameters:
dbname - Key to search
Returns:
the server hostname to connect to (of type ip_addrs,ip_addrs:port,dns_name,localhost)

getMinNoConn

public int getMinNoConn(java.lang.String dbname)
Gets the minimum number of opened pool connetions for the specific key

Parameters:
dbname - Key to search
Returns:
min no of connections in the connection pool for the specific database key

getMaxNoConn

public int getMaxNoConn(java.lang.String dbname)
Gets the maximum number of opened pool connetions for the specific key

Parameters:
dbname - Key to search
Returns:
max no of connections in the connection pool for the specific database key

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.