net.sf.saffron.core
Interface SaffronConnection

All Known Implementing Classes:
EmptySaffronConnection, JdbcConnection, SaffronConnectionDecorator, SaffronJdbcConnection.MyConnection

public interface SaffronConnection

A connection to Saffron database.

A connection contains a SaffronSchema, via which the query planner can access SaffronTable objects.

If Saffron is being used as a Java preprocessor, every class which implements SaffronConnection must implement the method

public static SaffronSchema getSaffronSchema()

Since:
10 November, 2001
Version:
$Id: //open/saffron/src/net/sf/saffron/core/SaffronConnection.java#2 $
Author:
jhyde
See Also:
SaffronConnectionDecorator, 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.
 

Method Detail

getSaffronSchema

public SaffronSchema getSaffronSchema()
Returns the schema underlying this connection. Non-abstract classes implementing this interface must also provide public static Schema getSaffronSchemaStatic().


contentsAsArray

public 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. This involves calling SaffronSchema.getTableForMember(java.lang.String[])(qualifier,tableName).SaffronTable.toRel(net.sf.saffron.opt.VolcanoCluster, net.sf.saffron.core.SaffronConnection)(cluster, exp).


SourceForge.net_Logo