public Boolean update(Object entity) throws DBException {
		Element classElement = null;
		if (false == CheckEntityUtil.doCheck(entity.getClass())) {
			throw new DBException("所操作的类在xml中不存在！请检查！");
		}
		String primaryName = autil.getAnnotationPrimaryNameByField(entity
				.getClass());
		classElement = ReadXmlUtil.getElement(entity.getClass());
		// 获取实体类对应的全部字段及其值;
		Map<String, Object> fieldsValue = autil.getAllFieldsValue(entity);

		String tableName = classElement.attributeValue("table");

		String sql = "update " + tableName + " set ";
		// 获取拼接后的Sql语句
		sql = parseSqlUtil.createUpdateSql(sql, fieldsValue, classElement,
				primaryName);

		if (sql == null || sql.equals("update " + tableName + " set ")) {
			return false;
		} else {
			List<Object> objValues = null;
			List<String> objTypes = null;
			// //获取对应的save的实体的字段相对应顺序的值和数据类型的集合(注：顺序必须要匹配,不然会出现错误！)
			try {
				objValues = parseSqlUtil.getListValueToUpdate(fieldsValue,
						classElement, primaryName);
				objTypes = parseSqlUtil.getListTypeToUpdate(fieldsValue,
						classElement, primaryName);
				// System.out.println(objValues);
			} catch (Exception e) {
				e.printStackTrace();

				throw new DBException("在执行Update的List<>方法出现错误！！！");

			}
			// 调用模板类中的更新方法.
			return daoOptemplate.getInstance().update(sql, objValues, objTypes,
					false);
		}

	}