Class LogicalPreparedStatement42

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper

    public class LogicalPreparedStatement42
    extends LogicalPreparedStatement
    JDBC 4.2 specific wrapper class for a Derby physical prepared statement.
    • Constructor Detail

      • LogicalPreparedStatement42

        public LogicalPreparedStatement42​(java.sql.PreparedStatement physicalPs,
                                          StatementKey stmtKey,
                                          StatementCacheInteractor cacheInteractor)
        Creates a new logical prepared statement.
        Parameters:
        physicalPs - underlying physical statement
        stmtKey - key for the physical statement
        cacheInteractor - creating statement cache interactor
        Throws:
        java.lang.IllegalArgumentException - if cache is null
    • Method Detail

      • setObject

        public void setObject​(int parameterIndex,
                              java.lang.Object x,
                              java.sql.SQLType targetSqlType)
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • setObject

        public void setObject​(int parameterIndex,
                              java.lang.Object x,
                              java.sql.SQLType targetSqlType,
                              int scaleOrLength)
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException