Class HeaderDescriptor.PermittedTypeMapping
- java.lang.Object
-
- de.hybris.platform.impex.jalo.header.HeaderDescriptor.PermittedTypeMapping
-
- Enclosing class:
- HeaderDescriptor
protected final class HeaderDescriptor.PermittedTypeMapping extends java.lang.ObjectObject 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidenableColumns(java.util.Collection<StandardColumnDescriptor> columnList)Sets the given list of columns as permitted for this type.booleanequals(java.lang.Object o)protected java.util.Set<StandardColumnDescriptor>getAllColumns()Gets all permitted columns for this mapping.protected java.util.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.protected java.util.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.protected java.util.Set<StandardColumnDescriptor>getPartOfColumns()Gets all permitted columns from this mapping which are part-of and not read-only.protected ComposedTypegetPermittedType()Gets the type of this mapping.protected java.util.Set<StandardColumnDescriptor>getUniqueColumns()Gets all permitted columns from this mapping which are unique.inthashCode()booleanisOnlyForUpdate()voidsetOnlyForUpdate(boolean onlyForUpdate)
-
-
-
Method Detail
-
getPermittedType
protected ComposedType getPermittedType()
Gets the type of this mapping.- Returns:
- composed type this mapping represents
-
enableColumns
protected void enableColumns(java.util.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 java.util.Set<StandardColumnDescriptor> getUniqueColumns()
Gets all permitted columns from this mapping which are- unique.
- Returns:
- set of unique columns or empty set
-
getPartOfColumns
protected java.util.Set<StandardColumnDescriptor> getPartOfColumns()
Gets all permitted columns from this mapping which are- part-of
- read-only.
- Returns:
- set of part-of columns or empty set
-
getColumnsForCreation
protected java.util.Set<StandardColumnDescriptor> 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
protected java.util.Set<StandardColumnDescriptor> 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
protected java.util.Set<StandardColumnDescriptor> getAllColumns()
Gets all permitted columns for this mapping.- Returns:
- set of columns or empty set
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
isOnlyForUpdate
public boolean isOnlyForUpdate()
- Returns:
- the isOnlyForUpdate
-
setOnlyForUpdate
public void setOnlyForUpdate(boolean onlyForUpdate)
- Parameters:
onlyForUpdate- the isOnlyForUpdate to set
-
-