/** * Assign the field value from the row to the object for all the mappings using field (read or write). * If not null changeSet must correspond to object. changeSet is updated with all of the field values in the row. */ public void assignReturnValueForField(Object object, ReadObjectQuery query, AbstractRecord row, DatabaseField field, Collection handledMappings, ObjectChangeSet changeSet) { DatabaseMapping mapping = getMappingForField(field); if (mapping != null) { assignReturnValueToMapping(object, query, row, field, mapping, handledMappings, changeSet); } List readOnlyMappings = getReadOnlyMappingsForField(field); if (readOnlyMappings != null) { int size = readOnlyMappings.size(); for (int index = 0; index < size; index++) { mapping = (DatabaseMapping)readOnlyMappings.get(index); assignReturnValueToMapping(object, query, row, field, mapping, handledMappings, changeSet); } } }
/** * Assign the field value from the row to the object for all the mappings using field (read or write). */ public void assignReturnValueForField(Object object, ReadObjectQuery query, AbstractRecord row, DatabaseField field, Collection handledMappings) { DatabaseMapping mapping = getMappingForField(field); if (mapping != null) { assignReturnValueToMapping(object, query, row, field, mapping, handledMappings); } List readOnlyMappings = getReadOnlyMappingsForField(field); if (readOnlyMappings != null) { int size = readOnlyMappings.size(); for (int index = 0; index < size; index++) { mapping = (DatabaseMapping)readOnlyMappings.get(index); assignReturnValueToMapping(object, query, row, field, mapping, handledMappings); } } }
/** * Assign the field value from the row to the object for all the mappings using field (read or write). * If not null changeSet must correspond to object. changeSet is updated with all of the field values in the row. */ public void assignReturnValueForField(Object object, ReadObjectQuery query, AbstractRecord row, DatabaseField field, Collection handledMappings, ObjectChangeSet changeSet) { DatabaseMapping mapping = getMappingForField(field); if (mapping != null) { assignReturnValueToMapping(object, query, row, field, mapping, handledMappings, changeSet); } List readOnlyMappings = getReadOnlyMappingsForField(field); if (readOnlyMappings != null) { int size = readOnlyMappings.size(); for (int index = 0; index < size; index++) { mapping = (DatabaseMapping)readOnlyMappings.get(index); assignReturnValueToMapping(object, query, row, field, mapping, handledMappings, changeSet); } } }