?? queryresult.java
字號(hào):
//Source file: C:\\Rose2Java\\zhsoft\\dbcon\\QueryResult.javapackage zhsoft.dbcon;import java.util.Vector;/** * 數(shù)據(jù)庫(kù)查詢結(jié)果集 * * @author 雨亦奇(zhsoft88@sohu.com) * @version 1.0 * @since 2003.05.18 */public class QueryResult extends Vector{ /** * @roseuid 3ED8687E02FB */ public QueryResult() { } /** * 取一行結(jié)果 * * @param lineno - 行號(hào) * @return zhsoft.dbcon.ResultRow * @throws java.lang.Exception * @roseuid 3ED55155003C */ public ResultRow getRow(int lineno) throws Exception { if (this.size() == 0) { throw new Exception("結(jié)果集中記錄為0"); } if (lineno < 0 || lineno >= this.size()) { throw new Exception("無(wú)指定行號(hào)的記錄,行號(hào)范圍[0.." + (this.size() - 1) + "]"); } return (ResultRow) ( (ResultRow) (this.elementAt(lineno))).clone(); }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -