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

Public 成员函数

包属性

额外继承的成员函数

详细描述

在文件 AdoConnector.xcsm269 行定义.

构造及析构函数说明

◆ AdoPreparedStatement()

AdoPreparedStatement ( AdoConnector  m,
String  sql 
)

在文件 AdoConnector.xcsm272 行定义.

272 {
273 super(sql);
274 __ado = m;
275 }

成员函数说明

◆ close()

void close ( )
override

重载 Statement .

在文件 AdoConnector.xcsm313 行定义.

313 {
314
315 }

◆ execute()

int execute ( String  sql)
override

重载 Statement .

在文件 AdoConnector.xcsm277 行定义.

277 {
278 int errcode = 0;
279 String errmsg = "OK";
280 long hrs = Helper.ado_execute(__ado.hAdo,sql, false, errcode, errmsg);
281 if (0 == hrs){
282 throw new Sql.SqlException(errcode, errmsg);
283 }else{
284 Helper.ado_delloc_rs(hrs);
285 }
286 return 0;
287 }
Definition String.x:5
Definition xsql.xcs:3

引用了 AdoConnector.hAdo.

◆ executeQuery()

Sql.ResultSet executeQuery ( String  sql)
override

重载 Statement .

在文件 AdoConnector.xcsm289 行定义.

289 {
290 int errcode = 0;
291 String errmsg = "OK";
292 long hrs = Helper.ado_execute(__ado.hAdo,sql, false, errcode, errmsg);
293 if (0 == hrs){
294 throw new Sql.SqlException(errcode, errmsg);
295 }
296 return new AdoResultSet(hrs);
297 }

引用了 AdoConnector.hAdo.

◆ executeUpdate()

int executeUpdate ( String  sql)
override

重载 Statement .

在文件 AdoConnector.xcsm299 行定义.

299 {
300 int errcode = 0;
301 String errmsg = "OK";
302 long hrs = Helper.ado_execute(__ado.hAdo,sql, false, errcode, errmsg);
303 if (0 == hrs){
304 throw new Sql.SqlException(errcode, errmsg);
305 }else{
306 Helper.ado_delloc_rs(hrs);
307 }
308 return 0;
309 }

引用了 AdoConnector.hAdo.

◆ getResult()

Sql.ResultSet getResult ( )
override

重载 Statement .

在文件 AdoConnector.xcsm311 行定义.

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

结构体成员变量说明

◆ __ado

AdoConnector __ado
package

在文件 AdoConnector.xcsm270 行定义.