net.sf.saffron.core
Class SaffronConnectionDecorator
java.lang.Object
|
+--net.sf.saffron.core.SaffronConnectionDecorator
- All Implemented Interfaces:
- SaffronConnection
- public abstract class SaffronConnectionDecorator
- extends Object
- implements SaffronConnection
Base for a class which wraps a SaffronConnection and extends its
functionality.
See the Decorator
Pattern.
- Since:
- Dec 9, 2003
- Version:
- $Id: $
- Author:
- jhyde
|
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. |
SaffronSchema |
getSaffronSchema()
Returns the schema underlying this connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected final SaffronConnection connection
- The underlying
SaffronConnection.
SaffronConnectionDecorator
protected SaffronConnectionDecorator(SaffronConnection connection)
getSaffronSchema
public SaffronSchema getSaffronSchema()
- Description copied from interface:
SaffronConnection
- Returns the schema underlying this connection. Non-abstract classes
implementing this interface must also provide
public static
Schema getSaffronSchemaStatic().
- Specified by:
getSaffronSchema in interface SaffronConnection
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