<< Click to Display Table of Contents >>

ConnectionPoolInfo

This class provides methods to get the information about database connection.


Method Detail

getAlias

public String getAlias()

Gets the alias of the connection.

setAlias

public void setAlias(String _alias)

Sets the alias of the connection.

Parameters:

_alias - Alias

getVendor

public String getVendor()

Gets the vendor name of the connection.

setVendor

public void setVendor(String vendorName)

Sets the vendor name of the connection.

Parameters:

vendorName - DB Vendor name

getDriver

public String getDriver()

Gets the Driver name of the connection.

setDriver

public void setDriver(String _driver)

Sets the Driver name of the connection.

Parameters:

_driver - Driver name

getURL

public String getURL()

Gets the URL of the connection.

setURL

public void setURL(String _url)

Sets the URL of the connection.

Parameters:

_url - URL

getInitConns

public int getInitConns()

Gets the initial number of connections.

setInitConns

public void setInitConns(int _initConns)

Sets the initial number of connections.

Parameters:

_initConns - Initial connections

getMaxConns

public int getMaxConns()

Gets the maximum number of connections.

setMaxConns

public void setMaxConns(int _maxConns)

Sets the maximum number of connections.

Parameters:

_maxConns - Maximum connections

getTimeout

public int getTimeout()

Gets the connection timeout in sec.

setTimeout

public void setTimeout(int _timeout)

Sets the connection timeout.

Parameters:

_timeout - connection timeout

getDoConnectionCheck

public boolean getDoConnectionCheck()

Gets status of connection validity check

setDoConnectionCheck

public void setDoConnectionCheck(boolean _check)

Sets status of connection validity check.

Parameters:

_check - Check status

getTestQueryString

public String getTestQueryString()

Gets the query to test connection.

setTestQueryString

public void setTestQueryString(String _testQuery)

Sets the query to test connection.

Parameters:

_testQuery - Query to test connection

getInitSqls

public String getInitSqls()

Gets the initial query to execute after connection open.

setInitSqls

public void setInitSqls(String _initQuery)

Sets the initial query to execute after connection open.

Parameters:

_initQuery - Initial query

getCloseSqls

public String getCloseSqls()

Gets the query to execute before closing or freeing a connection.

setCloseSqls

public void setCloseSqls(String _closeQuery)

Sets the query to execute before closing or freeing a connection.

Parameters:

_closeQuery - Closing query

getSessionQuery

public String getSessionQuery()

Gets the session query of a connection.

setSessionQuery

public void setSessionQuery(String _sessionQuery)

Sets the session query of a connection.

Parameters:

_sessionQuery - Session query

getAutoCommit

public String getAutoCommit()

Gets AutoCommit status.

setAutoCommit

public void setAutoCommit(String _commit)

Sets AutoCommit status.

Parameters:

_commit - AutoCommit status: "true" or "false"

getProperties

public Properties getProperties()

Gets the property value.

setProperties

public void setProperties(Properties _props)

Sets the property value.

Parameters:

_props - properties

getKey

public String getKey()

Gets the unique Key of the connection. Default key value is Combination of Items Key of the vendor in dbconfig.xml file

setKey

public void setKey(String _key)

Sets the unique Key of the connection. Setting user defined key value other than default key value is not recommended.

Parameters:

_key - Key value

getItems

public HashMap getItems()

Gets Item <key,value> of the vendor in dbconfig.xml.

setItems

public void setItems(String _map)

Sets Item <key,value> of the vendor in dbconfig.xml.

Parameters:

_map - Key value

getDecodeCharSet

public void getDecodeCharSet()

Gets the decoding set for the corresponding ConnectionPool.

setDecodeCharSet

public void setDecodeCharSet(String decode)

Sets the decoding set for the corresponding ConnectionPool.

Parameters:

decode - Decoding set for the ConnectionPool

getEncodeCharSet

public String getEncodeCharSet()

Gets the encoding set for the corresponding ConenctionPool.

setEncodeCharSet

public void setEncodeCharSet(String encode)

Sets the encoding set for the corresponding ConnectionPool.

Parameters:

encode - Encoding set for the ConnectionPool

getFetchRow

public int getFetchRow()

Gets the number of JDBC result set rows to get by one time.

setFetchRow

public void setFetchRow(int rows)

Sets the number of JDBC result set rows to get by one time.

Parameters:

rows - Row count