Package io.ran

Interface Mapping


public interface Mapping
  • Method Details

    • _getValue

      Object _getValue(Property property)
    • _getValue

      Object _getValue(Object obj, Property property)
    • _setValue

      void _setValue(Property property, Object value)
    • _setValue

      void _setValue(Object obj, Property property, Object value)
    • hydrate

      void hydrate(ObjectMapHydrator hydrator)
      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

      void hydrate(Object obj, ObjectMapHydrator hydrator)
      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 hydrate
      hydrator - The hydrator to use
    • hydrateField

      void hydrateField(ObjectMapHydrator hydrator, Property property)
      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 use
      property - The property to hydrate
    • hydrateField

      void hydrateField(Object obj, ObjectMapHydrator hydrator, Property property)
      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 hydrate
      hydrator - The hydrator to use
      property - The property to hydrate
    • columnize

      void columnize(ObjectMapColumnizer columnizer)
    • columnize

      void columnize(Object obj, ObjectMapColumnizer columnizer)
    • _getKey

      @Nonnull CompoundKey _getKey()
      Returns:
      The primary key for this object, or empty CompoundKey if no primary key is defined.
    • _getKey

      @Nonnull CompoundKey _getKey(Object obj)
      Returns:
      The primary key for the passed object, or empty CompoundKey if no primary key is defined.
    • _setRelation

      void _setRelation(RelationDescriber relationDescriber, Object value)
    • _setRelationNotLoaded

      void _setRelationNotLoaded(RelationDescriber relationDescriber)
    • _getRelation

      Object _getRelation(RelationDescriber relationDescriber)
    • _getRelation

      Object _getRelation(Token token)
    • _getRelation

      Object _getRelation(Object object, RelationDescriber relationDescriber)
    • _getRelation

      Object _getRelation(Object object, Token token)
    • _isChanged

      boolean _isChanged()
    • _getDescriber

      TypeDescriber _getDescriber()
    • copy

      void copy(Object from, Object to)