saffron
Interface Connection

All Known Implementing Classes:
JdbcConnection, SaffronJdbcConnection.MyConnection

public interface Connection

A Connection is an object from which Tables can be accessed. Every class which implements Connection must implement the public static method Schema getSchema().

Since:
10 November, 2001
Version:
$Id: //open/saffron/src/main/saffron/Connection.java#1 $
Author:
jhyde

Method Summary
 Object contentsAsArray(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.
 Schema getSchema()
          Returns the schema underlying this connection.
 

Method Detail

getSchema

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


contentsAsArray

public Object contentsAsArray(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 Schema.getTableForMember(java.lang.String)(tableName).Table.toRel(saffron.opt.Cluster, openjava.ptree.Expression)(cluster, exp).


SourceForge.net_Logo