Class HeaderDescriptor.PermittedTypeMapping

  • Enclosing class:
    HeaderDescriptor

    protected final class HeaderDescriptor.PermittedTypeMapping
    extends java.lang.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 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
        and not
        • 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.
        These columns has to be used for creation case.
        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.
        These columns has to be used for update case.
        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:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • isOnlyForUpdate

        public boolean isOnlyForUpdate()
        Returns:
        the isOnlyForUpdate
      • setOnlyForUpdate

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