if (valueTransformerForClass != null || SingleRowSimpleTypeExecutor.SIMPLE_TYPES.containsKey(returnType)) {
executor = SINGLE_ROW_SIMPLE_TYPE_EXECUTOR;
} else {
if (resultMapper != null) {
executor = new SingleRowCustomMapperExecutor(resultMapper);
} else {
executor = SINGLE_ROW_TYPE_MAPPER_EXECUTOR;
}
}
}