Class GeorUtil


  • public class GeorUtil
    extends java.lang.Object
    Since:
    release specific (what release of product did this appear in)
    • Constructor Summary

      Constructors 
      Constructor Description
      GeorUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static oracle.jdbc.OracleCallableStatement getOracleCallableStatement​(java.sql.CallableStatement callableStatement)
      This method takes a CallableStatement and return a OracleCallableStatement.
      static oracle.jdbc.OracleConnection getOracleConnection​(java.sql.Connection connection)
      This method takes a Connection and return a OracleConnection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeorUtil

        public GeorUtil()
    • Method Detail

      • getOracleConnection

        public static oracle.jdbc.OracleConnection getOracleConnection​(java.sql.Connection connection)
                                                                throws java.sql.SQLException
        This method takes a Connection and return a OracleConnection. When running inside a container like Tomcat or WebLogic the connection object can't be directly casted, unwrap should be invoked and this methods does it.
        Parameters:
        connection - an instance of java.sql.Connection
        Returns:
        an OracleConnection instance.
        Throws:
        java.sql.SQLException - When an OracleConnection can't be returned.
      • getOracleCallableStatement

        public static oracle.jdbc.OracleCallableStatement getOracleCallableStatement​(java.sql.CallableStatement callableStatement)
                                                                              throws java.sql.SQLException
        This method takes a CallableStatement and return a OracleCallableStatement. When running inside a container like Tomcat or WebLogic the connection object can't be directly casted, unwrap should be invoked and this methods does it.
        Parameters:
        callableStatement - an instance of java.sql.Connection
        Returns:
        an OracleCallableStatement instance.
        Throws:
        java.sql.SQLException - When an OracleConnection can't be returned.