Package de.hybris.platform.catalog.model
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
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
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationCategory2KeywordRelationdefining source attributecategoriesin extensioncatalog.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofKeyword.catalogattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofKeyword.catalogVersionattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofKeyword.categoriesattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofKeyword.keywordattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofKeyword.languageattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofKeyword.productsattribute defined at extensioncatalog.Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated 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 parametersKeywordModel(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 parametersKeywordModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theKeyword.catalogVersionattribute defined at extensioncatalog.Generated method - Getter of theKeyword.categoriesattribute defined at extensioncatalog.getCategories(Locale loc) Generated method - Getter of theKeyword.categoriesattribute defined at extensioncatalog.Generated method - Getter of theKeyword.keywordattribute defined at extensioncatalog.Generated method - Getter of theKeyword.languageattribute defined at extensioncatalog.Generated method - Getter of theKeyword.productsattribute defined at extensioncatalog.getProducts(Locale loc) Generated method - Getter of theKeyword.productsattribute defined at extensioncatalog.voidGenerated method - Setter ofKeyword.catalogVersionattribute defined at extensioncatalog.voidsetCategories(Collection<CategoryModel> value) Generated method - Setter ofKeyword.categoriesattribute defined at extensioncatalog.voidsetCategories(Collection<CategoryModel> value, Locale loc) Generated method - Setter ofKeyword.categoriesattribute defined at extensioncatalog.voidsetKeyword(String value) Generated method - Setter ofKeyword.keywordattribute defined at extensioncatalog.voidsetLanguage(LanguageModel value) Generated method - Initial setter ofKeyword.languageattribute defined at extensioncatalog.voidsetProducts(Collection<ProductModel> value) Generated method - Setter ofKeyword.productsattribute defined at extensioncatalog.voidsetProducts(Collection<ProductModel> value, Locale loc) Generated method - Setter ofKeyword.productsattribute defined at extensioncatalog.Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_CATEGORY2KEYWORDRELATION
Generated relation code constant for relationCategory2KeywordRelationdefining source attributecategoriesin extensioncatalog.- See Also:
-
KEYWORD
Generated constant - Attribute key ofKeyword.keywordattribute defined at extensioncatalog.- See Also:
-
LANGUAGE
Generated constant - Attribute key ofKeyword.languageattribute defined at extensioncatalog.- See Also:
-
CATALOG
Generated constant - Attribute key ofKeyword.catalogattribute defined at extensioncatalog.- See Also:
-
CATALOGVERSION
Generated constant - Attribute key ofKeyword.catalogVersionattribute defined at extensioncatalog.- See Also:
-
PRODUCTS
Generated constant - Attribute key ofKeyword.productsattribute defined at extensioncatalog.- See Also:
-
CATEGORIES
Generated constant - Attribute key ofKeyword.categoriesattribute defined at extensioncatalog.- 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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_catalogVersion- initial attribute declared by typeKeywordat extensioncatalog_keyword- initial attribute declared by typeKeywordat extensioncatalog_language- initial attribute declared by typeKeywordat extensioncatalog
-
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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_catalogVersion- initial attribute declared by typeKeywordat extensioncatalog_keyword- initial attribute declared by typeKeywordat extensioncatalog_language- initial attribute declared by typeKeywordat extensioncatalog_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getCatalogVersion
Generated method - Getter of theKeyword.catalogVersionattribute defined at extensioncatalog.- Returns:
- the catalogVersion
-
getCategories
Generated method - Getter of theKeyword.categoriesattribute defined at extensioncatalog.- Returns:
- the categories - Categories
-
getCategories
@Accessor(qualifier="categories", type=GETTER) public Collection<CategoryModel> getCategories(Locale loc) Generated method - Getter of theKeyword.categoriesattribute defined at extensioncatalog.- Parameters:
loc- the value localization key- Returns:
- the categories - Categories
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getKeyword
Generated method - Getter of theKeyword.keywordattribute defined at extensioncatalog.- Returns:
- the keyword
-
getLanguage
Generated method - Getter of theKeyword.languageattribute defined at extensioncatalog.- Returns:
- the language
-
getProducts
Generated method - Getter of theKeyword.productsattribute defined at extensioncatalog.- Returns:
- the products - Products
-
getProducts
@Accessor(qualifier="products", type=GETTER) public Collection<ProductModel> getProducts(Locale loc) Generated method - Getter of theKeyword.productsattribute defined at extensioncatalog.- 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 ofKeyword.catalogVersionattribute defined at extensioncatalog.- Parameters:
value- the catalogVersion
-
setCategories
@Accessor(qualifier="categories", type=SETTER) public void setCategories(Collection<CategoryModel> value) Generated method - Setter ofKeyword.categoriesattribute defined at extensioncatalog.- Parameters:
value- the categories - Categories
-
setCategories
@Accessor(qualifier="categories", type=SETTER) public void setCategories(Collection<CategoryModel> value, Locale loc) Generated method - Setter ofKeyword.categoriesattribute defined at extensioncatalog.- Parameters:
value- the categories - Categoriesloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setKeyword
Generated method - Setter ofKeyword.keywordattribute defined at extensioncatalog.- Parameters:
value- the keyword
-
setLanguage
Generated method - Initial setter ofKeyword.languageattribute defined at extensioncatalog. 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 ofKeyword.productsattribute defined at extensioncatalog.- Parameters:
value- the products - Products
-
setProducts
@Accessor(qualifier="products", type=SETTER) public void setProducts(Collection<ProductModel> value, Locale loc) Generated method - Setter ofKeyword.productsattribute defined at extensioncatalog.- Parameters:
value- the products - Productsloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-