Class JpaCustomerReference
java.lang.Object
com.broadleafcommerce.recommendationengine.provider.jpa.domain.JpaCustomerReference
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware,com.broadleafcommerce.data.tracking.core.CustomerContextTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking>,com.broadleafcommerce.data.tracking.core.filtering.NumericIdRepository,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.Trackable,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking>,Serializable
@Entity
@TrackableExtension({TENANT,CUSTOMER_CONTEXT})
public class JpaCustomerReference
extends Object
implements com.broadleafcommerce.data.tracking.core.CustomerContextTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.Temporal, com.broadleafcommerce.data.tracking.core.filtering.NumericIdRepository
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.modelmapper.ModelMapperfromMe()Class<?>getEmail()longgetTaxId()The tax id for this customerTemporal state describing the time at which this item was last updated.com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTrackingOptional VAT registration ID for this customer.inthashCode()booleanisActive()booleanisLocked()voidsetActive(boolean active) voidsetAttributes(Map<String, Object> attributes) voidsetContextId(String contextId) voidsetDefaultAccountId(String defaultAccountId) voidsetDefaultCommunicationPreference(String defaultCommunicationPreference) voidvoidsetExternalId(String externalId) voidsetFirstName(String firstName) voidsetFullName(String fullName) voidsetLastName(String lastName) voidsetLocked(boolean locked) voidsetMiddleName(String middleName) voidsetNumericId(long numericId) voidsetSpecialType(String specialType) voidThe tax id for this customervoidsetTimestamp(Instant timestamp) Temporal state describing the time at which this item was last updated.voidsetTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking tracking) voidsetUsername(String username) voidsetVatRegistrationId(String vatRegistrationId) Optional VAT registration ID for this customer.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
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
JpaCustomerReference
public JpaCustomerReference()
-
-
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
-
getNumericId
public long getNumericId() -
getContextId
- Specified by:
getContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getFirstName
- See Also:
-
getMiddleName
- See Also:
-
getLastName
- See Also:
-
getFullName
- See Also:
-
getUsername
- See Also:
-
getEmail
- See Also:
-
getExternalId
- See Also:
-
getDefaultCommunicationPreference
-
getAttributes
- See Also:
-
getTaxId
The tax id for this customer -
getVatRegistrationId
Optional VAT registration ID for this customer. -
getSpecialType
- See Also:
-
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
-
isActive
public boolean isActive() -
isLocked
public boolean isLocked() -
getDefaultAccountId
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking getTracking()- Specified by:
getTrackingin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setNumericId
public void setNumericId(long numericId) -
setContextId
- Specified by:
setContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setFirstName
- See Also:
-
setMiddleName
- See Also:
-
setLastName
- See Also:
-
setFullName
- See Also:
-
setUsername
- See Also:
-
setEmail
- See Also:
-
setExternalId
- See Also:
-
setDefaultCommunicationPreference
-
setAttributes
- See Also:
-
setTaxId
The tax id for this customer -
setVatRegistrationId
Optional VAT registration ID for this customer. -
setSpecialType
- See Also:
-
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
-
setActive
public void setActive(boolean active) -
setLocked
public void setLocked(boolean locked) -
setDefaultAccountId
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking tracking) - Specified by:
setTrackingin interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking>- Parameters:
tracking- The tracking information for this customer.
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-