Class JDBC3Statement

    • Method Detail

      • close

        public void close()
                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.close()
      • execute

        public boolean execute​(java.lang.String sql)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.execute(java.lang.String)
      • executeQuery

        public java.sql.ResultSet executeQuery​(java.lang.String sql,
                                               boolean closeStmt)
                                        throws java.sql.SQLException
        Specified by:
        executeQuery in class CoreStatement
        Parameters:
        closeStmt - Whether to close this statement when the resultset is closed.
        Throws:
        java.sql.SQLException
        See Also:
        Statement.executeQuery(java.lang.String)
      • executeQuery

        public java.sql.ResultSet executeQuery​(java.lang.String sql)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.executeQuery(java.lang.String)
      • executeUpdate

        public int executeUpdate​(java.lang.String sql)
                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.executeUpdate(java.lang.String)
      • getResultSet

        public java.sql.ResultSet getResultSet()
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getResultSet()
      • getUpdateCount

        public int getUpdateCount()
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • addBatch

        public void addBatch​(java.lang.String sql)
                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.addBatch(java.lang.String)
      • clearBatch

        public void clearBatch()
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.clearBatch()
      • executeBatch

        public int[] executeBatch()
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.executeBatch()
      • setCursorName

        public void setCursorName​(java.lang.String name)
        See Also:
        Statement.setCursorName(java.lang.String)
      • getWarnings

        public java.sql.SQLWarning getWarnings()
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getWarnings()
      • clearWarnings

        public void clearWarnings()
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.clearWarnings()
      • getConnection

        public java.sql.Connection getConnection()
                                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getConnection()
      • cancel

        public void cancel()
                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.cancel()
      • getQueryTimeout

        public int getQueryTimeout()
                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getQueryTimeout()
      • setQueryTimeout

        public void setQueryTimeout​(int seconds)
                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.setQueryTimeout(int)
      • getMaxRows

        public int getMaxRows()
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getMaxRows()
      • setMaxRows

        public void setMaxRows​(int max)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.setMaxRows(int)
      • getMaxFieldSize

        public int getMaxFieldSize()
                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getMaxFieldSize()
      • setMaxFieldSize

        public void setMaxFieldSize​(int max)
                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.setMaxFieldSize(int)
      • getFetchSize

        public int getFetchSize()
                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getFetchSize()
      • setFetchSize

        public void setFetchSize​(int r)
                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.setFetchSize(int)
      • getFetchDirection

        public int getFetchDirection()
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getFetchDirection()
      • setFetchDirection

        public void setFetchDirection​(int direction)
                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.setFetchDirection(int)
      • getGeneratedKeys

        public java.sql.ResultSet getGeneratedKeys()
                                            throws java.sql.SQLException
        As SQLite's last_insert_rowid() function is DB-specific not statement specific, this function introduces a race condition if the same connection is used by two threads and both insert.
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getGeneratedKeys()
      • getMoreResults

        public boolean getMoreResults()
                               throws java.sql.SQLException
        SQLite does not support multiple results from execute().
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getMoreResults()
      • getMoreResults

        public boolean getMoreResults​(int c)
                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getMoreResults(int)
      • getResultSetConcurrency

        public int getResultSetConcurrency()
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getResultSetConcurrency()
      • getResultSetHoldability

        public int getResultSetHoldability()
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getResultSetHoldability()
      • getResultSetType

        public int getResultSetType()
                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.getResultSetType()
      • setEscapeProcessing

        public void setEscapeProcessing​(boolean enable)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Statement.setEscapeProcessing(boolean)
      • unused

        protected java.sql.SQLException unused()
      • execute

        public boolean execute​(java.lang.String sql,
                               int[] colinds)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • execute

        public boolean execute​(java.lang.String sql,
                               java.lang.String[] colnames)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • executeUpdate

        public int executeUpdate​(java.lang.String sql,
                                 int autoKeys)
                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • executeUpdate

        public int executeUpdate​(java.lang.String sql,
                                 int[] colinds)
                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • executeUpdate

        public int executeUpdate​(java.lang.String sql,
                                 java.lang.String[] cols)
                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • execute

        public boolean execute​(java.lang.String sql,
                               int autokeys)
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException