Class CampaignModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.campaigns.model.CampaignModel
All Implemented Interfaces:
Serializable

public class CampaignModel extends ItemModel
Generated model class for type Campaign first defined at extension basecommerce.

Campaign information.

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 CampaignsForRestriction defining source attribute restrictions in extension cms2.
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of Campaign.code attribute defined at extension basecommerce.
    static final String
    Generated constant - Attribute key of Campaign.description attribute defined at extension basecommerce.
    static final String
    Generated constant - Attribute key of Campaign.enabled attribute defined at extension basecommerce.
    static final String
    Generated constant - Attribute key of Campaign.endDate attribute defined at extension basecommerce.
    static final String
    Generated constant - Attribute key of Campaign.name attribute defined at extension basecommerce.
    static final String
    Generated constant - Attribute key of Campaign.restrictions attribute defined at extension cms2.
    static final String
    Generated constant - Attribute key of Campaign.sourceRules attribute defined at extension ruleengineservices.
    static final String
    Generated constant - Attribute key of Campaign.startDate attribute defined at extension basecommerce.

    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.
    CampaignModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
    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
    CampaignModel(String _code, 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
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the Campaign.code attribute defined at extension basecommerce.
    Generated method - Getter of the Campaign.description attribute defined at extension basecommerce.
    Generated method - Getter of the Campaign.description attribute defined at extension basecommerce.
    Generated method - Getter of the Campaign.enabled attribute defined at extension basecommerce.
    Generated method - Getter of the Campaign.endDate attribute defined at extension basecommerce.
    Generated method - Getter of the Campaign.name attribute defined at extension basecommerce.
    Generated method - Getter of the Campaign.name attribute defined at extension basecommerce.
    Generated method - Getter of the Campaign.restrictions attribute defined at extension cms2.
    Generated method - Getter of the Campaign.sourceRules attribute defined at extension ruleengineservices.
    Generated method - Getter of the Campaign.startDate attribute defined at extension basecommerce.
    void
    setCode(String value)
    Generated method - Setter of Campaign.code attribute defined at extension basecommerce.
    void
    Generated method - Setter of Campaign.description attribute defined at extension basecommerce.
    void
    Generated method - Setter of Campaign.description attribute defined at extension basecommerce.
    void
    Generated method - Setter of Campaign.enabled attribute defined at extension basecommerce.
    void
    Generated method - Setter of Campaign.endDate attribute defined at extension basecommerce.
    void
    setName(String value)
    Generated method - Setter of Campaign.name attribute defined at extension basecommerce.
    void
    setName(String value, Locale loc)
    Generated method - Setter of Campaign.name attribute defined at extension basecommerce.
    void
    Generated method - Setter of Campaign.restrictions attribute defined at extension cms2.
    void
    Generated method - Setter of Campaign.sourceRules attribute defined at extension ruleengineservices.
    void
    Generated method - Setter of Campaign.startDate attribute defined at extension basecommerce.

    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:
    • _CAMPAIGNSFORRESTRICTION

      public static final String _CAMPAIGNSFORRESTRICTION
      Generated relation code constant for relation CampaignsForRestriction defining source attribute restrictions in extension cms2.
      See Also:
    • CODE

      public static final String CODE
      Generated constant - Attribute key of Campaign.code attribute defined at extension basecommerce.
      See Also:
    • NAME

      public static final String NAME
      Generated constant - Attribute key of Campaign.name attribute defined at extension basecommerce.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of Campaign.description attribute defined at extension basecommerce.
      See Also:
    • STARTDATE

      public static final String STARTDATE
      Generated constant - Attribute key of Campaign.startDate attribute defined at extension basecommerce.
      See Also:
    • ENDDATE

      public static final String ENDDATE
      Generated constant - Attribute key of Campaign.endDate attribute defined at extension basecommerce.
      See Also:
    • ENABLED

      public static final String ENABLED
      Generated constant - Attribute key of Campaign.enabled attribute defined at extension basecommerce.
      See Also:
    • RESTRICTIONS

      public static final String RESTRICTIONS
      Generated constant - Attribute key of Campaign.restrictions attribute defined at extension cms2.
      See Also:
    • SOURCERULES

      public static final String SOURCERULES
      Generated constant - Attribute key of Campaign.sourceRules attribute defined at extension ruleengineservices.
      See Also:
  • Constructor Details

    • CampaignModel

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

      public CampaignModel(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
    • CampaignModel

      @Deprecated(since="4.1.1", forRemoval=true) public CampaignModel(String _code)
      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:
      _code - initial attribute declared by type Campaign at extension basecommerce
    • CampaignModel

      @Deprecated(since="4.1.1", forRemoval=true) public CampaignModel(String _code, 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:
      _code - initial attribute declared by type Campaign at extension basecommerce
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the Campaign.code attribute defined at extension basecommerce.
      Returns:
      the code
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the Campaign.description attribute defined at extension basecommerce.
      Returns:
      the description
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
      Generated method - Getter of the Campaign.description attribute defined at extension basecommerce.
      Parameters:
      loc - the value localization key
      Returns:
      the description
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getEnabled

      @Accessor(qualifier="enabled", type=GETTER) public Boolean getEnabled()
      Generated method - Getter of the Campaign.enabled attribute defined at extension basecommerce.
      Returns:
      the enabled
    • getEndDate

      @Accessor(qualifier="endDate", type=GETTER) public Date getEndDate()
      Generated method - Getter of the Campaign.endDate attribute defined at extension basecommerce.
      Returns:
      the endDate
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName()
      Generated method - Getter of the Campaign.name attribute defined at extension basecommerce.
      Returns:
      the name
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
      Generated method - Getter of the Campaign.name attribute defined at extension basecommerce.
      Parameters:
      loc - the value localization key
      Returns:
      the name
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getRestrictions

      @Accessor(qualifier="restrictions", type=GETTER) public Collection<CMSCampaignRestrictionModel> getRestrictions()
      Generated method - Getter of the Campaign.restrictions attribute defined at extension cms2. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the restrictions
    • getSourceRules

      @Accessor(qualifier="sourceRules", type=GETTER) public Set<SourceRuleModel> getSourceRules()
      Generated method - Getter of the Campaign.sourceRules attribute defined at extension ruleengineservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the sourceRules
    • getStartDate

      @Accessor(qualifier="startDate", type=GETTER) public Date getStartDate()
      Generated method - Getter of the Campaign.startDate attribute defined at extension basecommerce.
      Returns:
      the startDate
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Setter of Campaign.code attribute defined at extension basecommerce.
      Parameters:
      value - the code
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of Campaign.description attribute defined at extension basecommerce.
      Parameters:
      value - the description
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
      Generated method - Setter of Campaign.description attribute defined at extension basecommerce.
      Parameters:
      value - the description
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setEnabled

      @Accessor(qualifier="enabled", type=SETTER) public void setEnabled(Boolean value)
      Generated method - Setter of Campaign.enabled attribute defined at extension basecommerce.
      Parameters:
      value - the enabled
    • setEndDate

      @Accessor(qualifier="endDate", type=SETTER) public void setEndDate(Date value)
      Generated method - Setter of Campaign.endDate attribute defined at extension basecommerce.
      Parameters:
      value - the endDate
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value)
      Generated method - Setter of Campaign.name attribute defined at extension basecommerce.
      Parameters:
      value - the name
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
      Generated method - Setter of Campaign.name attribute defined at extension basecommerce.
      Parameters:
      value - the name
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setRestrictions

      @Accessor(qualifier="restrictions", type=SETTER) public void setRestrictions(Collection<CMSCampaignRestrictionModel> value)
      Generated method - Setter of Campaign.restrictions attribute defined at extension cms2.
      Parameters:
      value - the restrictions
    • setSourceRules

      @Accessor(qualifier="sourceRules", type=SETTER) public void setSourceRules(Set<SourceRuleModel> value)
      Generated method - Setter of Campaign.sourceRules attribute defined at extension ruleengineservices.
      Parameters:
      value - the sourceRules
    • setStartDate

      @Accessor(qualifier="startDate", type=SETTER) public void setStartDate(Date value)
      Generated method - Setter of Campaign.startDate attribute defined at extension basecommerce.
      Parameters:
      value - the startDate