Class JpaFieldDefinition

java.lang.Object
com.broadleafcommerce.search.core.provider.jpa.domain.JpaFieldDefinition
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.SandboxTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.SandboxJpaTracking>, com.broadleafcommerce.data.tracking.core.Trackable, com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.SandboxJpaTracking>, com.broadleafcommerce.translation.domain.Translatable, Serializable

@Entity public class JpaFieldDefinition extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.SandboxTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.SandboxJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.translation.domain.Translatable
See Also:
  • Constructor Details

    • JpaFieldDefinition

      public JpaFieldDefinition()
  • Method Details

    • fromMe

      @NonNull public org.modelmapper.ModelMapper fromMe()
      Specified by:
      fromMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • buildFieldRef

      protected com.broadleafcommerce.search.api.domain.FieldRef buildFieldRef(com.broadleafcommerce.search.api.domain.FieldDefinition field)
      Builds the FieldRef object based on a FieldDefinition
      Returns:
      The FieldRef object.
    • toMe

      @NonNull public org.modelmapper.ModelMapper toMe()
      Specified by:
      toMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • getBusinessDomainType

      public Class<?> getBusinessDomainType()
      Specified by:
      getBusinessDomainType in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
    • get_id

      public String get_id()
    • getContextId

      public String getContextId()
      Specified by:
      getContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
      Specified by:
      getContextId in interface com.broadleafcommerce.translation.domain.Translatable
    • getLabel

      public String getLabel()
    • getIndexableType

      public String getIndexableType()
    • isMultiValued

      public boolean isMultiValued()
    • getPropertyPath

      public String getPropertyPath()
    • isCombined

      public boolean isCombined()
    • getMultiValuedCombinedPropertyRootPath

      public String getMultiValuedCombinedPropertyRootPath()
    • getPropertyPaths

      public List<String> getPropertyPaths()
    • getDelimiter

      public String getDelimiter()
    • getAbbreviation

      public String getAbbreviation()
    • isTranslatable

      public boolean isTranslatable()
    • getVariants

      public List<JpaFieldVariant> getVariants()
    • isFaceted

      @Deprecated public boolean isFaceted()
      Deprecated.
    • getFacetLabel

      @Deprecated public String getFacetLabel()
      Deprecated.
    • getFacetDisplayOrder

      @Deprecated public Integer getFacetDisplayOrder()
    • isFacetMultiSelect

      @Deprecated public boolean isFacetMultiSelect()
      Deprecated.
    • isFacetRanged

      @Deprecated public boolean isFacetRanged()
      Deprecated.
    • getFacetRanges

      @Deprecated public List<com.broadleafcommerce.search.api.domain.FacetRange> getFacetRanges()
      Deprecated.
    • getFacetRule

      @Deprecated public String getFacetRule()
      Deprecated.
    • getFacetVariantType

      @Deprecated public String getFacetVariantType()
      Deprecated.
    • isSortable

      @Deprecated public boolean isSortable()
      Deprecated.
    • getSortLabel

      @Deprecated public String getSortLabel()
    • getSortDisplayOrder

      @Deprecated public Integer getSortDisplayOrder()
    • getSortVariantType

      @Deprecated public String getSortVariantType()
    • isSearchable

      public boolean isSearchable()
    • getFieldQueries

      public List<com.broadleafcommerce.search.api.domain.FieldQuery> getFieldQueries()
    • getAscendingLabel

      public String getAscendingLabel()
    • getDescendingLabel

      public String getDescendingLabel()
    • getLabelBehavior

      public String getLabelBehavior()
    • getSortBehavior

      public String getSortBehavior()
    • getAttributes

      public Map<String,Object> getAttributes()
    • getTracking

      public com.broadleafcommerce.data.tracking.jpa.filtering.domain.SandboxJpaTracking getTracking()
      Specified by:
      getTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
    • set_id

      public void set_id(String _id)
    • setContextId

      public void setContextId(String contextId)
      Specified by:
      setContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
    • setLabel

      public void setLabel(String label)
    • setIndexableType

      public void setIndexableType(String indexableType)
    • setMultiValued

      public void setMultiValued(boolean multiValued)
    • setPropertyPath

      public void setPropertyPath(String propertyPath)
    • setCombined

      public void setCombined(boolean combined)
    • setMultiValuedCombinedPropertyRootPath

      public void setMultiValuedCombinedPropertyRootPath(String multiValuedCombinedPropertyRootPath)
    • setPropertyPaths

      public void setPropertyPaths(List<String> propertyPaths)
    • setDelimiter

      public void setDelimiter(String delimiter)
    • setAbbreviation

      public void setAbbreviation(String abbreviation)
    • setTranslatable

      public void setTranslatable(boolean translatable)
    • setVariants

      public void setVariants(List<JpaFieldVariant> variants)
    • setFaceted

      @Deprecated public void setFaceted(boolean faceted)
      Deprecated.
    • setFacetLabel

      @Deprecated public void setFacetLabel(String facetLabel)
      Deprecated.
    • setFacetDisplayOrder

      @Deprecated public void setFacetDisplayOrder(Integer facetDisplayOrder)
    • setFacetMultiSelect

      @Deprecated public void setFacetMultiSelect(boolean facetMultiSelect)
      Deprecated.
    • setFacetRanged

      @Deprecated public void setFacetRanged(boolean facetRanged)
      Deprecated.
    • setFacetRanges

      @Deprecated public void setFacetRanges(List<com.broadleafcommerce.search.api.domain.FacetRange> facetRanges)
      Deprecated.
    • setFacetRule

      @Deprecated public void setFacetRule(String facetRule)
      Deprecated.
    • setFacetVariantType

      @Deprecated public void setFacetVariantType(String facetVariantType)
      Deprecated.
    • setSortable

      @Deprecated public void setSortable(boolean sortable)
      Deprecated.
    • setSortLabel

      @Deprecated public void setSortLabel(String sortLabel)
    • setSortDisplayOrder

      @Deprecated public void setSortDisplayOrder(Integer sortDisplayOrder)
    • setSortVariantType

      @Deprecated public void setSortVariantType(String sortVariantType)
    • setSearchable

      public void setSearchable(boolean searchable)
    • setFieldQueries

      public void setFieldQueries(List<com.broadleafcommerce.search.api.domain.FieldQuery> fieldQueries)
    • setAscendingLabel

      public void setAscendingLabel(String ascendingLabel)
    • setDescendingLabel

      public void setDescendingLabel(String descendingLabel)
    • setLabelBehavior

      public void setLabelBehavior(String labelBehavior)
    • setSortBehavior

      public void setSortBehavior(String sortBehavior)
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
    • setTracking

      public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.SandboxJpaTracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.SandboxJpaTracking>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object