提交 03637928 authored 作者: Thomas Mueller's avatar Thomas Mueller

JaQu: the decompiler has been improved.

上级 04c07ad4
...@@ -17,13 +17,13 @@ import java.util.ArrayList; ...@@ -17,13 +17,13 @@ import java.util.ArrayList;
* This class represents a parameterized SQL statement. * This class represents a parameterized SQL statement.
*/ */
//## Java 1.5 begin ## //## Java 1.5 begin ##
public class SQLStatementX { public class SQLStatement {
private Db db; private Db db;
private StringBuilder buff = new StringBuilder(); private StringBuilder buff = new StringBuilder();
private String sql; private String sql;
private ArrayList<Object> params = new ArrayList<Object>(); private ArrayList<Object> params = new ArrayList<Object>();
SQLStatementX(Db db) { SQLStatement(Db db) {
this.db = db; this.db = db;
} }
...@@ -32,7 +32,7 @@ public class SQLStatementX { ...@@ -32,7 +32,7 @@ public class SQLStatementX {
buff = new StringBuilder(sql); buff = new StringBuilder(sql);
} }
public SQLStatementX appendSQL(String s) { public SQLStatement appendSQL(String s) {
buff.append(s); buff.append(s);
sql = null; sql = null;
return this; return this;
...@@ -45,7 +45,7 @@ public class SQLStatementX { ...@@ -45,7 +45,7 @@ public class SQLStatementX {
return sql; return sql;
} }
SQLStatementX addParameter(Object o) { SQLStatement addParameter(Object o) {
params.add(o); params.add(o);
return this; return this;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论