Documentation of 'org.apache.derby.client.am.LogicalPreparedStatement42' Java class
LogicalPreparedStatement42
org.apache.derby.client.am

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
      • close

        public void close()
                   throws java.sql.SQLException
        Close the logical statement.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.sql.Statement
        Throws:
        java.sql.SQLException - if closing the statement fails
      • isWrapperFor

        public boolean isWrapperFor(java.lang.Class<?> iface)
                             throws java.sql.SQLException
        Check whether this instance wraps an object that implements the interface specified by iface.
        Specified by:
        isWrapperFor in interface java.sql.Wrapper
        Parameters:
        iface - a class defining an interface
        Returns:
        true if this instance implements iface, or false otherwise
        Throws:
        java.sql.SQLException - if an error occurs while determining if this instance implements iface
      • unwrap

        public <T> T unwrap(java.lang.Class<T> iface)
                     throws java.sql.SQLException
        Returns an instance of the specified interface if this instance is a wrapper for the interface.
        Specified by:
        unwrap in interface java.sql.Wrapper
        Parameters:
        iface - a class defining an interface
        Returns:
        an object that implements the interface
        Throws:
        java.sql.SQLException - if no object is found that implements the interface
      • closeOnCompletion

        public void closeOnCompletion()
                               throws java.sql.SQLException
        Specified by:
        closeOnCompletion in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • isCloseOnCompletion

        public boolean isCloseOnCompletion()
                                    throws java.sql.SQLException
        Specified by:
        isCloseOnCompletion in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • executeLargeBatch

        public long[] executeLargeBatch()
                                 throws java.sql.SQLException
        Specified by:
        executeLargeBatch in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • executeLargeUpdate

        public long executeLargeUpdate(java.lang.String sql)
                                throws java.sql.SQLException
        Specified by:
        executeLargeUpdate in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • executeLargeUpdate

        public long executeLargeUpdate(java.lang.String sql,
                                       int autoGeneratedKeys)
                                throws java.sql.SQLException
        Specified by:
        executeLargeUpdate in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • executeLargeUpdate

        public long executeLargeUpdate(java.lang.String sql,
                                       int[] columnIndexes)
                                throws java.sql.SQLException
        Specified by:
        executeLargeUpdate in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • executeLargeUpdate

        public long executeLargeUpdate(java.lang.String sql,
                                       java.lang.String[] columnNames)
                                throws java.sql.SQLException
        Specified by:
        executeLargeUpdate in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getLargeUpdateCount

        public long getLargeUpdateCount()
                                 throws java.sql.SQLException
        Specified by:
        getLargeUpdateCount in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getLargeMaxRows

        public long getLargeMaxRows()
                             throws java.sql.SQLException
        Specified by:
        getLargeMaxRows in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • setLargeMaxRows

        public void setLargeMaxRows(long maxRows)
                             throws java.sql.SQLException
        Specified by:
        setLargeMaxRows in interface java.sql.Statement
        Throws:
        java.sql.SQLException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.