Class SitePreferenceModel

All Implemented Interfaces:
Serializable

public class SitePreferenceModel extends ItemModel
Generated model class for type SitePreference first defined at extension commerceservices.

Preferences for one site.

See Also:
  • Field Details

    • _TYPECODE

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

      public static final String _CUSTOMER2SITEPREFERENCES
      Generated relation code constant for relation Customer2SitePreferences defining source attribute customer in extension commerceservices.
      See Also:
    • SITE

      public static final String SITE
      Generated constant - Attribute key of SitePreference.site attribute defined at extension commerceservices.
      See Also:
    • PICKUPLOCATION

      public static final String PICKUPLOCATION
      Generated constant - Attribute key of SitePreference.pickUpLocation attribute defined at extension commerceservices.
      See Also:
    • CUSTOMER

      public static final String CUSTOMER
      Generated constant - Attribute key of SitePreference.customer attribute defined at extension commerceservices.
      See Also:
  • Constructor Details

    • SitePreferenceModel

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

      public SitePreferenceModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • SitePreferenceModel

      @Deprecated(since="4.1.1", forRemoval=true) public SitePreferenceModel(CustomerModel _customer, BaseSiteModel _site)
      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:
      _customer - initial attribute declared by type SitePreference at extension commerceservices
      _site - initial attribute declared by type SitePreference at extension commerceservices
    • SitePreferenceModel

      @Deprecated(since="4.1.1", forRemoval=true) public SitePreferenceModel(CustomerModel _customer, ItemModel _owner, BaseSiteModel _site)
      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:
      _customer - initial attribute declared by type SitePreference at extension commerceservices
      _owner - initial attribute declared by type Item at extension core
      _site - initial attribute declared by type SitePreference at extension commerceservices
  • Method Details

    • getCustomer

      @Accessor(qualifier="customer", type=GETTER) public CustomerModel getCustomer()
      Generated method - Getter of the SitePreference.customer attribute defined at extension commerceservices.
      Returns:
      the customer
    • getPickUpLocation

      @Accessor(qualifier="pickUpLocation", type=GETTER) public PointOfServiceModel getPickUpLocation()
      Generated method - Getter of the SitePreference.pickUpLocation attribute defined at extension commerceservices.
      Returns:
      the pickUpLocation
    • getSite

      @Accessor(qualifier="site", type=GETTER) public BaseSiteModel getSite()
      Generated method - Getter of the SitePreference.site attribute defined at extension commerceservices.
      Returns:
      the site
    • setCustomer

      @Accessor(qualifier="customer", type=SETTER) public void setCustomer(CustomerModel value)
      Generated method - Initial setter of SitePreference.customer attribute defined at extension commerceservices. Can only be used at creation of model - before first save.
      Parameters:
      value - the customer
    • setPickUpLocation

      @Accessor(qualifier="pickUpLocation", type=SETTER) public void setPickUpLocation(PointOfServiceModel value)
      Generated method - Setter of SitePreference.pickUpLocation attribute defined at extension commerceservices.
      Parameters:
      value - the pickUpLocation
    • setSite

      @Accessor(qualifier="site", type=SETTER) public void setSite(BaseSiteModel value)
      Generated method - Initial setter of SitePreference.site attribute defined at extension commerceservices. Can only be used at creation of model - before first save.
      Parameters:
      value - the site