net.sf.saffron.core
Class EmptySaffronConnection

java.lang.Object
  |
  +--net.sf.saffron.core.EmptySaffronConnection
All Implemented Interfaces:
SaffronConnection

public class EmptySaffronConnection
extends Object
implements SaffronConnection

A saffron connection which doesn't have any objects available.

A statement which uses this connection will only be able to reference statement parameters.

Since:
Nov 28, 2003
Version:
$Id: $
Author:
jhyde
See Also:
SaffronConnection

Nested Class Summary
private static class EmptySaffronConnection.EmptySaffronSchema
           
 
Field Summary
private  EmptySaffronConnection.EmptySaffronSchema schema
           
 
Constructor Summary
EmptySaffronConnection()
           
 
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
 

Field Detail

schema

private final EmptySaffronConnection.EmptySaffronSchema schema
Constructor Detail

EmptySaffronConnection

public EmptySaffronConnection()
Method Detail

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

SourceForge.net_Logo