public < FV > FV getFieldValueIfNotDefault ( Object object ) throws SQLException { @ SuppressWarnings ( "unchecked" ) FV fieldValue = ( FV ) extractJavaFieldValue ( object ) ; if ( isFieldValueDefault ( fieldValue ) ) { return null ; } else { return fieldValue ; } }
Return the value of field in the data argument if it is not the default value for the class . If it is the default then null is returned .