Interface IdAware
- All Known Implementing Classes:
CreateSetupDomainMapperMember,UpdateValidationDomainMapperMember
public interface IdAware
Provides a reflective way to get and set id information on a POJO. By default, the implementation
assumes a field named
id is available in the POJO with appropriate get/set bean methods.- Author:
- Jeff Fischer
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
getId
For the given pojo instance, retrieve the identifier field and the value of that field. By default, the implementation expects aidfield with a correspondinggetId()method.- Parameters:
object- The object containing entity data, specifically an id value.- Returns:
- The pair of id field name, and id value
-
setId
For the given pojo instance, set the identifier field value. By default, the implementation expects aidfield with a correspondingsetId(..)method.- Parameters:
object- The object containing entity data, specifically an id value.idVal- The value to set for the id field
-