@Override @SuppressWarnings("unchecked") public Value convertOnWriteSingle(Object propertyVal) { Object result = propertyVal; if (result != null) { TypeTargets typeTargets = computeTypeTargets(result.getClass()); if (typeTargets.getFirstStepTarget() != null) { result = this.conversionService.convert(propertyVal, typeTargets.getFirstStepTarget()); } if (typeTargets.getSecondStepTarget() != null) { result = this.internalConversionService.convert(result, typeTargets.getSecondStepTarget()); } } return DatastoreNativeTypes.wrapValue(result); }
@Override @SuppressWarnings("unchecked") public Value convertOnWriteSingle(Object propertyVal) { Object result = propertyVal; if (result != null) { TypeTargets typeTargets = computeTypeTargets(result.getClass()); if (typeTargets.getFirstStepTarget() != null) { result = this.conversionService.convert(propertyVal, typeTargets.getFirstStepTarget()); } if (typeTargets.getSecondStepTarget() != null) { result = this.internalConversionService.convert(result, typeTargets.getSecondStepTarget()); } } return DatastoreNativeTypes.wrapValue(result); }