at.glawar
GlawarDataAdapter [2006-07-04]

at.glawar.gladataadapter
Class GLAOracleDataAdapter

java.lang.Object
  extended byat.glawar.gladataadapter.GLAOracleDataAdapter

public class GLAOracleDataAdapter
extends Object

Provides methods for creating a database connection to an Oracle database.

An jdbc driver is needed (Oracle_9i_R1_JDBC_for_JDK_1_4.jar).

Since:
GLADataAdapter 1.0
Version:
$Revision: 1.8 $ ($Date: 2006/06/01 18:28:36 $)
Author:
DI Franz-Peter Glawar last modified by: $Author: frahunz $, software.glawar.at

Constructor Summary
GLAOracleDataAdapter(String strHost, String strPort, String strDBName, String strUser, String strPassword, String strMaxPooledConnections, String strCacheTimeToLiveTimeout, String strCacheInactivityTimeout, String strThreadWakeUpInterval, String strLoginTimeout)
          Initializes a new instance of GLAOracleDataAdapter.
GLAOracleDataAdapter(String strHost, String strPort, String strDBName, String strUser, String strPassword, String strMaxPooledConnections, String strCacheTimeToLiveTimeout, String strCacheInactivityTimeout, String strThreadWakeUpInterval, String strLoginTimeout, boolean useConnectionPool)
          Initializes a new instance of GLAOracleDataAdapter.
 
Method Summary
 Connection getConnection()
          Gets an actual connection to the Oracle database.
 Connection getNotPooledConnection()
          return unpooled connection.
 Connection getPooledConnection()
          return a pooled connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLAOracleDataAdapter

public GLAOracleDataAdapter(String strHost,
                            String strPort,
                            String strDBName,
                            String strUser,
                            String strPassword,
                            String strMaxPooledConnections,
                            String strCacheTimeToLiveTimeout,
                            String strCacheInactivityTimeout,
                            String strThreadWakeUpInterval,
                            String strLoginTimeout,
                            boolean useConnectionPool)
                     throws SQLException

Initializes a new instance of GLAOracleDataAdapter.

Parameters:
strHost - hostname
strPort - port
strDBName - name of db
strUser - username
strPassword - password
strMaxPooledConnections - max pooled connection which can either be null or containing a valid integer-value
strCacheTimeToLiveTimeout - CacheTimeToLiveTimeout standard is 20
strCacheInactivityTimeout - standard is 30
strThreadWakeUpInterval - standard is 10
strLoginTimeout - standard is 3
useConnectionPool - set this parameter to true if you want to use connection pooling
Throws:
SQLException - if an error occured
Since:
GLADataAdapter 1.0

GLAOracleDataAdapter

public GLAOracleDataAdapter(String strHost,
                            String strPort,
                            String strDBName,
                            String strUser,
                            String strPassword,
                            String strMaxPooledConnections,
                            String strCacheTimeToLiveTimeout,
                            String strCacheInactivityTimeout,
                            String strThreadWakeUpInterval,
                            String strLoginTimeout)
                     throws SQLException

Initializes a new instance of GLAOracleDataAdapter.

connection pooling is activated.

Parameters:
strHost - hostname
strPort - port
strDBName - name of db
strUser - username
strPassword - password
strMaxPooledConnections - max pooled connection which can either be null or containing a valid integer-value
strCacheTimeToLiveTimeout - CacheTimeToLiveTimeout standard is 20
strCacheInactivityTimeout - standard is 30
strThreadWakeUpInterval - standard is 10
strLoginTimeout - standard is 3
Throws:
SQLException - if an error occured
Since:
2006-05-07
Method Detail

getConnection

public Connection getConnection()

Gets an actual connection to the Oracle database.

if m_isPooled is set to true which means you want to use pooled connection and if no pooled connection is available an unpooled connection will be returned.

Returns:
Connection object
Since:
2006-05-05

getPooledConnection

public Connection getPooledConnection()

return a pooled connection.

Returns:
pooled connection
Since:
2006-05-05

getNotPooledConnection

public Connection getNotPooledConnection()

return unpooled connection.

Returns:
unpooled connection
Since:
2006-05-05

software.glawar.at

Developed by software.glawar.at