net.sf.saffron.ext
Class JdbcConnection

java.lang.Object
  |
  +--net.sf.saffron.ext.JdbcConnection
All Implemented Interfaces:
SaffronConnection

public abstract class JdbcConnection
extends Object
implements SaffronConnection

A JdbcConnection is an implementation of SaffronConnection which gets its data from a JDBC database.

Derived classes must implement SaffronConnection.getSaffronSchema() and getSaffronSchemaStatic().

Since:
10 November, 2001
Version:
$Id: //open/saffron/src/net/sf/saffron/ext/JdbcConnection.java#3 $
Author:
jhyde

Field Summary
(package private)  Connection sqlConnection
           
 
Constructor Summary
JdbcConnection(Connection sqlConnection)
           
 
Method Summary
 Object contentsAsArray(String qualifier, String tableName)
          In theory, this method returns the contents of tableName as an array; in practice, it is a placeholder recognized by the optimizer to do something much more efficient.
 Connection getConnection()
           
static SaffronSchema getSaffronSchemaStatic()
           
 void setConnection(Connection sqlConnection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.saffron.core.SaffronConnection
getSaffronSchema
 

Field Detail

sqlConnection

Connection sqlConnection
Constructor Detail

JdbcConnection

public JdbcConnection(Connection sqlConnection)
Method Detail

setConnection

public void setConnection(Connection sqlConnection)

getConnection

public Connection getConnection()

getSaffronSchemaStatic

public static SaffronSchema getSaffronSchemaStatic()

contentsAsArray

public Object contentsAsArray(String qualifier,
                              String tableName)
Description copied from interface: SaffronConnection
In theory, this method returns the contents of tableName as an array; in practice, it is a placeholder recognized by the optimizer to do something much more efficient. This involves calling SaffronSchema.getTableForMember(java.lang.String[])(qualifier,tableName).SaffronTable.toRel(net.sf.saffron.opt.VolcanoCluster, net.sf.saffron.core.SaffronConnection)(cluster, exp).

Specified by:
contentsAsArray in interface SaffronConnection

SourceForge.net_Logo