Interface RelationalStatement

  • All Superinterfaces:
    java.lang.AutoCloseable, RelationalDirectAccessStatement, java.sql.Statement, java.sql.Wrapper

    public interface RelationalStatement
    extends java.sql.Statement, RelationalDirectAccessStatement
    Extension of Statement to allow support for non-query database access.

    There are two ways that the database can be accessed:

    Query Language
    The Query language used by Relational is a subset of the PartiQL Spec.
    Direct Access
    The Direct Access API allows a user to access simplified database-like functions without requiring the writing of a SQL query. Its primary purpose for existing is historical, to allow for easier integration support with existing system users, and is not (generally) recommended for new use cases.

    Direct Access API Details

    The Direct Access API allows simplified execution of the following functionality:

    • Get By Key
    • Scan By Key range
    • Insert one or more records
    • Delete one or more records
    Each of these functions are typically _not_ optimized, although some options exist which can be used by the caller to provide their own optimizations (such as index selection and so forth).
    • Method Detail

      • executeQuery

        RelationalResultSet executeQuery​(java.lang.String sql)
                                  throws java.sql.SQLException
        Specified by:
        executeQuery in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getResultSet

        RelationalResultSet getResultSet()
                                  throws java.sql.SQLException
        Specified by:
        getResultSet in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • executeUpdate

        default int executeUpdate​(java.lang.String sql,
                                  int autoGeneratedKeys)
                           throws java.sql.SQLException
        Specified by:
        executeUpdate in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • executeUpdate

        default int executeUpdate​(java.lang.String sql,
                                  int[] columnIndexes)
                           throws java.sql.SQLException
        Specified by:
        executeUpdate in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • executeUpdate

        default int executeUpdate​(java.lang.String sql,
                                  java.lang.String[] columnNames)
                           throws java.sql.SQLException
        Specified by:
        executeUpdate in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getMaxFieldSize

        default int getMaxFieldSize()
                             throws java.sql.SQLException
        Specified by:
        getMaxFieldSize in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • setMaxFieldSize

        default void setMaxFieldSize​(int max)
                              throws java.sql.SQLException
        Specified by:
        setMaxFieldSize in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • setEscapeProcessing

        default void setEscapeProcessing​(boolean enable)
                                  throws java.sql.SQLException
        Specified by:
        setEscapeProcessing in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getQueryTimeout

        default int getQueryTimeout()
                             throws java.sql.SQLException
        Specified by:
        getQueryTimeout in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • setQueryTimeout

        default void setQueryTimeout​(int seconds)
                              throws java.sql.SQLException
        Specified by:
        setQueryTimeout in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • cancel

        default void cancel()
                     throws java.sql.SQLException
        Specified by:
        cancel in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getWarnings

        default java.sql.SQLWarning getWarnings()
                                         throws java.sql.SQLException
        Specified by:
        getWarnings in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • clearWarnings

        default void clearWarnings()
                            throws java.sql.SQLException
        Specified by:
        clearWarnings in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • setCursorName

        default void setCursorName​(java.lang.String name)
                            throws java.sql.SQLException
        Specified by:
        setCursorName in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • execute

        default boolean execute​(java.lang.String sql,
                                int autoGeneratedKeys)
                         throws java.sql.SQLException
        Specified by:
        execute in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • execute

        default boolean execute​(java.lang.String sql,
                                int[] columnIndexes)
                         throws java.sql.SQLException
        Specified by:
        execute in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • execute

        default boolean execute​(java.lang.String sql,
                                java.lang.String[] columnNames)
                         throws java.sql.SQLException
        Specified by:
        execute in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getUpdateCount

        default int getUpdateCount()
                            throws java.sql.SQLException
        Specified by:
        getUpdateCount in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getMoreResults

        default boolean getMoreResults()
                                throws java.sql.SQLException
        Specified by:
        getMoreResults in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getMoreResults

        default boolean getMoreResults​(int current)
                                throws java.sql.SQLException
        Specified by:
        getMoreResults in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • setFetchDirection

        default void setFetchDirection​(int direction)
                                throws java.sql.SQLException
        Specified by:
        setFetchDirection in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getFetchDirection

        default int getFetchDirection()
                               throws java.sql.SQLException
        Specified by:
        getFetchDirection in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • setFetchSize

        default void setFetchSize​(int rows)
                           throws java.sql.SQLException
        Specified by:
        setFetchSize in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getFetchSize

        default int getFetchSize()
                          throws java.sql.SQLException
        Specified by:
        getFetchSize in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getResultSetConcurrency

        default int getResultSetConcurrency()
                                     throws java.sql.SQLException
        Specified by:
        getResultSetConcurrency in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getResultSetType

        default int getResultSetType()
                              throws java.sql.SQLException
        Specified by:
        getResultSetType in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • addBatch

        default void addBatch​(java.lang.String sql)
                       throws java.sql.SQLException
        Specified by:
        addBatch in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • clearBatch

        default void clearBatch()
                         throws java.sql.SQLException
        Specified by:
        clearBatch in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • executeBatch

        default int[] executeBatch()
                            throws java.sql.SQLException
        Specified by:
        executeBatch in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getGeneratedKeys

        default java.sql.ResultSet getGeneratedKeys()
                                             throws java.sql.SQLException
        Specified by:
        getGeneratedKeys in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • getResultSetHoldability

        default int getResultSetHoldability()
                                     throws java.sql.SQLException
        Specified by:
        getResultSetHoldability in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • setPoolable

        default void setPoolable​(boolean poolable)
                          throws java.sql.SQLException
        Specified by:
        setPoolable in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • isPoolable

        default boolean isPoolable()
                            throws java.sql.SQLException
        Specified by:
        isPoolable in interface java.sql.Statement
        Throws:
        java.sql.SQLException
      • closeOnCompletion

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

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

        default <T> T unwrap​(java.lang.Class<T> iface)
                      throws java.sql.SQLException
        Specified by:
        unwrap in interface java.sql.Wrapper
        Throws:
        java.sql.SQLException
      • isWrapperFor

        default boolean isWrapperFor​(java.lang.Class<?> iface)
                              throws java.sql.SQLException
        Specified by:
        isWrapperFor in interface java.sql.Wrapper
        Throws:
        java.sql.SQLException