Class VersionPropertyType.Incrementer

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

protected static class VersionPropertyType.Incrementer extends Object implements NumberWrapperVisitor<Boolean,Void,Void,RuntimeException>
A visitor implementation that increments a version value in a number wrapper.

This class is used by the VersionPropertyType.increment(org.seasar.doma.jdbc.entity.EntityType<ENTITY>, ENTITY) method to increment the version value during update operations, which is essential for optimistic locking.