net.sf.saffron.sql2rel
Class SqlToRelConverter.SchemaCatalogReader

java.lang.Object
  |
  +--net.sf.saffron.sql2rel.SqlToRelConverter.SchemaCatalogReader
All Implemented Interfaces:
SqlValidator.CatalogReader
Enclosing class:
SqlToRelConverter

public static class SqlToRelConverter.SchemaCatalogReader
extends Object
implements SqlValidator.CatalogReader

A SchemaCatalogReader looks up catalog information from a saffron schema object.


Field Summary
private  SaffronSchema schema
           
private  boolean upperCase
           
 
Constructor Summary
SqlToRelConverter.SchemaCatalogReader(SaffronSchema schema, boolean upperCase)
           
 
Method Summary
 SqlValidator.Table getTable(String[] names)
          Finds a table with the given name or names.
private  String maybeUpper(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schema

private final SaffronSchema schema

upperCase

private final boolean upperCase
Constructor Detail

SqlToRelConverter.SchemaCatalogReader

public SqlToRelConverter.SchemaCatalogReader(SaffronSchema schema,
                                             boolean upperCase)
Method Detail

getTable

public SqlValidator.Table getTable(String[] names)
Description copied from interface: SqlValidator.CatalogReader
Finds a table with the given name or names. Returns null if not found.

Specified by:
getTable in interface SqlValidator.CatalogReader

maybeUpper

private String maybeUpper(String s)

SourceForge.net_Logo