Class JpaVendor
java.lang.Object
com.broadleafcommerce.vendor.provider.jpa.domain.JpaVendor
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,com.broadleafcommerce.data.tracking.core.Temporal,com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>,com.broadleafcommerce.data.tracking.core.Trackable,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>,Serializable
@Entity
public class JpaVendor
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.Temporal
Persistent counter-part to a
Vendor for use with a JPA-supported datastore.- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.modelmapper.ModelMapperfromMe()get_id()getName()Temporal state describing the time at which this item was last updated.com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTrackinginthashCode()voidvoidsetAdditionalContacts(List<Contact> additionalContacts) voidsetAddress(Address address) voidsetAttributes(Map<String, JpaAttribute> attributes) voidsetContextId(String contextId) voidsetDefaultCurrency(String defaultCurrency) voidsetDefaultLocale(String defaultLocale) voidvoidsetPrimaryContact(Contact primaryContact) voidsetTimestamp(Instant timestamp) Temporal state describing the time at which this item was last updated.voidsetTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) voidsetVendorRef(String vendorRef) org.modelmapper.ModelMappertoMe()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMeMethods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationStateMethods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getNotificationStates, getNotificationStates, setNotificationStatesMethods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaVendor
public JpaVendor()
-
-
Method Details
-
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
- Specified by:
getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
- Specified by:
getDisplayin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
get_id
-
getContextId
- Specified by:
getContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable- See Also:
-
getName
- See Also:
-
getVendorRef
- See Also:
-
getAddress
- See Also:
-
getPrimaryContact
- See Also:
-
getAdditionalContacts
- See Also:
-
getAttributes
- See Also:
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()- Specified by:
getTrackingin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Returns:
- the
TenantJpaTrackinginformation for this menu - See Also:
-
TenantJpaTracking
-
getTimestamp
Temporal state describing the time at which this item was last updated. Relates to theTemporalinterface and is primarily used during consumption of messages regarding changes in state to this domain. For example, a service consuming a change notification for this domain can compare the current persisted timestamp to this timestamp to determine if it already has a newer version, in which case, it can ignore. This is primarily a measure to ensure that ordering is not required for messages related to state change.- Specified by:
getTimestampin interfacecom.broadleafcommerce.data.tracking.core.Temporal- Returns:
- Temporal state describing the time at which this item was last updated
-
getDefaultLocale
-
getDefaultCurrency
-
set_id
-
setContextId
- Specified by:
setContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable- See Also:
-
setName
- See Also:
-
setVendorRef
- See Also:
-
setAddress
- See Also:
-
setPrimaryContact
- See Also:
-
setAdditionalContacts
- See Also:
-
setAttributes
- See Also:
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) - Specified by:
setTrackingin interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>- Parameters:
tracking- theTenantJpaTrackinginformation for this menu- See Also:
-
TenantJpaTracking
-
setTimestamp
Temporal state describing the time at which this item was last updated. Relates to theTemporalinterface and is primarily used during consumption of messages regarding changes in state to this domain. For example, a service consuming a change notification for this domain can compare the current persisted timestamp to this timestamp to determine if it already has a newer version, in which case, it can ignore. This is primarily a measure to ensure that ordering is not required for messages related to state change.- Specified by:
setTimestampin interfacecom.broadleafcommerce.data.tracking.core.Temporal- Parameters:
timestamp- Temporal state describing the time at which this item was last updated
-
setDefaultLocale
-
setDefaultCurrency
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-