net.sf.saffron.oj.xlat
Class SqlToOpenjavaConverter.SchemaCatalogReader

java.lang.Object
  |
  +--net.sf.saffron.oj.xlat.SqlToOpenjavaConverter.SchemaCatalogReader
All Implemented Interfaces:
SqlValidator.CatalogReader
Enclosing class:
SqlToOpenjavaConverter

public static class SqlToOpenjavaConverter.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
SqlToOpenjavaConverter.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

SqlToOpenjavaConverter.SchemaCatalogReader

public SqlToOpenjavaConverter.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