public interface IdAware
id
is available in the POJO with appropriate get/set bean methods.Modifier and Type | Interface and Description |
---|---|
static class |
IdAware.Id |
Modifier and Type | Method and Description |
---|---|
default IdAware.Id |
getId(Object object)
For the given pojo instance, retrieve the identifier field and the value of that field.
|
default void |
setId(Object object,
String idVal)
For the given pojo instance, set the identifier field value.
|
default IdAware.Id getId(Object object)
id
field with a corresponding getId()
method.object
- The object containing entity data, specifically an id value.default void setId(Object object, String idVal)
id
field with a corresponding setId(..)
method.object
- The object containing entity data, specifically an id value.idVal
- The value to set for the id fieldCopyright © 2021. All rights reserved.