mondrian.olap4j
Class FactoryJdbc3Impl

java.lang.Object
  extended by mondrian.olap4j.FactoryJdbc3Impl
All Implemented Interfaces:
Factory

 class FactoryJdbc3Impl
extends Object
implements Factory

Implementation of Factory for JDBC 3.0.

Since:
Jun 14, 2007
Version:
$Id: //open/mondrian/src/main/mondrian/olap4j/FactoryJdbc3Impl.java#5 $
Author:
jhyde

Constructor Summary
FactoryJdbc3Impl()
           
 
Method Summary
 MondrianOlap4jCellSet newCellSet(MondrianOlap4jStatement olap4jStatement, Query query)
          Creates a cell set.
 Connection newConnection(MondrianOlap4jDriver driver, String url, Properties info)
          Creates a connection.
 MondrianOlap4jDatabaseMetaData newDatabaseMetaData(MondrianOlap4jConnection olap4jConnection)
          Creates a metadata object.
 EmptyResultSet newEmptyResultSet(MondrianOlap4jConnection olap4jConnection)
          Creates an empty result set.
 ResultSet newFixedResultSet(MondrianOlap4jConnection olap4jConnection, List<String> headerList, List<List<Object>> rowList)
          Creates a result set with a fixed set of rows.
 MondrianOlap4jPreparedStatement newPreparedStatement(String mdx, MondrianOlap4jConnection olap4jConnection)
          Creates a prepared statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryJdbc3Impl

FactoryJdbc3Impl()
Method Detail

newConnection

public Connection newConnection(MondrianOlap4jDriver driver,
                                String url,
                                Properties info)
                         throws SQLException
Description copied from interface: Factory
Creates a connection.

Specified by:
newConnection in interface Factory
Parameters:
driver - Driver
url - URL of server
info - Properties defining the connection
Returns:
Connection
Throws:
SQLException - on error

newEmptyResultSet

public EmptyResultSet newEmptyResultSet(MondrianOlap4jConnection olap4jConnection)
Description copied from interface: Factory
Creates an empty result set.

Specified by:
newEmptyResultSet in interface Factory
Parameters:
olap4jConnection - Connection
Returns:
Result set

newFixedResultSet

public ResultSet newFixedResultSet(MondrianOlap4jConnection olap4jConnection,
                                   List<String> headerList,
                                   List<List<Object>> rowList)
Description copied from interface: Factory
Creates a result set with a fixed set of rows.

Specified by:
newFixedResultSet in interface Factory
Parameters:
olap4jConnection - Connection
headerList - Column headers
rowList - Row values
Returns:
Result set

newCellSet

public MondrianOlap4jCellSet newCellSet(MondrianOlap4jStatement olap4jStatement,
                                        Query query)
Description copied from interface: Factory
Creates a cell set.

Specified by:
newCellSet in interface Factory
Parameters:
olap4jStatement - Statement
Returns:
Cell set

newPreparedStatement

public MondrianOlap4jPreparedStatement newPreparedStatement(String mdx,
                                                            MondrianOlap4jConnection olap4jConnection)
Description copied from interface: Factory
Creates a prepared statement.

Specified by:
newPreparedStatement in interface Factory
Parameters:
mdx - MDX query text
olap4jConnection - Connection
Returns:
Prepared statement

newDatabaseMetaData

public MondrianOlap4jDatabaseMetaData newDatabaseMetaData(MondrianOlap4jConnection olap4jConnection)
Description copied from interface: Factory
Creates a metadata object.

Specified by:
newDatabaseMetaData in interface Factory
Parameters:
olap4jConnection - Connection
Returns:
Metadata object

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads