Class HeaderDescriptor.PermittedTypeMapping
java.lang.Object
de.hybris.platform.impex.jalo.header.HeaderDescriptor.PermittedTypeMapping
- Enclosing class:
- HeaderDescriptor
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 Summary
Modifier and TypeMethodDescriptionprotected voidenableColumns(Collection<StandardColumnDescriptor> columnList) Sets the given list of columns as permitted for this type.booleanprotected Set<StandardColumnDescriptor>Gets all permitted columns for this mapping.protected Set<StandardColumnDescriptor>Gets all permitted columns for this mapping which are not read-only and part-of. These columns has to be used for creation case.protected Set<StandardColumnDescriptor>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.protected Set<StandardColumnDescriptor>Gets all permitted columns from this mapping which are part-of and not read-only.protected ComposedTypeGets the type of this mapping.protected Set<StandardColumnDescriptor>Gets all permitted columns from this mapping which are unique.inthashCode()booleanvoidsetOnlyForUpdate(boolean onlyForUpdate)
-
Method Details
-
getPermittedType
Gets the type of this mapping.- Returns:
- composed type this mapping represents
-
enableColumns
Sets the given list of columns as permitted for this type.- Parameters:
columnList- list of column descriptors which are permitted for this type
-
getUniqueColumns
Gets all permitted columns from this mapping which are- unique.
- Returns:
- set of unique columns or empty set
-
getPartOfColumns
Gets all permitted columns from this mapping which are- part-of
- read-only.
- Returns:
- set of part-of columns or empty set
-
getColumnsForCreation
Gets all permitted columns for this mapping which are not- read-only
- and part-of.
- Returns:
- set of columns for creation or empty set
-
getColumnsForUpdate
Gets all permitted columns for this mapping which are not- read-only,
- and inital-only
- and unique columns.
- Returns:
- set of columns for update or empty set
-
getAllColumns
Gets all permitted columns for this mapping.- Returns:
- set of columns or empty set
-
hashCode
public int hashCode() -
equals
-
isOnlyForUpdate
public boolean isOnlyForUpdate()- Returns:
- the isOnlyForUpdate
-
setOnlyForUpdate
public void setOnlyForUpdate(boolean onlyForUpdate) - Parameters:
onlyForUpdate- the isOnlyForUpdate to set
-