@Test public void testParameters() { Parameters parameters = Parameters.parse("insert into xyz (foo, bar) values :foo, :bar"); assertEquals("insert into xyz (foo, bar) values ?, ?", parameters.getSQL()); }
private Parameters(String sql, LinkedList<String> keys) { this.sql = sql; this.keys = keys; }
Parameters { private Parameters(String sql, LinkedList<String> keys) { this.sql = sql; this.keys = keys; } }
Parameters { private Parameters(String sql, LinkedList<String> keys) { this.sql = sql; this.keys = keys; } private  Parameters(String sql, LinkedList<String> keys); }
Parameters { private Parameters(String sql, LinkedList<String> keys) { this.sql = sql; this.keys = keys; } private  Parameters(String sql, LinkedList<String> keys); String getSQL(); void apply(PreparedStatement statement, Map<String, ?> arguments); static Parameters parse(String sql); static Parameters parse(Reader sqlReader); }
Parameters { private Parameters(String sql, LinkedList<String> keys) { this.sql = sql; this.keys = keys; } private  Parameters(String sql, LinkedList<String> keys); String getSQL(); void apply(PreparedStatement statement, Map<String, ?> arguments); static Parameters parse(String sql); static Parameters parse(Reader sqlReader);  }