oracle.spatial.util
Class JDBCUtil

java.lang.Object
  extended by oracle.spatial.util.JDBCUtil

public class JDBCUtil
extends java.lang.Object


Constructor Summary
JDBCUtil()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCUtil

public JDBCUtil()
Method Detail

getOracleSTRUCT

public static oracle.sql.STRUCT getOracleSTRUCT(java.sql.ResultSet rs,
                                                int columnIndex)
                                         throws java.lang.Exception
Returns oracle.sql.STRUCT while running within WLS or any J2EE container such as OC4J, JBoss etc.

Parameters:
rs - ResultSet
columnIndex - Index of the column
Returns:
Throws:
java.lang.Exception

getOracleSTRUCT

public static oracle.sql.STRUCT getOracleSTRUCT(java.lang.Object o)
                                         throws java.lang.Exception
Returns oracle.sql.STRUCT while running within WLS or any J2EE container such as OC4J, JBoss etc.

Parameters:
o - object in a result set
Returns:
Throws:
java.lang.Exception

safeCastCLOB

public static oracle.sql.CLOB safeCastCLOB(java.sql.ResultSet rs,
                                           int columnIndex)
                                    throws java.lang.Exception
Returns oracle.sql.CLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.

Parameters:
rs -
columnIndex -
Returns:
Throws:
java.lang.Exception

safeCastCLOB

public static oracle.sql.CLOB safeCastCLOB(java.sql.Clob clob)
                                    throws java.lang.Exception
Returns oracle.sql.CLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.

Parameters:
clob - clob in a result set
Returns:
Throws:
java.lang.Exception

safeCastBLOB

public static oracle.sql.BLOB safeCastBLOB(java.sql.ResultSet rs,
                                           int columnIndex)
                                    throws java.lang.Exception
Returns oracle.sql.BLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.

Parameters:
rs -
columnIndex -
Returns:
Throws:
java.lang.Exception

safeCastBLOB

public static oracle.sql.BLOB safeCastBLOB(java.sql.Blob blob)
                                    throws java.lang.Exception
Returns oracle.sql.BLOB while running within WLS or any J2EE container such as OC4J, JBoss etc.

Parameters:
blob - blob in a result set
Returns:
Throws:
java.lang.Exception

safeCastARRAY

public static oracle.sql.ARRAY safeCastARRAY(java.sql.ResultSet rs,
                                             int columnIndex)
                                      throws java.lang.Exception
Returns oracle.sql.ARRAY while running within WLS or any J2EE container such as OC4J, JBoss etc.

Parameters:
rs -
columnIndex -
Returns:
Throws:
java.lang.Exception

safeCastARRAY

public static oracle.sql.ARRAY safeCastARRAY(java.lang.Object o)
                                      throws java.lang.Exception
Returns 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:
Throws:
java.lang.Exception