Class SimpleEntityVersionIncrementer<T,VERSION>

java.lang.Object
software.xdev.spring.data.eclipse.store.repository.support.copier.version.SimpleEntityVersionIncrementer<T,VERSION>
All Implemented Interfaces:
EntityVersionIncrementer<T>

public class SimpleEntityVersionIncrementer<T,VERSION> extends Object implements EntityVersionIncrementer<T>
  • Constructor Details

  • Method Details

    • incrementVersion

      public void incrementVersion(T objectToSetVersionIn)
      Description copied from interface: EntityVersionIncrementer
      This method makes sure, that a version is set for the given object. If it is already set (not null), then the version is incremented. If it is not set, a new one will be generated and set.
      Specified by:
      incrementVersion in interface EntityVersionIncrementer<T>