saffron
Interface Schema

All Known Subinterfaces:
JdbcSchema
All Known Implementing Classes:
ClassSchema, ObjectSchema, ReflectSchema

public interface Schema

A Schema is a set of Tables.


Method Summary
 Table getTableForMember(String name)
          Retrieves a Table based upon a member access.
 Table getTableForMethodCall(MethodCall call)
          Retrieves a Table based upon a method call (for example, salesSchema.empsInDept("SALES")).
 TypeFactory getTypeFactory()
          Returns the type factory used to generate types for this schema.
 void registerRules(Planner planner)
          Registers all of the rules supported by this schema.
 

Method Detail

getTypeFactory

public TypeFactory getTypeFactory()
Returns the type factory used to generate types for this schema.


getTableForMember

public Table getTableForMember(String name)
Retrieves a Table based upon a member access.

For example, the Saffron expression salesSchema.emps would be resolved using a call to salesSchema.getTableForMember(typeFactory, "emps").


getTableForMethodCall

public Table getTableForMethodCall(MethodCall call)
Retrieves a Table based upon a method call (for example, salesSchema.empsInDept("SALES")).


registerRules

public void registerRules(Planner planner)
                   throws Exception
Registers all of the rules supported by this schema. Only called by Planner.registerSchema(saffron.Schema).

Exception

SourceForge.net_Logo