xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数 | 包属性
AdoConnector.AdoStatement类 参考
类 AdoConnector.AdoStatement 继承关系图:
Statement

Public 成员函数

包属性

额外继承的成员函数

详细描述

在文件 AdoConnector.xcsm206 行定义.

构造及析构函数说明

◆ AdoStatement()

AdoStatement ( AdoConnector  m)

在文件 AdoConnector.xcsm209 行定义.

209 {
210 __ado = m;
211 }

成员函数说明

◆ close()

void close ( )
override

实现了 Statement.

在文件 AdoConnector.xcsm253 行定义.

253{ }

◆ execute()

int execute ( String  sql)
override

实现了 Statement.

在文件 AdoConnector.xcsm213 行定义.

213 {
214 int errcode = 0;
215 String errmsg = nilptr;
216
217 long hrs = Helper.ado_execute(__ado.hAdo,sql, false, errcode, errmsg);
218 if (0 == hrs){
219 throw new Sql.SqlException(errcode, errmsg);
220 }else{
221 Helper.ado_delloc_rs(hrs);
222 }
223 return 0;
224 }
字符串类
Definition xsql.xcs:3

引用了 AdoConnector.hAdo.

◆ executeQuery()

Sql.ResultSet executeQuery ( String  sql)
override

实现了 Statement.

在文件 AdoConnector.xcsm229 行定义.

229 {
230 int errcode = 0;
231 String errmsg = nilptr;
232 long hrs = Helper.ado_execute(__ado.hAdo,sql, true, errcode, errmsg);
233 if (0 == hrs){
234 throw new Sql.SqlException(errcode, errmsg);
235 }
236 return new AdoResultSet(hrs);
237 }

引用了 AdoConnector.hAdo.

◆ executeUpdate()

int executeUpdate ( String  sql)
override

实现了 Statement.

在文件 AdoConnector.xcsm239 行定义.

239 {
240 int errcode = 0;
241 String errmsg = nilptr;
242 long hrs = Helper.ado_execute(__ado.hAdo,sql, false, errcode, errmsg);
243 if (0 == hrs){
244 throw new Sql.SqlException(errcode, errmsg);
245 }else{
246 Helper.ado_delloc_rs(hrs);
247 }
248 return 0;
249 }

引用了 AdoConnector.hAdo.

◆ get_changes()

int get_changes ( )
override

实现了 Statement.

在文件 AdoConnector.xcsm225 行定义.

225 {
226 throw new SqlException(-1, "get_changes");
227 return 0;
228 }

◆ getResult()

Sql.ResultSet getResult ( )
override

实现了 Statement.

在文件 AdoConnector.xcsm251 行定义.

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

结构体成员变量说明

◆ __ado

AdoConnector __ado
package

在文件 AdoConnector.xcsm207 行定义.