org.nutz.castor.FailToCastObjectException: Fail to cast from <java.lang.String> to <java.sql.Clob> for
10 回复
public String getHdmsStr() throws SQLException, IOException {
if(this.hdms!=null){
Reader is = hdms.getCharacterStream();
BufferedReader br = new BufferedReader(is);
String s = br.readLine();
StringBuffer sb = new StringBuffer();
while (s != null) {// 执行循环将字符串全部取出付值给 StringBuffer由StringBuffer转成STRING
sb.append(s);
s = br.readLine();
}
return sb.toString();
}else{
return this.hdmsStr;
}
}
public void setHdmsStr(String hdmsStr) {
this.hdmsStr = hdmsStr;
}
public void setHdms(Clob hdms){
this.hdms = hdms;
}
public Clob getHdms() {
return hdms;
}
public String getHdmsStr() throws SQLException, IOException {
if(this.hdms!=null){
Reader is = hdms.getCharacterStream();
BufferedReader br = new BufferedReader(is);
String s = br.readLine();
StringBuffer sb = new StringBuffer();
while (s != null) {// 执行循环将字符串全部取出付值给 StringBuffer由StringBuffer转成STRING
sb.append(s);
s = br.readLine();
}
return sb.toString();
}else{
return this.hdmsStr;
}
}
public void setHdmsStr(String hdmsStr) {
this.hdmsStr = hdmsStr;
}
public void setHdms(Clob hdms){
this.hdms = hdms;
}
public Clob getHdms() {
return hdms;
}
添加回复
请先登陆