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