public class JDBCUtil
extends java.lang.Object
Constructor and Description |
---|
JDBCUtil() |
Modifier and Type | Method and Description |
---|---|
static STRUCT |
getOracleSTRUCT(java.lang.Object o)
Returns oracle.sql.STRUCT while running within WLS or any J2EE container such as OC4J, JBoss etc.
|
static STRUCT |
getOracleSTRUCT(java.sql.ResultSet rs, int columnIndex)
Returns oracle.sql.STRUCT while running within WLS or any J2EE container such as OC4J, JBoss etc.
|
static ARRAY |
safeCastARRAY(java.lang.Object o)
Returns oracle.sql.ARRAY while running within WLS or any J2EE container such as OC4J, JBoss etc.
|
static ARRAY |
safeCastARRAY(java.sql.ResultSet rs, int columnIndex)
Returns oracle.sql.ARRAY while running within WLS or any J2EE container such as OC4J, JBoss etc.
|
static BLOB |
safeCastBLOB(java.sql.Blob blob)
Returns oracle.sql.BLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.
|
static BLOB |
safeCastBLOB(java.sql.ResultSet rs, int columnIndex)
Returns oracle.sql.BLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.
|
static CLOB |
safeCastCLOB(java.sql.Clob clob)
Returns oracle.sql.CLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.
|
static CLOB |
safeCastCLOB(java.sql.ResultSet rs, int columnIndex)
Returns oracle.sql.CLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.
|
public static STRUCT getOracleSTRUCT(java.sql.ResultSet rs, int columnIndex) throws java.lang.Exception
rs
- ResultSetcolumnIndex
- Index of the columnjava.lang.Exception
public static STRUCT getOracleSTRUCT(java.lang.Object o) throws java.lang.Exception
o
- object in a result setjava.lang.Exception
public static CLOB safeCastCLOB(java.sql.ResultSet rs, int columnIndex) throws java.lang.Exception
rs
-columnIndex
-java.lang.Exception
public static CLOB safeCastCLOB(java.sql.Clob clob) throws java.lang.Exception
clob
- clob in a result setjava.lang.Exception
public static BLOB safeCastBLOB(java.sql.ResultSet rs, int columnIndex) throws java.lang.Exception
rs
-columnIndex
-java.lang.Exception
public static BLOB safeCastBLOB(java.sql.Blob blob) throws java.lang.Exception
blob
- blob in a result setjava.lang.Exception
public static ARRAY safeCastARRAY(java.sql.ResultSet rs, int columnIndex) throws java.lang.Exception
rs
-columnIndex
-java.lang.Exception
public static ARRAY safeCastARRAY(java.lang.Object o) throws java.lang.Exception
o
- oracle.sql.ARRAY object in a result setjava.lang.Exception