*
* @return {@link RecordExample}, the resulting businessclass object.
*/
public RecordExample exampleFromDto(final FullRecordDto source) {
Assert.notNull(source, "argument [source] may not be null");
RecordExample result = new RecordExample();
if (source.getAsin() != null) {
result.setAsin(source.getAsin());
}
if (source.getTitle() != null) {
result.setTitle(source.getTitle());
}
if (source.getMediumCode() != null) {
result.setMediumCode(source.getMediumCode());
}
if (source.getPrice() != null) {
result.setPrice(source.getPrice());
}
if (source.getType() != null) {
result.setType(typeTranslator.fromDto(source.getType()));
}
return result;
}