public String updateToTable(OrmInfo orm, List args)  {		
		StringBuffer sql = new StringBuffer();
		sql.append("update ").append(orm.getTableName()).append(" set ");
		Map<String, ColumnField> colMapping = orm.getColumnFields();
		Map<String, IdField> idMapping = orm.getIdFields();
		int colNum = 1;
		for (String key : colMapping.keySet()) {
			String colName = key;
			if (orm.hasColumnField(colName)) {
				sql.append(colName).append(" = ? ");
				args.add(colMapping.get(key).getValue());
				if (colNum < colMapping.size()) {
					sql.append(" , ");
					colNum++;
				}
			}
		}
		sql.append(" where ");
		int idNum = 1;
		String idName = null;
		for (String key : idMapping.keySet()) {
			idName = key;
			if (orm.hasIdField(idName)) {
				sql.append(idName + " = ?");
				args.add(idMapping.get(key).getValue());
				if (idNum < idMapping.size()) {
					sql.append(" and ");
					idNum++;
				}
			}			
		}
		sql.append(" returning ").append(idName).append(" into ?");
		return sql.toString();
	}