Class SimpleIdSetter<T,ID>
java.lang.Object
software.xdev.spring.data.eclipse.store.repository.support.id.SimpleIdSetter<T,ID>
- All Implemented Interfaces:
IdSetter<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method makes sure, that an id is set for the given object.boolean
-
Constructor Details
-
SimpleIdSetter
-
-
Method Details
-
ensureId
Description copied from interface:IdSetterThis 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. -
isAutomaticSetter
public boolean isAutomaticSetter()- Specified by:
isAutomaticSetterin interfaceIdSetter<T>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceIdSetter<T>
-