Package oracle.spatial.util
Class JDBCUtil
- java.lang.Object
-
- oracle.spatial.util.JDBCUtil
-
public class JDBCUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JDBCUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static oracle.sql.STRUCTgetOracleSTRUCT(java.lang.Object o)Returns oracle.sql.STRUCT while running within WLS or any J2EE container such as OC4J, JBoss etc.static oracle.sql.STRUCTgetOracleSTRUCT(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.ARRAYsafeCastARRAY(java.lang.Object o)Returns oracle.sql.ARRAY while running within WLS or any J2EE container such as OC4J, JBoss etc.static oracle.sql.ARRAYsafeCastARRAY(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.BLOBsafeCastBLOB(java.sql.Blob blob)Returns oracle.sql.BLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.static oracle.sql.BLOBsafeCastBLOB(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.CLOBsafeCastCLOB(java.sql.Clob clob)Returns oracle.sql.CLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.static oracle.sql.CLOBsafeCastCLOB(java.sql.ResultSet rs, int columnIndex)Returns oracle.sql.CLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.
-
-
-
Method Detail
-
getOracleSTRUCT
public static oracle.sql.STRUCT getOracleSTRUCT(java.sql.ResultSet rs, int columnIndex) throws java.lang.ExceptionReturns oracle.sql.STRUCT while running within WLS or any J2EE container such as OC4J, JBoss etc.- Parameters:
rs- ResultSetcolumnIndex- Index of the column- Returns:
- STRUCT
- Throws:
java.lang.Exception
-
getOracleSTRUCT
public static oracle.sql.STRUCT getOracleSTRUCT(java.lang.Object o) throws java.lang.ExceptionReturns oracle.sql.STRUCT while running within WLS or any J2EE container such as OC4J, JBoss etc.- Parameters:
o- object in a result set- Returns:
- STRUCT
- Throws:
java.lang.Exception
-
safeCastCLOB
public static oracle.sql.CLOB safeCastCLOB(java.sql.ResultSet rs, int columnIndex) throws java.lang.ExceptionReturns oracle.sql.CLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.- Parameters:
rs-columnIndex-- Returns:
- CLOB
- Throws:
java.lang.Exception
-
safeCastCLOB
public static oracle.sql.CLOB safeCastCLOB(java.sql.Clob clob) throws java.lang.ExceptionReturns oracle.sql.CLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.- Parameters:
clob- clob in a result set- Returns:
- CLOB
- Throws:
java.lang.Exception
-
safeCastBLOB
public static oracle.sql.BLOB safeCastBLOB(java.sql.ResultSet rs, int columnIndex) throws java.lang.ExceptionReturns oracle.sql.BLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.- Parameters:
rs-columnIndex-- Returns:
- BLOB
- Throws:
java.lang.Exception
-
safeCastBLOB
public static oracle.sql.BLOB safeCastBLOB(java.sql.Blob blob) throws java.lang.ExceptionReturns oracle.sql.BLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.- Parameters:
blob- blob in a result set- Returns:
- BLOB
- Throws:
java.lang.Exception
-
safeCastARRAY
public static oracle.sql.ARRAY safeCastARRAY(java.sql.ResultSet rs, int columnIndex) throws java.lang.ExceptionReturns oracle.sql.ARRAY while running within WLS or any J2EE container such as OC4J, JBoss etc.- Parameters:
rs-columnIndex-- Returns:
- ARRAY
- Throws:
java.lang.Exception
-
safeCastARRAY
public static oracle.sql.ARRAY safeCastARRAY(java.lang.Object o) throws java.lang.ExceptionReturns oracle.sql.ARRAY while running within WLS or any J2EE container such as OC4J, JBoss etc.- Parameters:
o- oracle.sql.ARRAY object in a result set- Returns:
- ARRAY
- Throws:
java.lang.Exception
-
-