/** * INTERNAL: * Extract and return value of the field from the object */ public Object valueFromObject(Object object, DatabaseField field, AbstractSession session) throws DescriptorException { Object attributeValue = this.getAttributeValueFromObject(object); if(this.getConverter() != null) { this.getConverter().convertObjectValueToDataValue(attributeValue, session); } if (attributeValue == null) { return null; } else { return this.getObjectBuilder(attributeValue, session).extractValueFromObjectForField(attributeValue, field, session); } }
/** * INTERNAL: * Extract and return value of the field from the object */ public Object valueFromObject(Object object, DatabaseField field, AbstractSession session) throws DescriptorException { Object attributeValue = this.getAttributeValueFromObject(object); if(this.getConverter() != null) { this.getConverter().convertObjectValueToDataValue(attributeValue, session); } if (attributeValue == null) { return null; } else { return this.getObjectBuilder(attributeValue, session).extractValueFromObjectForField(attributeValue, field, session); } }
/** * INTERNAL: * Extract and return value of the field from the object */ public Object valueFromObject(Object object, DatabaseField field, AbstractSession session) throws DescriptorException { Object attributeValue = this.getAttributeValueFromObject(object); if(this.getConverter() != null) { this.getConverter().convertObjectValueToDataValue(attributeValue, session); } if (attributeValue == null) { return null; } else { return this.getObjectBuilder(attributeValue, session).extractValueFromObjectForField(attributeValue, field, session); } }