Class EntityTransferConfig<Entity>

  • Type Parameters:
    Entity - The type of entity.

    public final class EntityTransferConfig<Entity>
    extends Object
    Holds the custom import / export configuration for a specific entity class, see EntityTransferDetails. Use forEntity or forEntityType to get a configuration for a specific entity or entity type.
    Since:
    8.3.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    EntityTransferDetails
    • Method Detail

      • getDeserializationExtension

        public IEntityDeserializationExtension getDeserializationExtension()
        Gets the IEntityDeserializationExtension that was configured for this type of entity. Returns a no-op implementation if no extension was configured.
        Returns:
        The deserialization extension configured for this type of entity, never null.
      • getEntityClass

        public Class<Entity> getEntityClass()
        Gets the class of the entity this configuration is for.
        Returns:
        The entity class of this configuration.
      • forEntity

        public static <Entity> EntityTransferConfig<Entity> forEntity​(Entity entity)
        Get a EntityTransferConfig for the type of the given entity.
        Type Parameters:
        Entity - The type of entity.
        Parameters:
        entity - The entity to create a configuration for.
        Returns:
        A new EntityTransferConfig for the type of the given entity.
      • forEntityType

        public static <Entity> EntityTransferConfig<Entity> forEntityType​(Class<Entity> entityType)
        Gets a new EntityTransferConfig for the given type of entity.
        Type Parameters:
        Entity - The type of entity.
        Parameters:
        entityType - The type of entity to create a configuration for.
        Returns:
        A new EntityTransferConfig for the given type of entity.