Class GeneratedIdPropertyType.ValueSetter

java.lang.Object
org.seasar.doma.jdbc.entity.GeneratedIdPropertyType.ValueSetter
All Implemented Interfaces:
NumberWrapperVisitor<Boolean,Supplier<Long>,Void,RuntimeException>, WrapperVisitor<Boolean,Supplier<Long>,Void,RuntimeException>
Enclosing class:
GeneratedIdPropertyType<ENTITY,BASIC extends Number,CONTAINER>

protected static class GeneratedIdPropertyType.ValueSetter extends Object implements NumberWrapperVisitor<Boolean,Supplier<Long>,Void,RuntimeException>
A visitor implementation that sets an ID value in a number wrapper.

This class is used by the GeneratedIdPropertyType.setIfNecessary(org.seasar.doma.jdbc.entity.EntityType<ENTITY>, ENTITY, java.util.function.Supplier<java.lang.Long>) method to set the ID value only if the current value is null or negative.