use of com.datastax.oss.driver.api.mapper.annotations.DefaultNullSavingStrategy in project java-driver by datastax.
the class DaoImplementationGenerator method generateProtocolVersionCheck.
private void generateProtocolVersionCheck(MethodSpec.Builder builder) {
List<ExecutableElement> methodElements = preparedStatements.stream().map(v -> v.methodElement).collect(Collectors.toList());
DefaultNullSavingStrategy interfaceAnnotation = getAnnotation(DefaultNullSavingStrategy.class).orElse(null);
if (nullSavingStrategyValidation.hasDoNotSetOnAnyLevel(methodElements, interfaceAnnotation)) {
builder.addStatement("throwIfProtocolVersionV3(context)");
}
}
Aggregations