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

Public 成员函数

包属性

额外继承的成员函数

详细描述

在文件 AdoConnector.xcsm257 行定义.

构造及析构函数说明

◆ AdoPreparedStatement()

AdoPreparedStatement ( AdoConnector  m,
String  sql 
)

在文件 AdoConnector.xcsm260 行定义.

260 {
261 super(sql);
262 __ado = m;
263 }

成员函数说明

◆ close()

void close ( )
override

实现了 Statement.

在文件 AdoConnector.xcsm301 行定义.

301 {
302
303 }

◆ execute()

int execute ( String  sql)
override

实现了 Statement.

在文件 AdoConnector.xcsm265 行定义.

265 {
266 int errcode = 0;
267 String errmsg = nilptr;
268 long hrs = Helper.ado_execute(__ado.hAdo,sql, false, errcode, errmsg);
269 if (0 == hrs){
270 throw new Sql.SqlException(errcode, errmsg);
271 }else{
272 Helper.ado_delloc_rs(hrs);
273 }
274 return 0;
275 }
字符串类
Definition xsql.xcs:3

引用了 AdoConnector.hAdo.

◆ executeQuery()

Sql.ResultSet executeQuery ( String  sql)
override

实现了 Statement.

在文件 AdoConnector.xcsm277 行定义.

277 {
278 int errcode = 0;
279 String errmsg = nilptr;
280 long hrs = Helper.ado_execute(__ado.hAdo,sql, false, errcode, errmsg);
281 if (0 == hrs){
282 throw new Sql.SqlException(errcode, errmsg);
283 }
284 return new AdoResultSet(hrs);
285 }

引用了 AdoConnector.hAdo.

◆ executeUpdate()

int executeUpdate ( String  sql)
override

实现了 Statement.

在文件 AdoConnector.xcsm287 行定义.

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

引用了 AdoConnector.hAdo.

◆ getResult()

Sql.ResultSet getResult ( )
override

实现了 Statement.

在文件 AdoConnector.xcsm299 行定义.

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

结构体成员变量说明

◆ __ado

AdoConnector __ado
package

在文件 AdoConnector.xcsm258 行定义.