public void setValue(Object value, ValueFields valueFields) { if (value != null) { valueFields.setLongValue(((Date) value).getTime()); } else { valueFields.setLongValue(null); } }
public Object getValue(ValueFields valueFields) { Long longValue = valueFields.getLongValue(); if (longValue != null) { return new Date(longValue); } return null; }