rf._setMethod.invoke(internalObject,
new Object[] {(value == null) ? _default : value});
}
}
} else {
throw new DataObjectAccessException(
"no method to set value for field: " + _fType + " in class: " + _eMold);
}
// If the field has no set method, ignore it.
// If this is a problem, identity it someplace else.
} catch (IllegalArgumentException except) {
// Graceful way of dealing with unwrapping exception
if (value == null) {
throw new DataObjectAccessException(Messages.format(
"mapping.typeConversionNull", toString()));
}
throw new DataObjectAccessException(Messages.format(
"mapping.typeConversion", toString(), value.getClass().getName()));
} catch (IllegalAccessException except) {
// This should never happen
throw new DataObjectAccessException(Messages.format(
"mapping.schemaChangeNoAccess", toString()), except);
} catch (InvocationTargetException except) {
// This should never happen
throw new DataObjectAccessException(Messages.format(
"mapping.schemaChangeInvocation", toString(), except.getMessage()), except);
}
}