java.lang.Object
software.xdev.spring.data.eclipse.store.repository.support.id.NotSettingIdSetter<T>
All Implemented Interfaces:
IdSetter<T>

public class NotSettingIdSetter<T> extends Object implements IdSetter<T>
  • Constructor Details

    • NotSettingIdSetter

      public NotSettingIdSetter()
  • Method Details

    • ensureId

      public void ensureId(T objectToSetIdIn)
      Description copied from interface: IdSetter
      This method makes sure, that an id is set for the given object. If it is already set (not null), then nothing is done. If it is not set, a new one will be generated and set.
      Specified by:
      ensureId in interface IdSetter<T>
    • isAutomaticSetter

      public boolean isAutomaticSetter()
      Specified by:
      isAutomaticSetter in interface IdSetter<T>
    • getDefaultValue

      public Object getDefaultValue()
      Specified by:
      getDefaultValue in interface IdSetter<T>