Class CalciteJdbc41Factory.CalciteJdbc41PreparedStatement

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.sql.ParameterMetaData, java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper
    Enclosing class:
    CalciteJdbc41Factory

    private static class CalciteJdbc41Factory.CalciteJdbc41PreparedStatement
    extends CalcitePreparedStatement
    Implementation of prepared statement for JDBC 4.1.
    • Field Summary

      • Fields inherited from class org.apache.calcite.avatica.AvaticaPreparedStatement

        parameterValueBatch, slots
      • Fields inherited from class org.apache.calcite.avatica.AvaticaStatement

        cancelFlag, closed, closeOnCompletion, connection, DEFAULT_FETCH_SIZE, handle, maxRowCount, openResultSet, updateCount
      • Fields inherited from interface java.sql.ParameterMetaData

        parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
      • Fields inherited from interface java.sql.Statement

        CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setAsciiStream​(int parameterIndex, java.io.InputStream x)  
      void setAsciiStream​(int parameterIndex, java.io.InputStream x, long length)  
      void setBinaryStream​(int parameterIndex, java.io.InputStream x)  
      void setBinaryStream​(int parameterIndex, java.io.InputStream x, long length)  
      void setBlob​(int parameterIndex, java.io.InputStream inputStream)  
      void setBlob​(int parameterIndex, java.io.InputStream inputStream, long length)  
      void setCharacterStream​(int parameterIndex, java.io.Reader reader)  
      void setCharacterStream​(int parameterIndex, java.io.Reader reader, long length)  
      void setClob​(int parameterIndex, java.io.Reader reader)  
      void setClob​(int parameterIndex, java.io.Reader reader, long length)  
      void setNCharacterStream​(int parameterIndex, java.io.Reader value)  
      void setNCharacterStream​(int parameterIndex, java.io.Reader value, long length)  
      void setNClob​(int parameterIndex, java.io.Reader reader)  
      void setNClob​(int parameterIndex, java.io.Reader reader, long length)  
      void setNClob​(int parameterIndex, java.sql.NClob value)  
      void setNString​(int parameterIndex, java.lang.String value)  
      void setRowId​(int parameterIndex, java.sql.RowId x)  
      void setSQLXML​(int parameterIndex, java.sql.SQLXML xmlObject)  
      • Methods inherited from class org.apache.calcite.avatica.AvaticaPreparedStatement

        addBatch, clearBatch, clearParameters, copyParameterValues, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeQuery, executeUpdate, getCalendar, getMetaData, getParameter, getParameterClassName, getParameterCount, getParameterMetaData, getParameterMode, getParameterType, getParameterTypeName, getParameterValueBatch, getParameterValues, getPrecision, getScale, getSite, isNullable, isSigned, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
      • Methods inherited from class org.apache.calcite.avatica.AvaticaStatement

        addBatch, cancel, checkOpen, clearWarnings, close, close_, closeOnCompletion, execute, execute, execute, execute, executeBatchInternal, executeInternal, executeInternal, executeLargeUpdate, executeQuery, executeQueryInternal, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getBoundParameterValues, getFetchDirection, getFetchSize, getGeneratedKeys, getId, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSignature, getStatementType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, resetStatement, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, setSignature, syncResults, unwrap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.sql.PreparedStatement

        setObject, setObject
      • Methods inherited from interface java.sql.Statement

        addBatch, cancel, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
      • Methods inherited from interface java.sql.Wrapper

        isWrapperFor, unwrap
    • Constructor Detail

      • CalciteJdbc41PreparedStatement

        CalciteJdbc41PreparedStatement​(CalciteConnectionImpl connection,
                                       org.apache.calcite.avatica.Meta.StatementHandle h,
                                       CalcitePrepare.CalciteSignature signature,
                                       int resultSetType,
                                       int resultSetConcurrency,
                                       int resultSetHoldability)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • setRowId

        public void setRowId​(int parameterIndex,
                             java.sql.RowId x)
                      throws java.sql.SQLException
        Specified by:
        setRowId in interface java.sql.PreparedStatement
        Overrides:
        setRowId in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setNString

        public void setNString​(int parameterIndex,
                               java.lang.String value)
                        throws java.sql.SQLException
        Specified by:
        setNString in interface java.sql.PreparedStatement
        Overrides:
        setNString in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setNCharacterStream

        public void setNCharacterStream​(int parameterIndex,
                                        java.io.Reader value,
                                        long length)
                                 throws java.sql.SQLException
        Specified by:
        setNCharacterStream in interface java.sql.PreparedStatement
        Overrides:
        setNCharacterStream in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setNClob

        public void setNClob​(int parameterIndex,
                             java.sql.NClob value)
                      throws java.sql.SQLException
        Specified by:
        setNClob in interface java.sql.PreparedStatement
        Overrides:
        setNClob in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setClob

        public void setClob​(int parameterIndex,
                            java.io.Reader reader,
                            long length)
                     throws java.sql.SQLException
        Specified by:
        setClob in interface java.sql.PreparedStatement
        Overrides:
        setClob in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setBlob

        public void setBlob​(int parameterIndex,
                            java.io.InputStream inputStream,
                            long length)
                     throws java.sql.SQLException
        Specified by:
        setBlob in interface java.sql.PreparedStatement
        Overrides:
        setBlob in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setNClob

        public void setNClob​(int parameterIndex,
                             java.io.Reader reader,
                             long length)
                      throws java.sql.SQLException
        Specified by:
        setNClob in interface java.sql.PreparedStatement
        Overrides:
        setNClob in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setSQLXML

        public void setSQLXML​(int parameterIndex,
                              java.sql.SQLXML xmlObject)
                       throws java.sql.SQLException
        Specified by:
        setSQLXML in interface java.sql.PreparedStatement
        Overrides:
        setSQLXML in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setAsciiStream

        public void setAsciiStream​(int parameterIndex,
                                   java.io.InputStream x,
                                   long length)
                            throws java.sql.SQLException
        Specified by:
        setAsciiStream in interface java.sql.PreparedStatement
        Overrides:
        setAsciiStream in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setBinaryStream

        public void setBinaryStream​(int parameterIndex,
                                    java.io.InputStream x,
                                    long length)
                             throws java.sql.SQLException
        Specified by:
        setBinaryStream in interface java.sql.PreparedStatement
        Overrides:
        setBinaryStream in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setCharacterStream

        public void setCharacterStream​(int parameterIndex,
                                       java.io.Reader reader,
                                       long length)
                                throws java.sql.SQLException
        Specified by:
        setCharacterStream in interface java.sql.PreparedStatement
        Overrides:
        setCharacterStream in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setAsciiStream

        public void setAsciiStream​(int parameterIndex,
                                   java.io.InputStream x)
                            throws java.sql.SQLException
        Specified by:
        setAsciiStream in interface java.sql.PreparedStatement
        Overrides:
        setAsciiStream in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setBinaryStream

        public void setBinaryStream​(int parameterIndex,
                                    java.io.InputStream x)
                             throws java.sql.SQLException
        Specified by:
        setBinaryStream in interface java.sql.PreparedStatement
        Overrides:
        setBinaryStream in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setCharacterStream

        public void setCharacterStream​(int parameterIndex,
                                       java.io.Reader reader)
                                throws java.sql.SQLException
        Specified by:
        setCharacterStream in interface java.sql.PreparedStatement
        Overrides:
        setCharacterStream in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setNCharacterStream

        public void setNCharacterStream​(int parameterIndex,
                                        java.io.Reader value)
                                 throws java.sql.SQLException
        Specified by:
        setNCharacterStream in interface java.sql.PreparedStatement
        Overrides:
        setNCharacterStream in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setClob

        public void setClob​(int parameterIndex,
                            java.io.Reader reader)
                     throws java.sql.SQLException
        Specified by:
        setClob in interface java.sql.PreparedStatement
        Overrides:
        setClob in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setBlob

        public void setBlob​(int parameterIndex,
                            java.io.InputStream inputStream)
                     throws java.sql.SQLException
        Specified by:
        setBlob in interface java.sql.PreparedStatement
        Overrides:
        setBlob in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException
      • setNClob

        public void setNClob​(int parameterIndex,
                             java.io.Reader reader)
                      throws java.sql.SQLException
        Specified by:
        setNClob in interface java.sql.PreparedStatement
        Overrides:
        setNClob in class org.apache.calcite.avatica.AvaticaPreparedStatement
        Throws:
        java.sql.SQLException