com.objectwave.persist.broker
Class OracleConnection

java.lang.Object
  |
  +--com.objectwave.persist.broker.RDBConnection
        |
        +--com.objectwave.persist.broker.OracleConnection

public class OracleConnection
extends RDBConnection

This class allows for specific customization of the connection between the OracleBroker and the OracleDatabase.

Version:
$Id: OracleConnection.java,v 2.1 2001/06/13 23:39:30 dave_hoag Exp $
Author:
Dave Hoag

Field Summary
 
Fields inherited from class com.objectwave.persist.broker.RDBConnection
cachedCount, cachedStatements, cachedUpdateStmt, connection, connectionSource, connectUrl, doInsert, insrtProp, inTransaction, lastResultSet, manageTransaction, metrics, metricsProp, needsExplicitBegin, objArrays, password, pool, poolBroker, sqlStatementCount, supportsTransaction, thread, userName, verbose, verbProp
 
Method Summary
 void alterVendorConnection(java.sql.Connection con)
          Establish the connection to the database.
protected  int getBatchSize()
          Method assumes a check to see if useBatch was null before this method was invoked.
 void setBrokerProperty(BrokerPropertyIF b)
          The ability to support properties other than System.getProperties();
protected  boolean tryAgain(int errorCode)
          There may be error codes that mean the connection should simply try the statement a second time.
 
Methods inherited from class com.objectwave.persist.broker.RDBConnection
addStatement, beginTransaction, checkConnection, clearConnection, commit, execSql, executeQuery, finalize, findExecSql, findExecSql, freeConnection, getDatabaseMetaData, getDefaultConnectionSource, getLastResultSet, getObjectArrays, getObjectPoolBroker, getPool, getThread, initialize, isInTransaction, nextPrimaryKey, preparedUpdateSql, rollback, setConnection, setConnectionSource, setObjectPoolBroker, setThread, updateExecSql, updateStatement
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setBrokerProperty

public void setBrokerProperty(BrokerPropertyIF b)
Description copied from class: RDBConnection
The ability to support properties other than System.getProperties();

Overrides:
setBrokerProperty in class RDBConnection
Parameters:
b - The new BrokerProperty value

getBatchSize

protected int getBatchSize()
Method assumes a check to see if useBatch was null before this method was invoked. If useBatch is null, this method should not be used.

Returns:
int value of the useBatch property

alterVendorConnection

public void alterVendorConnection(java.sql.Connection con)
                           throws java.sql.SQLException
Establish the connection to the database.

Overrides:
alterVendorConnection in class RDBConnection
Parameters:
con -
Throws:
java.sql.SQLException

tryAgain

protected boolean tryAgain(int errorCode)
Description copied from class: RDBConnection
There may be error codes that mean the connection should simply try the statement a second time.

Overrides:
tryAgain in class RDBConnection
Parameters:
errorCode -
Returns: