final public AbstractMetadataRecord foreignKey(MetadataFactory factory, Table table, String name) throws ParseException { List<String> columnNames = null; String viewName = null; Table reference = null; KeyRecord pk = null; Column column = null; List<String> pkColumnNames = null; KeyRecord key = null; jj_consume_token(FOREIGN); jj_consume_token(KEY); columnNames = columnList(true, false); jj_consume_token(REFERENCES); viewName = id(null); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: pkColumnNames = columnList(true, false); break; default: jj_la1[425] = jj_gen; ; } {if (true) return factory.addForeignKey(name != null?name:("FK"+table.getForeignKeys().size()), columnNames, pkColumnNames, viewName, table);} throw new Error("Missing return statement in function"); }
final public AbstractMetadataRecord foreignKey(MetadataFactory factory, Table table, String name) throws ParseException { List<String> columnNames = null; String viewName = null; Table reference = null; KeyRecord pk = null; Column column = null; List<String> pkColumnNames = null; KeyRecord key = null; jj_consume_token(FOREIGN); jj_consume_token(KEY); columnNames = columnList(true, false); jj_consume_token(REFERENCES); viewName = id(null); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: pkColumnNames = columnList(true, false); break; default: jj_la1[406] = jj_gen; ; } {if (true) return factory.addForiegnKey(name != null?name:("FK"+table.getForeignKeys().size()), columnNames, pkColumnNames, viewName, table);} throw new Error("Missing return statement in function"); }
final public AbstractMetadataRecord foreignKey(MetadataFactory factory, Table table, String name) throws ParseException { List<String> columnNames = null; String viewName = null; Table reference = null; KeyRecord pk = null; Column column = null; List<String> pkColumnNames = null; KeyRecord key = null; jj_consume_token(FOREIGN); jj_consume_token(KEY); columnNames = columnList(true, false); jj_consume_token(REFERENCES); viewName = id(null); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: pkColumnNames = columnList(true, false); break; default: jj_la1[425] = jj_gen; ; } {if (true) return factory.addForeignKey(name != null?name:("FK"+table.getForeignKeys().size()), columnNames, pkColumnNames, viewName, table);} throw new Error("Missing return statement in function"); }
final public AbstractMetadataRecord primaryKey(MetadataFactory factory, Table table, String name) throws ParseException { List<String> columnNames = null; Column column = null; KeyRecord key = null; jj_consume_token(PRIMARY); jj_consume_token(KEY); columnNames = columnList(true, false); if (table.getPrimaryKey() != null){ {if (true) throw new MetadataException(QueryPlugin.Util.getString("SQLParser.pk_exists", table.getName()));} } {if (true) return factory.addPrimaryKey(name!=null?name:"PK", columnNames, table);} throw new Error("Missing return statement in function"); }
final public AbstractMetadataRecord primaryKey(MetadataFactory factory, Table table, String name) throws ParseException { List<String> columnNames = null; Column column = null; KeyRecord key = null; jj_consume_token(PRIMARY); jj_consume_token(KEY); columnNames = columnList(true, false); if (table.getPrimaryKey() != null){ {if (true) throw new MetadataException(QueryPlugin.Util.getString("SQLParser.pk_exists", table.getName()));} } {if (true) return factory.addPrimaryKey(name!=null?name:"PK", columnNames, table);} throw new Error("Missing return statement in function"); }
final public AbstractMetadataRecord primaryKey(MetadataFactory factory, Table table, String name) throws ParseException { List<String> columnNames = null; Column column = null; KeyRecord key = null; jj_consume_token(PRIMARY); jj_consume_token(KEY); columnNames = columnList(true, false); if (table.getPrimaryKey() != null){ {if (true) throw new MetadataException(QueryPlugin.Util.getString("SQLParser.pk_exists", table.getName()));} } {if (true) return factory.addPrimaryKey(name!=null?name:"PK", columnNames, table);} throw new Error("Missing return statement in function"); }
throw new ParseException(); columnNames = columnList(true, false); if (type.image.equalsIgnoreCase("UNIQUE")) { {if (true) return factory.addIndex(name != null?name:("UNIQUE"+table.getUniqueKeys().size()), false, columnNames, table);}
final public WithQueryCommand withListElement(ParseInfo info) throws ParseException { String name = null; List<ElementSymbol> columns = null; QueryCommand queryExpression = null; Token lparen = null; name = id(Boolean.FALSE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: columns = columnList(true, true); break; default: jj_la1[87] = jj_gen; ; } jj_consume_token(AS); lparen = jj_consume_token(LPAREN); queryExpression = queryExpression(info); jj_consume_token(RPAREN); WithQueryCommand result = new WithQueryCommand(new GroupSymbol(name), columns, queryExpression); parseWithHints(lparen, result); {if (true) return result;} throw new Error("Missing return statement in function"); }
throw new ParseException(); columnNames = columnList(true, false); if (type.image.equalsIgnoreCase("UNIQUE")) { {if (true) return factory.addIndex(name != null?name:("UNIQUE"+table.getUniqueKeys().size()), false, columnNames, table);}
final public WithQueryCommand withListElement(ParseInfo info) throws ParseException { String name = null; List<ElementSymbol> columns = null; QueryCommand queryExpression = null; Token lparen = null; name = id(Boolean.FALSE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: columns = columnList(true, true); break; default: jj_la1[88] = jj_gen; ; } jj_consume_token(AS); lparen = jj_consume_token(LPAREN); queryExpression = queryExpression(info); jj_consume_token(RPAREN); WithQueryCommand result = new WithQueryCommand(new GroupSymbol(name), columns, queryExpression); parseWithHints(lparen, result); {if (true) return result;} throw new Error("Missing return statement in function"); }
final public WithQueryCommand withListElement(ParseInfo info) throws ParseException { String name = null; List<ElementSymbol> columns = null; QueryCommand queryExpression = null; Token lparen = null; name = id(Boolean.FALSE); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: columns = columnList(true, true); break; default: jj_la1[87] = jj_gen; ; } jj_consume_token(AS); lparen = jj_consume_token(LPAREN); queryExpression = queryExpression(info); jj_consume_token(RPAREN); WithQueryCommand result = new WithQueryCommand(new GroupSymbol(name), columns, queryExpression); parseWithHints(lparen, result); {if (true) return result;} throw new Error("Missing return statement in function"); }
throw new ParseException(); columnNames = columnList(true, false); if (type.image.equalsIgnoreCase("UNIQUE")) { {if (true) return factory.addIndex(name != null?name:("UNIQUE"+table.getUniqueKeys().size()), false, columnNames, table);}
jj_consume_token(PRIMARY); jj_consume_token(KEY); pk = columnList(true, true); create.getPrimaryKey().addAll(pk); break;
jj_consume_token(PRIMARY); jj_consume_token(KEY); pk = columnList(true, true); create.getPrimaryKey().addAll(pk); break;
jj_consume_token(PRIMARY); jj_consume_token(KEY); pk = columnList(true, true); create.getPrimaryKey().addAll(pk); break;
group = id(null); if (jj_2_16(2147483647)) { columns = columnList(false, true); insert.setVariables(columns); } else {
group = id(null); if (jj_2_15(2147483647)) { columns = columnList(false, true); insert.setVariables(columns); } else {
group = id(null); if (jj_2_15(2147483647)) { columns = columnList(false, true); insert.setVariables(columns); } else {