Class BabelfishCallableStatement


  • public abstract class BabelfishCallableStatement
    extends BabelfishPreparedStatement
    Proxy Superclass for java.sql.CallableStatement interface. It is used by the Oracle JDBC proxy library to proxify java.sql.CallableStatement objects to support the auto translation features.
    • Constructor Detail

      • BabelfishCallableStatement

        public BabelfishCallableStatement()
    • Method Detail

      • translateError

        protected java.lang.Object translateError​(java.lang.reflect.Method m,
                                                  java.sql.SQLException ex)
                                           throws java.sql.SQLException
        Interceptor for translation of errors.
        Overrides:
        translateError in class BabelfishPreparedStatement
        Returns:
        Throws:
        java.sql.SQLException
      • post_Methods

        protected java.lang.Object post_Methods​(java.lang.reflect.Method m,
                                                java.lang.Object result)
        Post interceptor. sets up the translator in relevant objects required for handling error translation in those objects.
        Overrides:
        post_Methods in class BabelfishPreparedStatement
        Returns:
      • registerOutParameter

        public void registerOutParameter​(int parameterIndex,
                                         int sqlType)
                                  throws java.sql.SQLException
        Translation compliant implementation of java.sql.CallableStatement#registerOutParameter(int, int)
        Parameters:
        parameterIndex -
        sqlType -
        Throws:
        java.sql.SQLException
        See Also:
        CallableStatement.registerOutParameter(int, int)
      • registerOutParameter

        public void registerOutParameter​(int parameterIndex,
                                         int sqlType,
                                         int scale)
                                  throws java.sql.SQLException
        Translation compliant implementation of java.sql.CallableStatement#registerOutParameter(int, int, int)
        Parameters:
        parameterIndex -
        sqlType -
        scale -
        Throws:
        java.sql.SQLException
        See Also:
        CallableStatement.registerOutParameter(int, int, int)
      • registerOutParameter

        public void registerOutParameter​(int parameterIndex,
                                         int sqlType,
                                         java.lang.String typeName)
                                  throws java.sql.SQLException
        Translation compliant implementation of java.sql.CallableStatement#registerOutParameter(int, int, java.lang.String)
        Parameters:
        parameterIndex -
        sqlType -
        typeName -
        Throws:
        java.sql.SQLException
        See Also:
        CallableStatement.registerOutParameter(int, int, java.lang.String)