Interface Factory

  • All Known Implementing Classes:
    FactoryJdbc41Impl

    interface Factory
    Instantiates classes to implement the olap4j API against the Mondrian OLAP engine.

    There are implementations for JDBC 3.0 (which occurs in JDK 1.5) and JDBC 4.0 (which occurs in JDK 1.6).

    Since:
    Jun 14, 2007
    Author:
    jhyde
    • Method Detail

      • newConnection

        java.sql.Connection newConnection​(MondrianOlap4jDriver driver,
                                          java.lang.String url,
                                          java.util.Properties info)
                                   throws java.sql.SQLException
        Creates a connection.
        Parameters:
        driver - Driver
        url - URL of server
        info - Properties defining the connection
        Returns:
        Connection
        Throws:
        java.sql.SQLException - on error
      • newEmptyResultSet

        EmptyResultSet newEmptyResultSet​(MondrianOlap4jConnection olap4jConnection)
        Creates an empty result set.
        Parameters:
        olap4jConnection - Connection
        Returns:
        Result set
      • newFixedResultSet

        java.sql.ResultSet newFixedResultSet​(MondrianOlap4jConnection olap4jConnection,
                                             java.util.List<java.lang.String> headerList,
                                             java.util.List<java.util.List<java.lang.Object>> rowList)
        Creates a result set with a fixed set of rows.
        Parameters:
        olap4jConnection - Connection
        headerList - Column headers
        rowList - Row values
        Returns:
        Result set