/** * Returns true if a delegate class is registered to compute the property * value. A property can be made {@code computed} even if its delegate * class is null by calling {@code setComputed(true)}. This way, the * property should be ignored by the ORM. * <p/> * {@inheritDoc} */ @Override public boolean isComputed() { return getDelegateClassName() != null || computed || isFilterOnly(); }
/** * {@inheritDoc} */ @Override public boolean isModifiable() { if (getDelegateClassName() == null) { if (!computed) { return true; } } if (delegateWritable != null) { return delegateWritable; } if (isFilterOnly()) { return true; } return false; }
/** * {@inheritDoc} */ @Override public Class<?> getDelegateClass() { if (delegateClass == null) { String className = getDelegateClassName(); if (className != null) { try { delegateClass = Class.forName(className); } catch (ClassNotFoundException ex) { throw new NestedRuntimeException(ex); } } } return delegateClass; }