/** * Parses a query (SELECT, UNION, INTERSECT, EXCEPT, VALUES, TABLE) followed by * the end-of-file symbol. */ final public SqlNode SqlQueryEof() throws ParseException { SqlNode query; query = OrderedQueryOrExpr(ExprContext.ACCEPT_QUERY); jj_consume_token(0); {if (true) return query;} throw new Error("Missing return statement in function"); }
/** * Parses a SQL expression (such as might occur in a WHERE clause) followed by * the end-of-file symbol. */ final public SqlNode SqlExpressionEof() throws ParseException { SqlNode e; e = Expression(ExprContext.ACCEPT_SUB_QUERY); jj_consume_token(0); {if (true) return e;} throw new Error("Missing return statement in function"); }
final public int UnsignedIntLiteral() throws ParseException { Token t; t = jj_consume_token(UNSIGNED_INTEGER_LITERAL); try { {if (true) return Integer.parseInt(t.image);} } catch (NumberFormatException ex) { {if (true) throw generateParseException();} } throw new Error("Missing return statement in function"); }
/** * Parses a COLLATE clause */ final public SqlCollation CollateClause() throws ParseException { jj_consume_token(COLLATE); jj_consume_token(COLLATION_ID); {if (true) return new SqlCollation( getToken(0).image, SqlCollation.Coercibility.EXPLICIT);} throw new Error("Missing return statement in function"); }
/** * Parses an SQL statement followed by the end-of-file symbol. */ final public SqlNode SqlStmtEof() throws ParseException { SqlNode stmt; stmt = SqlStmt(); jj_consume_token(0); {if (true) return stmt;} throw new Error("Missing return statement in function"); }
final public String Scope() throws ParseException { if (jj_2_254(2)) { jj_consume_token(SYSTEM); } else if (jj_2_255(2)) { jj_consume_token(SESSION); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return token.image.toUpperCase();} throw new Error("Missing return statement in function"); }
/** * Parses the name of a JDBC function that is a token but is not reserved. */ final public String NonReservedJdbcFunctionName() throws ParseException { jj_consume_token(SUBSTRING); {if (true) return unquotedIdentifier();} throw new Error("Missing return statement in function"); }
/** * Parses an explicit TABLE t reference. */ final public SqlNode ExplicitTable(SqlParserPos pos) throws ParseException { SqlNode tableRef; jj_consume_token(TABLE); tableRef = CompoundIdentifier(); {if (true) return SqlStdOperatorTable.EXPLICIT_TABLE.createCall(pos, tableRef);} 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"); }
/** * Parses a COLLATE clause */ final public SqlCollation CollateClause() throws ParseException { jj_consume_token(COLLATE); jj_consume_token(COLLATION_ID); {if (true) return new SqlCollation( getToken(0).image, SqlCollation.Coercibility.EXPLICIT);} throw new Error("Missing return statement in function"); }
final public String Scope() throws ParseException { if (jj_2_254(2)) { jj_consume_token(SYSTEM); } else if (jj_2_255(2)) { jj_consume_token(SESSION); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return token.image.toUpperCase();} throw new Error("Missing return statement in function"); }
final public int UnsignedIntLiteral() throws ParseException { Token t; t = jj_consume_token(UNSIGNED_INTEGER_LITERAL); try { {if (true) return Integer.parseInt(t.image);} } catch (NumberFormatException ex) { {if (true) throw generateParseException();} } throw new Error("Missing return statement in function"); }
/** * Parses the name of a JDBC function that is a token but is not reserved. */ final public String NonReservedJdbcFunctionName() throws ParseException { jj_consume_token(SUBSTRING); {if (true) return unquotedIdentifier();} throw new Error("Missing return statement in function"); }
/** * Parses a query (SELECT, UNION, INTERSECT, EXCEPT, VALUES, TABLE) followed by * the end-of-file symbol. */ final public SqlNode SqlQueryEof() throws ParseException { SqlNode query; query = OrderedQueryOrExpr(ExprContext.ACCEPT_QUERY); jj_consume_token(0); {if (true) return query;} 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 an SQL statement followed by the end-of-file symbol. */ final public SqlNode SqlStmtEof() throws ParseException { SqlNode stmt; stmt = SqlStmt(); jj_consume_token(0); {if (true) return stmt;} 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 Natural() throws ParseException { if (jj_2_108(2)) { jj_consume_token(NATURAL); {if (true) return SqlLiteral.createBoolean(true, getPos());} } else { {if (true) return SqlLiteral.createBoolean(false, getPos());} } 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"); }
final public SqlLiteral Natural() throws ParseException { if (jj_2_108(2)) { jj_consume_token(NATURAL); {if (true) return SqlLiteral.createBoolean(true, getPos());} } else { {if (true) return SqlLiteral.createBoolean(false, getPos());} } throw new Error("Missing return statement in function"); }