net.sf.saffron.core
Interface SaffronSchema

All Known Subinterfaces:
JdbcSchema
All Known Implementing Classes:
ClassSchema, EmptySaffronConnection.EmptySaffronSchema, ObjectSchema, ReflectSchema

public interface SaffronSchema

A SaffronSchema is a set of SaffronTable objects.

See Also:
SaffronConnection

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.
 

Method Detail

getTableForMember

public SaffronTable getTableForMember(String[] names)
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.


getTypeFactory

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


registerRules

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

Exception

SourceForge.net_Logo