com.instantbank.common.utilcomponents
Class SqlUtils
java.lang.Object
|
+--com.instantbank.common.utilcomponents.SqlUtils
- public class SqlUtils
- extends java.lang.Object
Method Summary |
static long |
getActionCodeFieldIndex(java.sql.Connection dbConnection,
java.lang.String sActionCode,
long lCompID)
|
static long |
getAgreementCodeFieldIndex(java.sql.Connection dbConnection)
|
static java.lang.Long |
getAgreementId(java.sql.Connection dbConnection,
long lCompID,
long lAgrmCode)
|
static long |
getLetterTemplateIndex(java.sql.Connection dbConnection,
java.lang.String sLetterCode,
long lCompID)
|
static long |
getResultCodeFieldIndex(java.sql.Connection dbConnection,
java.lang.String sResultCode,
long lCompID)
|
static long |
nextOracleSequence(java.sql.Connection con,
boolean closeConnection,
java.lang.String sequenceName)
10302002 tjm - given some database connection, returns the next Oracle
sequence value from a sequence table |
static void |
release(java.sql.Connection con,
java.sql.PreparedStatement ps,
java.sql.ResultSet rs)
Very commonly-used routine |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
SqlUtils
private SqlUtils()
release
public static void release(java.sql.Connection con,
java.sql.PreparedStatement ps,
java.sql.ResultSet rs)
throws java.sql.SQLException
- Very commonly-used routine
- Parameters:
con
- Description of the Parameterps
- Description of the Parameterrs
- Description of the Parameter- Throws:
java.sql.SQLException
- Description of the Exception
nextOracleSequence
public static final long nextOracleSequence(java.sql.Connection con,
boolean closeConnection,
java.lang.String sequenceName)
throws java.sql.SQLException
- 10302002 tjm - given some database connection, returns the next Oracle
sequence value from a sequence table
- Parameters:
con
- Description of the ParametercloseConnection
- Description of the ParametersequenceName
- Description of the Parameter- Returns:
- Description of the Return Value
- Throws:
java.sql.SQLException
- Description of the Exception
getAgreementCodeFieldIndex
public static final long getAgreementCodeFieldIndex(java.sql.Connection dbConnection)
throws DAOException
getActionCodeFieldIndex
public static final long getActionCodeFieldIndex(java.sql.Connection dbConnection,
java.lang.String sActionCode,
long lCompID)
throws DAOException
getResultCodeFieldIndex
public static final long getResultCodeFieldIndex(java.sql.Connection dbConnection,
java.lang.String sResultCode,
long lCompID)
throws DAOException
getLetterTemplateIndex
public static final long getLetterTemplateIndex(java.sql.Connection dbConnection,
java.lang.String sLetterCode,
long lCompID)
throws DAOException
getAgreementId
public static final java.lang.Long getAgreementId(java.sql.Connection dbConnection,
long lCompID,
long lAgrmCode)
throws DAOException