public abstract class DelegatingSqlValidatorCatalogReader extends Object implements SqlValidatorCatalogReader
SqlValidatorCatalogReader that passes
all calls to a parent catalog reader.| Modifier and Type | Field and Description |
|---|---|
protected SqlValidatorCatalogReader |
catalogReader |
| Constructor and Description |
|---|
DelegatingSqlValidatorCatalogReader(SqlValidatorCatalogReader catalogReader)
Creates a DelegatingSqlValidatorCatalogReader.
|
| Modifier and Type | Method and Description |
|---|---|
List<SqlMoniker> |
getAllSchemaObjectNames(List<String> names)
Given fully qualified schema name, returns schema object names as
specified.
|
RelDataType |
getNamedType(SqlIdentifier typeName)
Finds a user-defined type with the given name, possibly qualified.
|
List<String> |
getSchemaName()
Returns the name of the current schema.
|
SqlValidatorTable |
getTable(List<String> names)
Finds a table with the given name, possibly qualified.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTypeFromProjection, field, fieldOrdinal, match, matchesprotected final SqlValidatorCatalogReader catalogReader
public DelegatingSqlValidatorCatalogReader(SqlValidatorCatalogReader catalogReader)
catalogReader - Parent catalog readerpublic SqlValidatorTable getTable(List<String> names)
SqlValidatorCatalogReadergetTable in interface SqlValidatorCatalogReadernames - Qualified name of tablepublic RelDataType getNamedType(SqlIdentifier typeName)
SqlValidatorCatalogReaderNOTE 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 SqlValidatorCatalogReadertypeName - Name of typepublic List<SqlMoniker> getAllSchemaObjectNames(List<String> names)
SqlValidatorCatalogReadergetAllSchemaObjectNames in interface SqlValidatorCatalogReadernames - the array contains fully qualified schema name or empty
list for root schemapublic List<String> getSchemaName()
SqlValidatorCatalogReadergetSchemaName in interface SqlValidatorCatalogReaderCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.