/** * Create the ValueObject from the ims.core.clinical.domain.objects.IntraOperativeCareRecord * object. * * @param map DomainObjectMap of DomainObjects to already created ValueObjects. * @param domainObject */ public static ims.clinical.vo.IntraOperativeCareRecordShortVo create( DomainObjectMap map, ims.core.clinical.domain.objects.IntraOperativeCareRecord domainObject) { if (null == domainObject) { return null; } // check if the domainObject already has a valueObject created for it ims.clinical.vo.IntraOperativeCareRecordShortVo valueObject = (ims.clinical.vo.IntraOperativeCareRecordShortVo) map.getValueObject(domainObject, ims.clinical.vo.IntraOperativeCareRecordShortVo.class); if (null == valueObject) { valueObject = new ims.clinical.vo.IntraOperativeCareRecordShortVo( domainObject.getId(), domainObject.getVersion()); map.addValueObject(domainObject, valueObject); valueObject = insert(map, valueObject, domainObject); } return valueObject; }