Package io.ran
Interface Mapping
public interface Mapping
-
Method Summary
Modifier and TypeMethodDescription_getKey()
_getRelation
(RelationDescriber relationDescriber) _getRelation
(Token token) _getRelation
(Object object, RelationDescriber relationDescriber) _getRelation
(Object object, Token token) boolean
void
_setRelation
(RelationDescriber relationDescriber, Object value) void
_setRelationNotLoaded
(RelationDescriber relationDescriber) void
void
void
columnize
(ObjectMapColumnizer columnizer) void
columnize
(Object obj, ObjectMapColumnizer columnizer) void
void
hydrate
(ObjectMapHydrator hydrator) Hydrate all fields of this mapping.void
hydrate
(Object obj, ObjectMapHydrator hydrator) Hydrate all fields of this mapping into the target object.void
hydrateField
(ObjectMapHydrator hydrator, Property property) Hydrate a single field of this mapping.void
hydrateField
(Object obj, ObjectMapHydrator hydrator, Property property) Hydrate a single field of into the target object, based on this mapping.
-
Method Details
-
_getValue
-
_getValue
-
_setValue
-
_setValue
-
hydrate
Hydrate all fields of this mapping.If a field is not present in the hydrator, an exception should be thrown.
Is equivalent to performing
hydrateField(ObjectMapHydrator, Property)
for all fields in this mapping.- Parameters:
hydrator
- The hydrator to use
-
hydrate
Hydrate all fields of this mapping into the target object.If a field is not present in the hydrator, an exception should be thrown.
Is equivalent to performing
hydrateField(Object, ObjectMapHydrator, Property)
for all fields in this mapping.- Parameters:
obj
- The object to hydratehydrator
- The hydrator to use
-
hydrateField
Hydrate a single field of this mapping.If the field is annotated with
Serialized
it should be used for this hydration.- Parameters:
hydrator
- The hydrator to useproperty
- The property to hydrate
-
hydrateField
Hydrate a single field of into the target object, based on this mapping.If the field is annotated with
Serialized
it should be used for this hydration.- Parameters:
obj
- The object to hydratehydrator
- The hydrator to useproperty
- The property to hydrate
-
columnize
-
columnize
-
_getKey
- Returns:
- The primary key for this object, or empty CompoundKey if no primary key is defined.
-
_getKey
- Returns:
- The primary key for the passed object, or empty CompoundKey if no primary key is defined.
-
_setRelation
-
_setRelationNotLoaded
-
_getRelation
-
_getRelation
-
_getRelation
-
_getRelation
-
_isChanged
boolean _isChanged() -
_getDescriber
TypeDescriber _getDescriber() -
copy
-