saffron.ext
Class JdbcConnection

java.lang.Object
  |
  +--saffron.ext.JdbcConnection
All Implemented Interfaces:
Connection

public abstract class JdbcConnection
extends Object
implements Connection

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

Derived classes must implement Connection.getSchema() and getSchemaStatic().

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

Field Summary
(package private)  Connection sqlConnection
           
 
Constructor Summary
JdbcConnection(Connection sqlConnection)
           
 
Method Summary
 Object contentsAsArray(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 Schema getSchemaStatic()
           
 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 saffron.Connection
getSchema
 

Field Detail

sqlConnection

Connection sqlConnection
Constructor Detail

JdbcConnection

public JdbcConnection(Connection sqlConnection)
Method Detail

getConnection

public Connection getConnection()

setConnection

public void setConnection(Connection sqlConnection)

contentsAsArray

public Object contentsAsArray(String tableName)
Description copied from interface: Connection
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 Schema.getTableForMember(java.lang.String)(tableName).Table.toRel(saffron.opt.Cluster, openjava.ptree.Expression)(cluster, exp).

Specified by:
contentsAsArray in interface Connection

getSchemaStatic

public static Schema getSchemaStatic()

SourceForge.net_Logo