Class FeatureField

    • Constructor Detail

      • FeatureField

        public FeatureField​(ClassAttributeAssignment assignment,
                            java.lang.String producttypeAlias,
                            Language lang,
                            boolean enumsAsPos,
                            boolean isValueSelect)
    • Method Detail

      • setSelectRawValue

        public void setSelectRawValue​(boolean selectRaw)
      • addSelectableValue

        public void addSelectableValue​(int position,
                                       ClassificationAttributeValue selValue)
        For enum features: Since operations which require value order are limited to the configured selctable values it is necessary to add unconfigured values manually if they should be comparable within the query.
        Parameters:
        position - the desired position of the unconfigured value
        selValue - the unconfigured value
      • getUnit

        public ClassificationAttributeUnit getUnit()
        Returns the unit of the queried feature. If a unit is present the statement will convert all values of other units into this unit to allow comparation.
      • setUnit

        public void setUnit​(ClassificationAttributeUnit unit)
        For features with existing unit only: Changes the target unit of this condition. Only convertible units of the configured unit are allowed.
      • setLanguage

        public void setLanguage​(Language lang)
        For localized features only: Allows to specify the value language explicitely - otherwise the session language would have been used.
      • getLanguage

        public Language getLanguage()
      • setProductTypeAlias

        public void setProductTypeAlias​(java.lang.String alias)
        Allows to specify the alias of the product type within the enclosing query.

        This is always necessary when the product type is not the initial type of the enclosing query!

      • getProductTypeAlias

        public java.lang.String getProductTypeAlias()
      • isCaseInsensitive

        public boolean isCaseInsensitive()
        Tells whether or not string comparation should be done case insensitively.
      • setCaseInsensitive

        public void setCaseInsensitive​(boolean insensitive)
        Changes whether or not string comparation should be done case insensitively.
      • enumsAsPos

        protected boolean enumsAsPos()
      • writeValueField

        protected void writeValueField​(java.lang.StringBuilder query,
                                       java.util.Map<java.lang.String,​java.lang.Object> valueMap)
      • writeConditions

        protected void writeConditions​(java.lang.StringBuilder query,
                                       java.util.Map<java.lang.String,​java.lang.String> typeIndexMap,
                                       java.util.Map<java.lang.String,​java.lang.Object> valueMap)