Class HeaderDescriptor.PermittedTypeMapping

java.lang.Object
de.hybris.platform.impex.jalo.header.HeaderDescriptor.PermittedTypeMapping
Enclosing class:
HeaderDescriptor

protected final class HeaderDescriptor.PermittedTypeMapping extends Object
Object representing one permitted type ex- or importable by this header. It tells which columns are actually usable for this type and which not.
  • Method Details

    • getPermittedType

      protected ComposedType getPermittedType()
      Gets the type of this mapping.
      Returns:
      composed type this mapping represents
    • enableColumns

      protected void enableColumns(Collection<StandardColumnDescriptor> columnList)
      Sets the given list of columns as permitted for this type.
      Parameters:
      columnList - list of column descriptors which are permitted for this type
    • getUniqueColumns

      protected Set<StandardColumnDescriptor> getUniqueColumns()
      Gets all permitted columns from this mapping which are
      • unique.
      Returns:
      set of unique columns or empty set
    • getPartOfColumns

      protected Set<StandardColumnDescriptor> getPartOfColumns()
      Gets all permitted columns from this mapping which are
      • part-of
      and not
      • read-only.
      Returns:
      set of part-of columns or empty set
    • getColumnsForCreation

      protected Set<StandardColumnDescriptor> getColumnsForCreation()
      Gets all permitted columns for this mapping which are not
      • read-only
      • and part-of.
      These columns has to be used for creation case.
      Returns:
      set of columns for creation or empty set
    • getColumnsForUpdate

      protected Set<StandardColumnDescriptor> getColumnsForUpdate()
      Gets all permitted columns for this mapping which are not
      • read-only,
      • and inital-only
      • and unique columns.
      These columns has to be used for update case.
      Returns:
      set of columns for update or empty set
    • getAllColumns

      protected Set<StandardColumnDescriptor> getAllColumns()
      Gets all permitted columns for this mapping.
      Returns:
      set of columns or empty set
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • isOnlyForUpdate

      public boolean isOnlyForUpdate()
      Returns:
      the isOnlyForUpdate
    • setOnlyForUpdate

      public void setOnlyForUpdate(boolean onlyForUpdate)
      Parameters:
      onlyForUpdate - the isOnlyForUpdate to set