xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
AdoConnector.AdoStatement类 参考
类 AdoConnector.AdoStatement 继承关系图:
Inheritance graph
AdoConnector.AdoStatement 的协作图:
Collaboration graph

Public 成员函数

包属性

额外继承的成员函数

详细描述

在文件 AdoConnector.xcsm218 行定义.

构造及析构函数说明

◆ AdoStatement()

AdoStatement ( AdoConnector  m)

在文件 AdoConnector.xcsm221 行定义.

221 {
222 __ado = m;
223 }

成员函数说明

◆ close()

void close ( )
override

重载 Statement .

在文件 AdoConnector.xcsm265 行定义.

265{ }

◆ execute()

int execute ( String  sql)
override

重载 Statement .

在文件 AdoConnector.xcsm225 行定义.

225 {
226 int errcode = 0;
227 String errmsg = "OK";
228
229 long hrs = Helper.ado_execute(__ado.hAdo,sql, false, errcode, errmsg);
230 if (0 == hrs){
231 throw new Sql.SqlException(errcode, errmsg);
232 }else{
233 Helper.ado_delloc_rs(hrs);
234 }
235 return 0;
236 }
Definition String.x:5
Definition xsql.xcs:3

引用了 AdoConnector.hAdo.

◆ executeQuery()

Sql.ResultSet executeQuery ( String  sql)
override

重载 Statement .

在文件 AdoConnector.xcsm241 行定义.

241 {
242 int errcode = 0;
243 String errmsg = "OK";
244 long hrs = Helper.ado_execute(__ado.hAdo,sql, true, errcode, errmsg);
245 if (0 == hrs){
246 throw new Sql.SqlException(errcode, errmsg);
247 }
248 return new AdoResultSet(hrs);
249 }

引用了 AdoConnector.hAdo.

◆ executeUpdate()

int executeUpdate ( String  sql)
override

重载 Statement .

在文件 AdoConnector.xcsm251 行定义.

251 {
252 int errcode = 0;
253 String errmsg = "OK";
254 long hrs = Helper.ado_execute(__ado.hAdo,sql, false, errcode, errmsg);
255 if (0 == hrs){
256 throw new Sql.SqlException(errcode, errmsg);
257 }else{
258 Helper.ado_delloc_rs(hrs);
259 }
260 return 0;
261 }

引用了 AdoConnector.hAdo.

◆ get_changes()

int get_changes ( )
override

重载 Statement .

在文件 AdoConnector.xcsm237 行定义.

237 {
238 throw new Sql.SqlException(-1, "get_changes");
239 return 0;
240 }

◆ getResult()

Sql.ResultSet getResult ( )
override

重载 Statement .

在文件 AdoConnector.xcsm263 行定义.

263{ throw new Sql.DatabaseNotSupportException("getResult"); return nilptr; }

结构体成员变量说明

◆ __ado

AdoConnector __ado
package

在文件 AdoConnector.xcsm219 行定义.