📄 getcustomerbeanrow.java
字号:
package itso.storedproc.bean;
import java.sql.*;
import com.ibm.db.beans.*;
/**
* This class represents a specific row of a result set
* contained in a DBProcedureCall.
* Generated: Apr 7, 2003 2:34:17 PM
*/
public class GetCustomerBeanRow {
private int rowNumber;
private DBProcedureCall procCall;
/**
* Constructs an object that represents a row from a DBProcedureCall.
*/
public GetCustomerBeanRow(DBProcedureCall aRef, int aRowNumber) {
procCall = aRef;
rowNumber = aRowNumber;
}
/**
* Returns the value of column CUSTOMER_CUSTOMERID in the row represented by this object.
*/
public Object getCUSTOMER_CUSTOMERID() throws SQLException {
return procCall.getCacheValueAt(rowNumber, 1);
}
/**
* Returns the value of column CUSTOMER_TITLE in the row represented by this object.
*/
public Object getCUSTOMER_TITLE() throws SQLException {
return procCall.getCacheValueAt(rowNumber, 2);
}
/**
* Returns the value of column CUSTOMER_FIRSTNAME in the row represented by this object.
*/
public Object getCUSTOMER_FIRSTNAME() throws SQLException {
return procCall.getCacheValueAt(rowNumber, 3);
}
/**
* Returns the value of column CUSTOMER_LASTNAME in the row represented by this object.
*/
public Object getCUSTOMER_LASTNAME() throws SQLException {
return procCall.getCacheValueAt(rowNumber, 4);
}
/**
* Returns the value of column CUSTOMER_USERID in the row represented by this object.
*/
public Object getCUSTOMER_USERID() throws SQLException {
return procCall.getCacheValueAt(rowNumber, 5);
}
/**
* Returns the value of column CUSTOMER_PASSWORD in the row represented by this object.
*/
public Object getCUSTOMER_PASSWORD() throws SQLException {
return procCall.getCacheValueAt(rowNumber, 6);
}
/**
* Returns a String that contains all of the values in the row represented by this object.
*/
public String toString() {
String string = "";
try {
for (int i = 1; i <= procCall.getColumnCount(); i++) {
string += procCall.getCacheValueAt(rowNumber, i);
string += " ";
}
} catch (SQLException ex) {
return null;
}
return string;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -