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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sqlConnection
Connection sqlConnection
JdbcConnection
public JdbcConnection(Connection sqlConnection)
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()