TO_TYPE
- type in transfer objectDOMAIN_TYPE
- type in domain objectpublic interface TypeConverter<TO_TYPE,DOMAIN_TYPE>
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Type realToType,
Type realDomainType)
Can this type converter handle conversions between the given transfer and domain object types?
|
DOMAIN_TYPE |
convert(TO_TYPE object,
SyntheticField domainField,
Object domainObject,
String... tags)
Convert a transfer object field value to the value for the domain object.
|
TO_TYPE |
reverse(DOMAIN_TYPE object,
SyntheticField toField,
Object toObject,
String... tags)
Convert a domain object field value to the value for the transfer object.
|
boolean canConvert(Type realToType, Type realDomainType)
realToType
- real class for the type in the transfer objectrealDomainType
- real class for the type in the domain objectDOMAIN_TYPE convert(TO_TYPE object, SyntheticField domainField, Object domainObject, String... tags) throws JTransfoException
object
- object to convertdomainField
- target domain fielddomainObject
- target domain objecttags
- tags which indicate which fields can be converted based on MapOnly
annotations.JTransfoException
- problem during type conversionTO_TYPE reverse(DOMAIN_TYPE object, SyntheticField toField, Object toObject, String... tags) throws JTransfoException
object
- object to converttoField
- target transfer object fieldtoObject
- target transfer objecttags
- tags which indicate which fields can be converted based on MapOnly
annotations.JTransfoException
- problem during type conversionCopyright © 2022. All rights reserved.