void checkNonQueryExpression(ExprContext exprContext) throws ParseException { switch (exprContext) { case ACCEPT_QUERY: throw SqlUtil.newContextException(getPos(), RESOURCE.illegalNonQueryExpression()); } }
/** * Parses a dynamic parameter marker. */ final public SqlDynamicParam DynamicParam() throws ParseException { SqlParserPos pos; jj_consume_token(HOOK); pos = getPos(); {if (true) return new SqlDynamicParam(nDynamicParams++, pos);} throw new Error("Missing return statement in function"); }
void checkQueryExpression(ExprContext exprContext) throws ParseException { switch (exprContext) { case ACCEPT_NON_QUERY: case ACCEPT_SUB_QUERY: case ACCEPT_CURSOR: throw SqlUtil.newContextException(getPos(), RESOURCE.illegalQueryExpression()); } }
/** * Parses a simple identifier as an SqlIdentifier. */ final public SqlIdentifier SimpleIdentifier() throws ParseException { String p; SqlParserPos pos; p = Identifier(); pos = getPos(); {if (true) return new SqlIdentifier(p,pos);} throw new Error("Missing return statement in function"); }
final public SqlLiteral JdbcOdbcDataType() throws ParseException { SqlJdbcDataTypeName typeName; typeName = JdbcOdbcDataTypeName(); {if (true) return typeName.symbol(getPos());} throw new Error("Missing return statement in function"); }
/** * Parses a VALUES leaf query expression. */ final public SqlNode TableConstructor() throws ParseException { SqlNodeList rowConstructorList; SqlParserPos pos; jj_consume_token(VALUES); pos = getPos(); rowConstructorList = RowConstructorList(pos); {if (true) return SqlStdOperatorTable.VALUES.createCall( pos.plus(getPos()), rowConstructorList.toArray());} throw new Error("Missing return statement in function"); }
final public SqlIdentifier CollectionsTypeName() throws ParseException { SqlIdentifier typeName = null; SqlParserPos pos = getPos(); jj_consume_token(MULTISET); typeName = new SqlIdentifier( SqlTypeName.MULTISET.name(),pos); {if (true) return typeName;} throw new Error("Missing return statement in function"); }
/** * Parses a NEW UDT(...) expression. */ final public SqlNode NewSpecification() throws ParseException { SqlParserPos callPos; SqlNode routineCall; jj_consume_token(NEW); callPos = getPos(); routineCall = NamedRoutineCall(SqlFunctionCategory.USER_DEFINED_CONSTRUCTOR, ExprContext.ACCEPT_SUB_QUERY); {if (true) return SqlStdOperatorTable.NEW.createCall(callPos, routineCall);} throw new Error("Missing return statement in function"); }
/** * Parses a CALL statement. */ final public SqlNode SqlProcedureCall() throws ParseException { SqlParserPos callPos; SqlNode routineCall; jj_consume_token(CALL); callPos = getPos(); routineCall = NamedRoutineCall(SqlFunctionCategory.USER_DEFINED_PROCEDURE, ExprContext.ACCEPT_SUB_QUERY); {if (true) return SqlStdOperatorTable.PROCEDURE_CALL.createCall( callPos, routineCall);} throw new Error("Missing return statement in function"); }
/** * Parses a dynamic parameter marker. */ final public SqlDynamicParam DynamicParam() throws ParseException { SqlParserPos pos; jj_consume_token(HOOK); pos = getPos(); {if (true) return new SqlDynamicParam(nDynamicParams++, pos);} throw new Error("Missing return statement in function"); }
final public SqlLiteral JdbcOdbcDataType() throws ParseException { SqlJdbcDataTypeName typeName; typeName = JdbcOdbcDataTypeName(); {if (true) return typeName.symbol(getPos());} throw new Error("Missing return statement in function"); }
void checkQueryExpression(ExprContext exprContext) throws ParseException { switch (exprContext) { case ACCEPT_NON_QUERY: case ACCEPT_SUB_QUERY: case ACCEPT_CURSOR: throw SqlUtil.newContextException(getPos(), RESOURCE.illegalQueryExpression()); } }
/** * Parses a simple identifier as an SqlIdentifier. */ final public SqlIdentifier SimpleIdentifier() throws ParseException { String p; SqlParserPos pos; p = Identifier(); pos = getPos(); {if (true) return new SqlIdentifier(p,pos);} throw new Error("Missing return statement in function"); }
void checkNonQueryExpression(ExprContext exprContext) throws ParseException { switch (exprContext) { case ACCEPT_QUERY: throw SqlUtil.newContextException(getPos(), RESOURCE.illegalNonQueryExpression()); } }
/** * List of simple identifiers in parentheses. The position extends from the * open parenthesis to the close parenthesis. */ final public SqlNodeList ParenthesizedSimpleIdentifierList() throws ParseException { SqlParserPos pos; List<SqlNode> list = new ArrayList<SqlNode>(); jj_consume_token(LPAREN); pos = getPos(); SimpleIdentifierCommaList(list); jj_consume_token(RPAREN); {if (true) return new SqlNodeList(list, pos.plus(getPos()));} throw new Error("Missing return statement in function"); }
/** * Parses a VALUES leaf query expression. */ final public SqlNode TableConstructor() throws ParseException { SqlNodeList rowConstructorList; SqlParserPos pos; jj_consume_token(VALUES); pos = getPos(); rowConstructorList = RowConstructorList(pos); {if (true) return SqlStdOperatorTable.VALUES.createCall( pos.plus(getPos()), rowConstructorList.toArray());} throw new Error("Missing return statement in function"); }
final public SqlIdentifier CollectionsTypeName() throws ParseException { SqlIdentifier typeName = null; SqlParserPos pos = getPos(); jj_consume_token(MULTISET); typeName = new SqlIdentifier( SqlTypeName.MULTISET.name(),pos); {if (true) return typeName;} throw new Error("Missing return statement in function"); }
/** * Parses a NEW UDT(...) expression. */ final public SqlNode NewSpecification() throws ParseException { SqlParserPos callPos; SqlNode routineCall; jj_consume_token(NEW); callPos = getPos(); routineCall = NamedRoutineCall(SqlFunctionCategory.USER_DEFINED_CONSTRUCTOR, ExprContext.ACCEPT_SUB_QUERY); {if (true) return SqlStdOperatorTable.NEW.createCall(callPos, routineCall);} throw new Error("Missing return statement in function"); }