com.retek.commons.domain.core.persistence.db
Class DbOperation

java.lang.Object
  extended bycom.retek.commons.domain.core.persistence.db.DbOperation
Direct Known Subclasses:
DbOperationTester, NewOracleSequenceRetriever, NewOracleSysdateRetriever

public abstract class DbOperation
extends java.lang.Object


Field Summary
static long DUMMY_VERSION_UNTIL_VERSION_COLUMN_ADDED
           
 
Constructor Summary
DbOperation(java.sql.Connection connectionVal)
          Use this constructor if you are in a dao level operation.
DbOperation(java.sql.Connection connectionVal, boolean autoClose)
          Deprecated. Use one of the other two constructors. This method is unsafe as you must close() if you set autoclose false.
DbOperation(DbOperation parentDbOperation)
          Use this constructor if you are already within an operation.
 
Method Summary
protected  void checkUpdate(com.retek.commons.component.impl.Dto workingDto, int numRowsUpdated, java.lang.String tablename, java.lang.String idColumnName)
           
 void close()
           
protected abstract  void doPerform()
           
protected  java.sql.CallableStatement getCallableStatement(java.lang.String sql)
           
protected  java.sql.Connection getConnection()
           
protected  RetekPreparedStatement getRetekPreparedStatement(java.lang.String sql)
           
 java.sql.Statement getStatement()
           
protected  void perform()
           
protected  void setInitialState(java.lang.String stateCode, RcomRmmFsmable fsmable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUMMY_VERSION_UNTIL_VERSION_COLUMN_ADDED

public static final long DUMMY_VERSION_UNTIL_VERSION_COLUMN_ADDED
See Also:
Constant Field Values
Constructor Detail

DbOperation

public DbOperation(java.sql.Connection connectionVal)
Use this constructor if you are in a dao level operation.

Parameters:
connectionVal - The connection the operation should use.

DbOperation

public DbOperation(java.sql.Connection connectionVal,
                   boolean autoClose)
Deprecated. Use one of the other two constructors. This method is unsafe as you must close() if you set autoclose false.

Parameters:
connectionVal -
autoClose -

DbOperation

public DbOperation(DbOperation parentDbOperation)
Use this constructor if you are already within an operation.

Method Detail

getConnection

protected final java.sql.Connection getConnection()

getCallableStatement

protected final java.sql.CallableStatement getCallableStatement(java.lang.String sql)
                                                         throws SystemException,
                                                                java.sql.SQLException
Throws:
SystemException
java.sql.SQLException

getRetekPreparedStatement

protected final RetekPreparedStatement getRetekPreparedStatement(java.lang.String sql)
                                                          throws SystemException,
                                                                 java.sql.SQLException
Throws:
SystemException
java.sql.SQLException

getStatement

public java.sql.Statement getStatement()
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

perform

protected final void perform()
                      throws SystemException
Throws:
SystemException

doPerform

protected abstract void doPerform()
                           throws SystemException,
                                  java.sql.SQLException,
                                  java.lang.ClassNotFoundException
Throws:
SystemException
java.sql.SQLException
java.lang.ClassNotFoundException

close

public void close()

setInitialState

protected void setInitialState(java.lang.String stateCode,
                               RcomRmmFsmable fsmable)
                        throws SystemException
Throws:
SystemException

checkUpdate

protected void checkUpdate(com.retek.commons.component.impl.Dto workingDto,
                           int numRowsUpdated,
                           java.lang.String tablename,
                           java.lang.String idColumnName)
                    throws java.sql.SQLException,
                           SystemException
Throws:
java.sql.SQLException
SystemException


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25