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
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)
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