|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.validate.SqlValidatorImpl net.sf.farrago.query.FarragoSqlValidator
public class FarragoSqlValidator
FarragoSqlValidator refines SqlValidator with some Farrago-specifics.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eigenbase.sql.validate.SqlValidatorImpl |
---|
SqlValidatorImpl.DmlNamespace, SqlValidatorImpl.FunctionParamInfo, SqlValidatorImpl.IdInfo, SqlValidatorImpl.Status |
Nested classes/interfaces inherited from interface org.eigenbase.sql.validate.SqlValidator |
---|
SqlValidator.Compatible |
Field Summary | |
---|---|
(package private) FarragoPreparingStmt |
preparingStmt
|
Fields inherited from class org.eigenbase.sql.validate.SqlValidatorImpl |
---|
expandColumnReferences, expandIdentifiers, functionCallStack, idPositions, namespaces, scopes, tracer, typeFactory, unknownType, UPDATE_ANON_PREFIX, UPDATE_SRC_ALIAS, UPDATE_TGT_ALIAS |
Constructor Summary | |
---|---|
FarragoSqlValidator(FarragoPreparingStmt preparingStmt,
SqlConformance conformance)
Constructor that relies on the preparingStmt object to provide various other objects during initialization. |
|
FarragoSqlValidator(SqlOperatorTable opTab,
SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory,
SqlConformance conformance,
FarragoPreparingStmt preparingStmt)
Constructor that allows caller to specify dependant objects rather than relying on the preparingStmt to supply them. |
Method Summary | |
---|---|
protected FarragoPreparingStmt |
getPreparingStmt()
|
protected boolean |
shouldAllowIntermediateOrderBy()
|
boolean |
shouldExpandIdentifiers()
Returns expansion of identifiers. |
SqlNode |
validate(SqlNode topNode)
Validates an expression tree. |
void |
validateColumnListParams(SqlFunction function,
RelDataType[] argTypes,
SqlNode[] operands)
Validates a COLUMN_LIST parameter |
void |
validateDataType(SqlDataTypeSpec dataType)
Validates a data type expression. |
void |
validateDelete(SqlDelete call)
Validates a DELETE statement. |
protected void |
validateFeature(org.eigenbase.resgen.ResourceDefinition feature,
SqlParserPos context)
Validates that a particular feature is enabled. |
void |
validateInsert(SqlInsert call)
Validates an INSERT statement. |
void |
validateMerge(SqlMerge call)
Validates a MERGE statement. |
void |
validateUpdate(SqlUpdate call)
Validates an UPDATE statement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final FarragoPreparingStmt preparingStmt
Constructor Detail |
---|
public FarragoSqlValidator(SqlOperatorTable opTab, SqlValidatorCatalogReader catalogReader, RelDataTypeFactory typeFactory, SqlConformance conformance, FarragoPreparingStmt preparingStmt)
public FarragoSqlValidator(FarragoPreparingStmt preparingStmt, SqlConformance conformance)
Method Detail |
---|
public SqlNode validate(SqlNode topNode)
SqlValidator
validate
in interface SqlValidator
validate
in class SqlValidatorImpl
topNode
- top of expression tree to be validated
public boolean shouldExpandIdentifiers()
SqlValidator
shouldExpandIdentifiers
in interface SqlValidator
shouldExpandIdentifiers
in class SqlValidatorImpl
protected boolean shouldAllowIntermediateOrderBy()
shouldAllowIntermediateOrderBy
in class SqlValidatorImpl
public void validateDataType(SqlDataTypeSpec dataType)
SqlValidator
validateDataType
in interface SqlValidator
validateDataType
in class SqlValidatorImpl
dataType
- Data typeprotected FarragoPreparingStmt getPreparingStmt()
public void validateInsert(SqlInsert call)
SqlValidator
validateInsert
in interface SqlValidator
validateInsert
in class SqlValidatorImpl
call
- INSERT statementpublic void validateUpdate(SqlUpdate call)
SqlValidator
validateUpdate
in interface SqlValidator
validateUpdate
in class SqlValidatorImpl
call
- UPDATE statementpublic void validateDelete(SqlDelete call)
SqlValidator
validateDelete
in interface SqlValidator
validateDelete
in class SqlValidatorImpl
call
- DELETE statementpublic void validateMerge(SqlMerge call)
SqlValidator
validateMerge
in interface SqlValidator
validateMerge
in class SqlValidatorImpl
call
- MERGE statementprotected void validateFeature(org.eigenbase.resgen.ResourceDefinition feature, SqlParserPos context)
SqlValidatorImpl
validateFeature
in class SqlValidatorImpl
feature
- feature being used, represented as a resource definition
from EigenbaseResource
context
- parser position context for error reporting, or null if
none availablepublic void validateColumnListParams(SqlFunction function, RelDataType[] argTypes, SqlNode[] operands)
SqlValidator
validateColumnListParams
in interface SqlValidator
validateColumnListParams
in class SqlValidatorImpl
function
- function containing COLUMN_LIST parameterargTypes
- function argumentsoperands
- operands passed into the function call
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |