//org.apache.commons.collections.map.MultiKeyMap
MultiKeyMap mymap = new MultiKeyMap();
HibernateTransactionManager transactionManager = (HibernateTransactionManager)ac.getBean("transactionManager");
Session session = transactionManager.getSessionFactory().openSession();
Query quary = session.createSQLQuery(sql.toString());
quary.executeUpdate();
List<Object[]> values = quary.list();
for(Object[] value : values){
if(value[0] != null && value[1] != null){
// map.put(value[0].toString(), value[1].toString());
mymap.put(value[0].toString(),value[2].toString(),value[3].toString(),value[1].toString());
}
}
........
String backQty = (String) mymap.get(recePrice, orderQty,
carQty.substring(0, carQty.indexOf("/")));
//MultiKeyMap 可以根据N个条件作为key取得value值