标签:交换 exec 后台 justify eof for next gets soft
dao层模板
List<Object> listParam = new ArrayList<Object>();
StringBuffer sql = new StringBuffer();
sql.append("SELECT ");
Session session = getHibernateTemplate().getSessionFactory().getCurrentSession();
SQLQuery query = session.createSQLQuery(sql.toString());
for (int i = 0; i < listParam.size(); i++) {
query.setParameter(i, listParam.get(i));
}
List<Object> list = query.list();
//query.executeUpdate(caption);
for (Iterator iterator = list.iterator(); iterator.hasNext();) {
Object[] object = (Object[]) iterator.next();
if(object[0] != null){
String caption = (String) object[1];
voDevice.setCaption(caption);
}
}
在dao层取数字值
String rate = object[0].toString();
voCameraRec.setDataType(((Number)objs[3]).longValue());
取后台dao数字转字符串类型
String.valueOf(((Number)(obj[39])).longValue())
标签:交换 exec 后台 justify eof for next gets soft
原文地址:https://www.cnblogs.com/7q4w1e/p/9591077.html