net.sf.saffron.core
Class EmptySaffronConnection.EmptySaffronSchema

java.lang.Object
  |
  +--net.sf.saffron.core.EmptySaffronConnection.EmptySaffronSchema
All Implemented Interfaces:
SaffronSchema
Enclosing class:
EmptySaffronConnection

private static class EmptySaffronConnection.EmptySaffronSchema
extends Object
implements SaffronSchema


Field Summary
private  SaffronTypeFactoryImpl typeFactory
           
 
Constructor Summary
private EmptySaffronConnection.EmptySaffronSchema()
           
 
Method Summary
 SaffronTable getTableForMember(String[] names)
          Retrieves a SaffronTable based upon a member access.
 SaffronTypeFactory getTypeFactory()
          Returns the type factory used to generate types for this schema.
 void registerRules(SaffronPlanner planner)
          Registers all of the rules supported by this schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeFactory

private final SaffronTypeFactoryImpl typeFactory
Constructor Detail

EmptySaffronConnection.EmptySaffronSchema

private EmptySaffronConnection.EmptySaffronSchema()
Method Detail

getTableForMember

public SaffronTable getTableForMember(String[] names)
Description copied from interface: SaffronSchema
Retrieves a SaffronTable based upon a member access.

For example, the Saffron expression salesSchema.emps would be resolved using a call to salesSchema.getTableForMember(new String[]{"emps"}).

Note that name.length is only greater than 1 for queries originating from JDBC.

Specified by:
getTableForMember in interface SaffronSchema

getTypeFactory

public SaffronTypeFactory getTypeFactory()
Description copied from interface: SaffronSchema
Returns the type factory used to generate types for this schema.

Specified by:
getTypeFactory in interface SaffronSchema

registerRules

public void registerRules(SaffronPlanner planner)
                   throws Exception
Description copied from interface: SaffronSchema
Registers all of the rules supported by this schema. Only called by SaffronPlanner.registerSchema(net.sf.saffron.core.SaffronSchema).

Specified by:
registerRules in interface SaffronSchema
Exception

SourceForge.net_Logo