提交 04c07ad4 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 007fbdfd
...@@ -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 SQLStatement { public class SQLStatementX {
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>();
SQLStatement(Db db) { SQLStatementX(Db db) {
this.db = db; this.db = db;
} }
...@@ -32,7 +32,7 @@ public class SQLStatement { ...@@ -32,7 +32,7 @@ public class SQLStatement {
buff = new StringBuilder(sql); buff = new StringBuilder(sql);
} }
SQLStatement appendSQL(String s) { public SQLStatementX appendSQL(String s) {
buff.append(s); buff.append(s);
sql = null; sql = null;
return this; return this;
...@@ -45,7 +45,7 @@ public class SQLStatement { ...@@ -45,7 +45,7 @@ public class SQLStatement {
return sql; return sql;
} }
SQLStatement addParameter(Object o) { SQLStatementX addParameter(Object o) {
params.add(o); params.add(o);
return this; return this;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论