Class SitePreferenceModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.core.model.user.SitePreferenceModel
- All Implemented Interfaces:
Serializable
Generated model class for type SitePreference first defined at extension commerceservices.
Preferences for one site.
- 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 relationCustomer2SitePreferencesdefining source attributecustomerin extensioncommerceservices.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofSitePreference.customerattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofSitePreference.pickUpLocationattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofSitePreference.siteattribute defined at extensioncommerceservices.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.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 parametersSitePreferenceModel(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 parametersSitePreferenceModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theSitePreference.customerattribute defined at extensioncommerceservices.Generated method - Getter of theSitePreference.pickUpLocationattribute defined at extensioncommerceservices.getSite()Generated method - Getter of theSitePreference.siteattribute defined at extensioncommerceservices.voidsetCustomer(CustomerModel value) Generated method - Initial setter ofSitePreference.customerattribute defined at extensioncommerceservices.voidGenerated method - Setter ofSitePreference.pickUpLocationattribute defined at extensioncommerceservices.voidsetSite(BaseSiteModel value) Generated method - Initial setter ofSitePreference.siteattribute defined at extensioncommerceservices.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:
-
_CUSTOMER2SITEPREFERENCES
Generated relation code constant for relationCustomer2SitePreferencesdefining source attributecustomerin extensioncommerceservices.- See Also:
-
SITE
Generated constant - Attribute key ofSitePreference.siteattribute defined at extensioncommerceservices.- See Also:
-
PICKUPLOCATION
Generated constant - Attribute key ofSitePreference.pickUpLocationattribute defined at extensioncommerceservices.- See Also:
-
CUSTOMER
Generated constant - Attribute key ofSitePreference.customerattribute defined at extensioncommerceservices.- See Also:
-
-
Constructor Details
-
SitePreferenceModel
public SitePreferenceModel()Generated constructor - Default constructor for generic creation. -
SitePreferenceModel
public SitePreferenceModel(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
-
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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_customer- initial attribute declared by typeSitePreferenceat extensioncommerceservices_site- initial attribute declared by typeSitePreferenceat extensioncommerceservices
-
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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_customer- initial attribute declared by typeSitePreferenceat extensioncommerceservices_owner- initial attribute declared by typeItemat extensioncore_site- initial attribute declared by typeSitePreferenceat extensioncommerceservices
-
-
Method Details
-
getCustomer
Generated method - Getter of theSitePreference.customerattribute defined at extensioncommerceservices.- Returns:
- the customer
-
getPickUpLocation
Generated method - Getter of theSitePreference.pickUpLocationattribute defined at extensioncommerceservices.- Returns:
- the pickUpLocation
-
getSite
Generated method - Getter of theSitePreference.siteattribute defined at extensioncommerceservices.- Returns:
- the site
-
setCustomer
Generated method - Initial setter ofSitePreference.customerattribute defined at extensioncommerceservices. 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 ofSitePreference.pickUpLocationattribute defined at extensioncommerceservices.- Parameters:
value- the pickUpLocation
-
setSite
Generated method - Initial setter ofSitePreference.siteattribute defined at extensioncommerceservices. Can only be used at creation of model - before first save.- Parameters:
value- the site
-