@Override public Object getOriginalValue() { Object originalValue; if (originalBinaryValue == null || originalBinaryValue.length() == 0) { originalValue = null; } else { try { if (getContext() == null && getSerializer() != null) { originalValue = serializer.deserialize(originalBinaryValue.getBufferInput()); } else { originalValue = getContext().getValueFromInternalConverter().convert(originalBinaryValue); } } catch (Exception e) { throw Base.ensureRuntimeException(e); } } // TODO: we should hold a weak reference to the result as we might call this method again. return originalValue; }
@Override public Object getKey() { Object key; if (binaryKey == null || binaryKey.length() == 0) { key = null; } else { try { if (getContext() == null && getSerializer() != null) { key = serializer.deserialize(binaryKey.getBufferInput()); } else { key = getContext().getKeyFromInternalConverter().convert(binaryKey); } } catch (Exception e) { throw Base.ensureRuntimeException(e); } } // TODO: we should hold a weak reference to the result as we might call this method again. return key; }
@Override public Object getValue() { Object value; if (binaryValue == null || binaryValue.length() == 0) { value = null; } else { try { if (getContext() == null && getSerializer() != null) { value = serializer.deserialize(binaryValue.getBufferInput()); } else { value = getContext().getValueFromInternalConverter().convert(binaryValue); } } catch (Exception e) { throw Base.ensureRuntimeException(e); } } // TODO: we should hold a weak reference to the result as we might call this method again. return value; }