|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.validate.DelegatingSqlValidatorCatalogReader
public abstract class DelegatingSqlValidatorCatalogReader
Implementation of
SqlValidatorCatalogReader
that passes
all calls to a parent catalog reader.
Field Summary | |
---|---|
protected SqlValidatorCatalogReader |
catalogReader
|
Constructor Summary | |
---|---|
DelegatingSqlValidatorCatalogReader(SqlValidatorCatalogReader catalogReader)
Creates a DelegatingSqlValidatorCatalogReader. |
Method Summary | |
---|---|
List<SqlMoniker> |
getAllSchemaObjectNames(List<String> names)
Gets schema object names as specified. |
RelDataType |
getNamedType(SqlIdentifier typeName)
Finds a user-defined type with the given name, possibly qualified. |
String |
getSchemaName()
Returns the name of the current schema. |
SqlValidatorTable |
getTable(String[] names)
Finds a table with the given name, possibly qualified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final SqlValidatorCatalogReader catalogReader
Constructor Detail |
---|
public DelegatingSqlValidatorCatalogReader(SqlValidatorCatalogReader catalogReader)
catalogReader
- Parent catalog readerMethod Detail |
---|
public SqlValidatorTable getTable(String[] names)
SqlValidatorCatalogReader
getTable
in interface SqlValidatorCatalogReader
names
- Name of table
public RelDataType getNamedType(SqlIdentifier typeName)
SqlValidatorCatalogReader
NOTE jvs 12-Feb-2005: the reason this method is defined here instead of on RelDataTypeFactory is that it has to take into account context-dependent information such as SQL schema path, whereas a type factory is context-independent.
getNamedType
in interface SqlValidatorCatalogReader
typeName
- Name of type
public List<SqlMoniker> getAllSchemaObjectNames(List<String> names)
SqlValidatorCatalogReader
getAllSchemaObjectNames
in interface SqlValidatorCatalogReader
names
- the array contains either 2 elements representing a
partially qualified object name in the format of 'schema.object', or an
unqualified name in the format of 'object'
public String getSchemaName()
SqlValidatorCatalogReader
getSchemaName
in interface SqlValidatorCatalogReader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |