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

Public 成员函数

包函数

包属性

额外继承的成员函数

详细描述

在文件 Mysql.xcsm434 行定义.

构造及析构函数说明

◆ MysqlPreparedResultSet()

MysqlPreparedResultSet ( Mysql.MysqlPreparedStatement  _stmt,
long  r 
)

在文件 Mysql.xcsm438 行定义.

438 {
439 stmt = _stmt;
440 hres = r;
441 field_count = Helper.store_statement_res_4x (r);
442 }
Mysql.MysqlPreparedStatement stmt
Definition Mysql.xcsm:436

成员函数说明

◆ close()

void close ( )
override

重载 ResultSet .

在文件 Mysql.xcsm559 行定义.

559 {
560 if (stmt != nilptr) {
561 stmt = nilptr;
562 hres = 0;
563 }
564 }

被这些函数引用 Mysql.MysqlPreparedResultSet.finalize().

这是这个函数的调用关系图:

◆ finalize()

void finalize ( )
package

在文件 Mysql.xcsm576 行定义.

576 {
577 close();
578 }
void close() override
Definition Mysql.xcsm:559

引用了 Mysql.MysqlPreparedResultSet.close().

函数调用图:

◆ findColumn()

int findColumn ( String  name)
override

重载 ResultSet .

在文件 Mysql.xcsm538 行定义.

538 {
539 return Helper.stmt_find_column (hres, name);
540 }

◆ first()

bool first ( )
override

重载 ResultSet .

在文件 Mysql.xcsm444 行定义.

444 {
445 throw new Sql.DatabaseNotSupportException ("first");
446 return false;
447 }

◆ getBoolean() [1/2]

bool getBoolean ( int  columnIndex)
override

重载 ResultSet .

在文件 Mysql.xcsm530 行定义.

530 {
531 return Helper.stmt_getIValueI (hres, columnIndex) != 0;
532 }

◆ getBoolean() [2/2]

bool getBoolean ( String  columnlabel)
override

重载 ResultSet .

在文件 Mysql.xcsm502 行定义.

502 {
503 return Helper.stmt_getValueI (hres, columnlabel) != 0;
504 }

◆ getByte() [1/2]

byte getByte ( int  columnIndex)
override

重载 ResultSet .

在文件 Mysql.xcsm526 行定义.

526 {
527 return Helper.stmt_getIValueI (hres, columnIndex);
528 }

◆ getByte() [2/2]

byte getByte ( String  columnlabel)
override

重载 ResultSet .

在文件 Mysql.xcsm498 行定义.

498 {
499 return Helper.stmt_getValueI (hres, columnlabel);
500 }

◆ getColumnCount()

int getColumnCount ( )
override

重载 ResultSet .

在文件 Mysql.xcsm546 行定义.

546 {
547 return field_count;
548 }

◆ getColumnName()

String getColumnName ( int  i)
override

重载 ResultSet .

在文件 Mysql.xcsm542 行定义.

542 {
543 return Helper.stmt_get_column (hres, i - 1);
544 }

◆ getColumnType()

int getColumnType ( int  id)
override

重载 ResultSet .

在文件 Mysql.xcsm566 行定义.

566 {
567 if (id > 0 && id < (field_count + 1) ) {
568 return Helper.stmt_column_type (hres, id - 1);
569 } else {
570 throw new Sql.SqlException (-1, "out of argc ");
571 }
572
573 return 0;
574 }

◆ getDouble() [1/2]

double getDouble ( int  columnIndex)
override

重载 ResultSet .

在文件 Mysql.xcsm522 行定义.

522 {
523 return Helper.stmt_getIValueD (hres, columnIndex);
524 }

◆ getDouble() [2/2]

double getDouble ( String  columnlabel)
override

重载 ResultSet .

在文件 Mysql.xcsm494 行定义.

494 {
495 return Helper.stmt_getValueD (hres, columnlabel);
496 }

◆ getFloat() [1/2]

float getFloat ( int  columnIndex)
override

重载 ResultSet .

在文件 Mysql.xcsm518 行定义.

518 {
519 return getString(columnIndex).parseFloat();
520 }
String getString(String columnlabel) override
Definition Mysql.xcsm:506
float parseFloat()

引用了 Mysql.MysqlPreparedResultSet.getString() , 以及 String.parseFloat().

函数调用图:

◆ getFloat() [2/2]

float getFloat ( String  columnlabel)
override

重载 ResultSet .

在文件 Mysql.xcsm490 行定义.

490 {
491 return getString(columnlabel).parseFloat();
492 }

引用了 Mysql.MysqlPreparedResultSet.getString() , 以及 String.parseFloat().

函数调用图:

◆ getInt() [1/2]

int getInt ( int  columnIndex)
override

重载 ResultSet .

在文件 Mysql.xcsm510 行定义.

510 {
511 return Helper.stmt_getIValueI (hres, columnIndex);
512 }

◆ getInt() [2/2]

int getInt ( String  columnlabel)
override

重载 ResultSet .

在文件 Mysql.xcsm482 行定义.

482 {
483 return Helper.stmt_getValueI (hres, columnlabel);
484 }

◆ getLong() [1/2]

long getLong ( int  columnIndex)
override

重载 ResultSet .

在文件 Mysql.xcsm514 行定义.

514 {
515 return Helper.stmt_getIValueL (hres, columnIndex);
516 }

◆ getLong() [2/2]

long getLong ( String  columnlabel)
override

重载 ResultSet .

在文件 Mysql.xcsm486 行定义.

486 {
487 return Helper.stmt_getValueL (hres, columnlabel);
488 }

◆ getRow()

int getRow ( )
override

重载 ResultSet .

在文件 Mysql.xcsm554 行定义.

554 {
555 throw new Sql.DatabaseNotSupportException ("getRow");
556 return 0;
557 }

◆ getRowCount()

long getRowCount ( )
override

重载 ResultSet .

在文件 Mysql.xcsm550 行定义.

550 {
551 return Helper.stmt_row_count (hres);
552 }

◆ getString() [1/2]

String getString ( int  columnIndex)
override

重载 ResultSet .

在文件 Mysql.xcsm534 行定义.

534 {
535 return Helper.stmt_getIValue (hres, columnIndex);
536 }

◆ getString() [2/2]

String getString ( String  columnlabel)
override

重载 ResultSet .

在文件 Mysql.xcsm506 行定义.

506 {
507 return Helper.stmt_getValue (hres, columnlabel);
508 }

被这些函数引用 Mysql.MysqlPreparedResultSet.getFloat() , 以及 Mysql.MysqlPreparedResultSet.getFloat().

这是这个函数的调用关系图:

◆ isEof()

bool isEof ( )
override

重载 ResultSet .

在文件 Mysql.xcsm458 行定义.

458 {
459 throw new Sql.DatabaseNotSupportException ("isEof");
460 return false;
461 }

◆ isFirst()

bool isFirst ( )
override

重载 ResultSet .

在文件 Mysql.xcsm468 行定义.

468 {
469 throw new Sql.DatabaseNotSupportException ("isFirst");
470 return false;
471 }

◆ isLast()

bool isLast ( )
override

重载 ResultSet .

在文件 Mysql.xcsm473 行定义.

473 {
474 throw new Sql.DatabaseNotSupportException ("isLast");
475 return false;
476 }

◆ isValid()

bool isValid ( )
override

重载 ResultSet .

在文件 Mysql.xcsm478 行定义.

478 {
479 return Helper.rs_isValid (hres);
480 }

◆ last()

bool last ( )
override

重载 ResultSet .

在文件 Mysql.xcsm449 行定义.

449 {
450 throw new Sql.DatabaseNotSupportException ("last");
451 return false;
452 }

◆ next()

bool next ( )
override

重载 ResultSet .

在文件 Mysql.xcsm454 行定义.

454 {
455 return Helper.next_statement_res_4x (hres);
456 }

◆ previous()

bool previous ( )
override

重载 ResultSet .

在文件 Mysql.xcsm463 行定义.

463 {
464 throw new Sql.DatabaseNotSupportException ("previous");
465 return false;
466 }

结构体成员变量说明

◆ field_count

int field_count = 0
package

在文件 Mysql.xcsm437 行定义.

◆ hres

long hres
package

在文件 Mysql.xcsm435 行定义.

◆ stmt

在文件 Mysql.xcsm436 行定义.