/** * Parse a SQL code snippet that represents an expression. * * @param sql the code snippet * @return the expression object */ public Expression parseExpression(String sql) { parameters = New.arrayList(); initialize(sql); read(); return readExpression(); }
/** * Parse a SQL code snippet that represents a table name. * * @param sql the code snippet * @return the table object */ public Table parseTableName(String sql) { parameters = New.arrayList(); initialize(sql); read(); return readTableOrView(); }
private Prepared parse(String sql, boolean withExpectedList) { initialize(sql); if (withExpectedList) { expectedList = New.arrayList(); } else { expectedList = null; } parameters = New.arrayList(); currentSelect = null; currentPrepared = null; createView = null; recompileAlways = false; indexedParameterList = suppliedParameterList; read(); return parsePrepared(); }
/** * Parse a SQL code snippet that represents an expression. * * @param sql the code snippet * @return the expression object */ public Expression parseExpression(String sql) { parameters = New.arrayList(); initialize(sql); read(); return readExpression(); }
/** * Parse a SQL code snippet that represents an expression. * * @param sql the code snippet * @return the expression object */ public Expression parseExpression(String sql) { parameters = New.arrayList(); initialize(sql); read(); return readExpression(); }
/** * Parse a SQL code snippet that represents an expression. * * @param sql the code snippet * @return the expression object * @throws SQLException if the code snipped could not be parsed */ public Expression parseExpression(String sql) throws SQLException { parameters = new ObjectArray(); initialize(sql); read(); return readExpression(); }
/** * Parse a SQL code snippet that represents a table name. * * @param sql the code snippet * @return the table object */ public Table parseTableName(String sql) { parameters = New.arrayList(); initialize(sql); read(); return readTableOrView(); } }
/** * Parse a SQL code snippet that represents a table name. * * @param sql the code snippet * @return the table object */ public Table parseTableName(String sql) { parameters = New.arrayList(); initialize(sql); read(); return readTableOrView(); } }
private Prepared parse(String sql, boolean withExpectedList) { initialize(sql); if (withExpectedList) { expectedList = New.arrayList(); } else { expectedList = null; } parameters = New.arrayList(); currentSelect = null; currentPrepared = null; createView = null; recompileAlways = false; indexedParameterList = suppliedParameterList; read(); return parsePrepared(); }
private Prepared parse(String sql, boolean withExpectedList) { initialize(sql); if (withExpectedList) { expectedList = New.arrayList(); } else { expectedList = null; } parameters = New.arrayList(); currentSelect = null; currentPrepared = null; createView = null; recompileAlways = false; indexedParameterList = suppliedParameterList; read(); return parsePrepared(); }
private Prepared parse(String sql, boolean withExpectedList) throws SQLException { initialize(sql); if (withExpectedList) { expected = new ObjectArray(); } else { expected = null; } parameters = new ObjectArray(); currentSelect = null; currentPrepared = null; prepared = null; recompileAlways = false; indexedParameterList = null; read(); return parsePrepared(); }