Java Reference
In-Depth Information
protected String memberId;
protected String eyecolor;
protected String haircolor;
protected String build;
protected String height;
protected Connection con;
protected Statement stmt;
protected ResultSet rs;
protected ResultSetMetaData md;
public MemberUpdateXMLBean(){
}
public void setMemberId(String memberId){
this.memberId=memberId;
}
public String getMemberId(){
return memberId;
}
public void setEyecolor(String eyecolor){
this.eyecolor=eyecolor;
}
public void setHaircolor(String haircolor){
this.haircolor=haircolor;
}
public void setBuild(String build){
this.build=build;
}
public void setHeight(String height){
this.height=height;
}
public String getMemberXmlString(){
String xml = new String(getMemberData());
return xml.trim();
}
public String updateMemberData(){
String status = "Update successful";
System.out.println("ResultSet = "+rs);
try {
if(rs.getConcurrency()==ResultSet.CONCUR_UPDATABLE){
System.out.println("UPDATABLE");
int nColumns = md.getColumnCount();
rs.updateString("eyecolor", eyecolor);
Search WWH ::




Custom Search