Class KeywordModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.catalog.model.KeywordModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClassificationKeywordModel

public class KeywordModel extends ItemModel
Generated model class for type Keyword first defined at extension catalog.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated relation code constant for relation Category2KeywordRelation defining source attribute categories in extension catalog.
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of Keyword.catalog attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of Keyword.catalogVersion attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of Keyword.categories attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of Keyword.keyword attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of Keyword.language attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of Keyword.products attribute defined at extension catalog.

    Fields inherited from class de.hybris.platform.core.model.ItemModel

    _COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED

    Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Generated constructor - Default constructor for generic creation.
    KeywordModel(CatalogVersionModel _catalogVersion, String _keyword, LanguageModel _language)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 4.1.1 Please use the default constructor without parameters
    KeywordModel(CatalogVersionModel _catalogVersion, String _keyword, LanguageModel _language, ItemModel _owner)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 4.1.1 Please use the default constructor without parameters
    KeywordModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the Keyword.catalogVersion attribute defined at extension catalog.
    Generated method - Getter of the Keyword.categories attribute defined at extension catalog.
    Generated method - Getter of the Keyword.categories attribute defined at extension catalog.
    Generated method - Getter of the Keyword.keyword attribute defined at extension catalog.
    Generated method - Getter of the Keyword.language attribute defined at extension catalog.
    Generated method - Getter of the Keyword.products attribute defined at extension catalog.
    Generated method - Getter of the Keyword.products attribute defined at extension catalog.
    void
    Generated method - Setter of Keyword.catalogVersion attribute defined at extension catalog.
    void
    Generated method - Setter of Keyword.categories attribute defined at extension catalog.
    void
    Generated method - Setter of Keyword.categories attribute defined at extension catalog.
    void
    Generated method - Setter of Keyword.keyword attribute defined at extension catalog.
    void
    Generated method - Initial setter of Keyword.language attribute defined at extension catalog.
    void
    Generated method - Setter of Keyword.products attribute defined at extension catalog.
    void
    Generated method - Setter of Keyword.products attribute defined at extension catalog.

    Methods inherited from class de.hybris.platform.core.model.ItemModel

    getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner

    Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _CATEGORY2KEYWORDRELATION

      public static final String _CATEGORY2KEYWORDRELATION
      Generated relation code constant for relation Category2KeywordRelation defining source attribute categories in extension catalog.
      See Also:
    • KEYWORD

      public static final String KEYWORD
      Generated constant - Attribute key of Keyword.keyword attribute defined at extension catalog.
      See Also:
    • LANGUAGE

      public static final String LANGUAGE
      Generated constant - Attribute key of Keyword.language attribute defined at extension catalog.
      See Also:
    • CATALOG

      public static final String CATALOG
      Generated constant - Attribute key of Keyword.catalog attribute defined at extension catalog.
      See Also:
    • CATALOGVERSION

      public static final String CATALOGVERSION
      Generated constant - Attribute key of Keyword.catalogVersion attribute defined at extension catalog.
      See Also:
    • PRODUCTS

      public static final String PRODUCTS
      Generated constant - Attribute key of Keyword.products attribute defined at extension catalog.
      See Also:
    • CATEGORIES

      public static final String CATEGORIES
      Generated constant - Attribute key of Keyword.categories attribute defined at extension catalog.
      See Also:
  • Constructor Details

    • KeywordModel

      public KeywordModel()
      Generated constructor - Default constructor for generic creation.
    • KeywordModel

      public KeywordModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • KeywordModel

      @Deprecated(since="4.1.1", forRemoval=true) public KeywordModel(CatalogVersionModel _catalogVersion, String _keyword, LanguageModel _language)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _catalogVersion - initial attribute declared by type Keyword at extension catalog
      _keyword - initial attribute declared by type Keyword at extension catalog
      _language - initial attribute declared by type Keyword at extension catalog
    • KeywordModel

      @Deprecated(since="4.1.1", forRemoval=true) public KeywordModel(CatalogVersionModel _catalogVersion, String _keyword, LanguageModel _language, ItemModel _owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _catalogVersion - initial attribute declared by type Keyword at extension catalog
      _keyword - initial attribute declared by type Keyword at extension catalog
      _language - initial attribute declared by type Keyword at extension catalog
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getCatalogVersion

      @Accessor(qualifier="catalogVersion", type=GETTER) public CatalogVersionModel getCatalogVersion()
      Generated method - Getter of the Keyword.catalogVersion attribute defined at extension catalog.
      Returns:
      the catalogVersion
    • getCategories

      @Accessor(qualifier="categories", type=GETTER) public Collection<CategoryModel> getCategories()
      Generated method - Getter of the Keyword.categories attribute defined at extension catalog.
      Returns:
      the categories - Categories
    • getCategories

      @Accessor(qualifier="categories", type=GETTER) public Collection<CategoryModel> getCategories(Locale loc)
      Generated method - Getter of the Keyword.categories attribute defined at extension catalog.
      Parameters:
      loc - the value localization key
      Returns:
      the categories - Categories
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getKeyword

      @Accessor(qualifier="keyword", type=GETTER) public String getKeyword()
      Generated method - Getter of the Keyword.keyword attribute defined at extension catalog.
      Returns:
      the keyword
    • getLanguage

      @Accessor(qualifier="language", type=GETTER) public LanguageModel getLanguage()
      Generated method - Getter of the Keyword.language attribute defined at extension catalog.
      Returns:
      the language
    • getProducts

      @Accessor(qualifier="products", type=GETTER) public Collection<ProductModel> getProducts()
      Generated method - Getter of the Keyword.products attribute defined at extension catalog.
      Returns:
      the products - Products
    • getProducts

      @Accessor(qualifier="products", type=GETTER) public Collection<ProductModel> getProducts(Locale loc)
      Generated method - Getter of the Keyword.products attribute defined at extension catalog.
      Parameters:
      loc - the value localization key
      Returns:
      the products - Products
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setCatalogVersion

      @Accessor(qualifier="catalogVersion", type=SETTER) public void setCatalogVersion(CatalogVersionModel value)
      Generated method - Setter of Keyword.catalogVersion attribute defined at extension catalog.
      Parameters:
      value - the catalogVersion
    • setCategories

      @Accessor(qualifier="categories", type=SETTER) public void setCategories(Collection<CategoryModel> value)
      Generated method - Setter of Keyword.categories attribute defined at extension catalog.
      Parameters:
      value - the categories - Categories
    • setCategories

      @Accessor(qualifier="categories", type=SETTER) public void setCategories(Collection<CategoryModel> value, Locale loc)
      Generated method - Setter of Keyword.categories attribute defined at extension catalog.
      Parameters:
      value - the categories - Categories
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setKeyword

      @Accessor(qualifier="keyword", type=SETTER) public void setKeyword(String value)
      Generated method - Setter of Keyword.keyword attribute defined at extension catalog.
      Parameters:
      value - the keyword
    • setLanguage

      @Accessor(qualifier="language", type=SETTER) public void setLanguage(LanguageModel value)
      Generated method - Initial setter of Keyword.language attribute defined at extension catalog. Can only be used at creation of model - before first save.
      Parameters:
      value - the language
    • setProducts

      @Accessor(qualifier="products", type=SETTER) public void setProducts(Collection<ProductModel> value)
      Generated method - Setter of Keyword.products attribute defined at extension catalog.
      Parameters:
      value - the products - Products
    • setProducts

      @Accessor(qualifier="products", type=SETTER) public void setProducts(Collection<ProductModel> value, Locale loc)
      Generated method - Setter of Keyword.products attribute defined at extension catalog.
      Parameters:
      value - the products - Products
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language