Interface AvaticaFactory

  • All Known Implementing Classes:
    AvaticaJdbc41Factory

    public interface AvaticaFactory
    Factory for JDBC objects.

    There is an implementation for each supported JDBC version.

    • Method Detail

      • getJdbcMajorVersion

        int getJdbcMajorVersion()
      • getJdbcMinorVersion

        int getJdbcMinorVersion()
      • newResultSet

        AvaticaResultSet newResultSet​(AvaticaStatement statement,
                                      QueryState state,
                                      Meta.Signature signature,
                                      java.util.TimeZone timeZone,
                                      Meta.Frame firstFrame)
                               throws java.sql.SQLException
        Creates a result set. You will then need to call AvaticaResultSet.execute() on it.
        Parameters:
        statement - Statement
        state - The state used to create this result set
        signature - Prepared statement
        timeZone - Time zone
        firstFrame - Frame containing the first (or perhaps only) rows in the result, or null if an execute/fetch is required
        Returns:
        Result set
        Throws:
        java.sql.SQLException
      • newResultSetMetaData

        java.sql.ResultSetMetaData newResultSetMetaData​(AvaticaStatement statement,
                                                        Meta.Signature signature)
                                                 throws java.sql.SQLException
        Creates meta data for a result set.
        Parameters:
        statement - Statement
        signature - Prepared statement
        Returns:
        Result set meta data
        Throws:
        java.sql.SQLException