private void setParameter(List<Object> values, PreparedStatement ps)
			throws SQLException {
		for (int i = 1; i <= values.size(); i++) {
			Object fieldValue = values.get(i - 1);
			Class<?> clazzValue = fieldValue.getClass();
			if (clazzValue == String.class)
				ps.setString(i, (String) fieldValue);
			else if (clazzValue == boolean.class || clazzValue == Boolean.class)
				ps.setBoolean(i, (Boolean) fieldValue);
			else if (clazzValue == char.class || clazzValue == Character.class)
				ps.setObject(i, fieldValue, Types.CHAR);
			else if (clazzValue == Date.class)
				ps.setTimestamp(i, new Timestamp(((Date) fieldValue).getTime()));
			else
				ps.setObject(i, fieldValue, Types.NUMERIC);
		}

	}