Class CustomerSegmentImpl
java.lang.Object
com.broadleafcommerce.customersegment.domain.CustomerSegmentImpl
- All Implemented Interfaces:
CustomerSegment,CustomerSegmentPresentation,Serializable,org.broadleafcommerce.common.admin.domain.AdminMainEntity,org.broadleafcommerce.common.copy.MultiTenantCloneable<CustomerSegment>,org.broadleafcommerce.common.persistence.Status,org.broadleafcommerce.common.rule.SimpleRule
@Entity
public class CustomerSegmentImpl
extends Object
implements CustomerSegment, CustomerSegmentPresentation, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.rule.SimpleRule
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.broadleafcommerce.customersegment.domain.CustomerSegmentPresentation
CustomerSegmentPresentation.FieldOrder, CustomerSegmentPresentation.GroupName, CustomerSegmentPresentation.GroupOrder, CustomerSegmentPresentation.TabName, CustomerSegmentPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected org.broadleafcommerce.common.persistence.ArchiveStatusprotected List<CustPrchBasedCustSegXref>protected List<CustomerCustomerSegmentXref>protected Booleanprotected Longprotected Stringprotected Dateprotected Integerprotected Stringprotected BigDecimalprotected Stringprotected List<OfferCustomerSegmentXref>protected Stringprotected Dateprotected Dateprotected Set<CustomerSegmentQualifyingCriteriaXref>protected Stringprotected StringFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends CustomerSegment>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleangetId()Returns the id of this CustomerSegmentgetName()Returns the name of this CustomerSegmentgetType()inthashCode()booleanisActive()voidsetActiveFlag(Boolean activeFlag) voidsetArchived(Character archived) voidsetCustomerPurchaseBasedCustomerXrefs(List<CustPrchBasedCustSegXref> purchaseBasedCustomerXrefs) voidsetCustomerXrefs(List<CustomerCustomerSegmentXref> customerXrefs) voidsetHasPurchaseRequirements(Boolean hasPurchaseRequirements) voidSets the id for this CustomerSegmentvoidsetIdentifierType(String identifierType) voidsetLastUpdateDate(Date lastUpdateDate) voidsetLastXDays(Integer lastXDays) voidsetMatchRule(String matchRule) voidsetMinimumSpend(BigDecimal minimumSpend) voidSets the name for this CustomerSegmentvoidsetOfferCustomerSegmentXrefs(List<OfferCustomerSegmentXref> offerCustomerSegmentXrefs) voidsetPurchaseDateType(PurchaseDateType purchaseDateType) voidsetPurchaseEndDate(Date purchaseEndDate) voidsetPurchaseStartDate(Date purchaseStartDate) voidsetQualifyingItemCriteria(Set<CustomerSegmentQualifyingCriteriaXref> qualifyingItemCriteria) voidsetRequestMatchRule(String requestMatchRule) void
-
Field Details
-
id
-
name
-
type
-
matchRule
-
requestMatchRule
-
customerXrefs
-
activeFlag
-
customerPurchaseBasedCustomerXrefs
-
hasPurchaseRequirements
-
qualifyingItemCriteria
-
minimumSpend
-
purchaseDateType
-
purchaseStartDate
-
purchaseEndDate
-
lastXDays
-
lastUpdateDate
-
identifierType
-
offerCustomerSegmentXrefs
-
archiveStatus
protected org.broadleafcommerce.common.persistence.ArchiveStatus archiveStatus
-
-
Constructor Details
-
CustomerSegmentImpl
public CustomerSegmentImpl()
-
-
Method Details
-
getId
Description copied from interface:CustomerSegmentReturns the id of this CustomerSegment- Specified by:
getIdin interfaceCustomerSegment- Returns:
-
setId
Description copied from interface:CustomerSegmentSets the id for this CustomerSegment- Specified by:
setIdin interfaceCustomerSegment
-
getName
Description copied from interface:CustomerSegmentReturns the name of this CustomerSegment- Specified by:
getNamein interfaceCustomerSegment- Returns:
-
setName
Description copied from interface:CustomerSegmentSets the name for this CustomerSegment- Specified by:
setNamein interfaceCustomerSegment
-
getType
- Specified by:
getTypein interfaceCustomerSegment
-
setType
- Specified by:
setTypein interfaceCustomerSegment
-
getCustomerXrefs
- Specified by:
getCustomerXrefsin interfaceCustomerSegment
-
setCustomerXrefs
- Specified by:
setCustomerXrefsin interfaceCustomerSegment
-
getActiveFlag
- Specified by:
getActiveFlagin interfaceCustomerSegment
-
setActiveFlag
- Specified by:
setActiveFlagin interfaceCustomerSegment
-
getMatchRule
- Specified by:
getMatchRulein interfaceCustomerSegment- Specified by:
getMatchRulein interfaceorg.broadleafcommerce.common.rule.SimpleRule
-
getCustomerPurchaseBasedCustomerXrefs
- Specified by:
getCustomerPurchaseBasedCustomerXrefsin interfaceCustomerSegment
-
setCustomerPurchaseBasedCustomerXrefs
public void setCustomerPurchaseBasedCustomerXrefs(List<CustPrchBasedCustSegXref> purchaseBasedCustomerXrefs) - Specified by:
setCustomerPurchaseBasedCustomerXrefsin interfaceCustomerSegment
-
getHasPurchaseRequirements
- Specified by:
getHasPurchaseRequirementsin interfaceCustomerSegment
-
setHasPurchaseRequirements
- Specified by:
setHasPurchaseRequirementsin interfaceCustomerSegment
-
setMatchRule
- Specified by:
setMatchRulein interfaceCustomerSegment- Specified by:
setMatchRulein interfaceorg.broadleafcommerce.common.rule.SimpleRule
-
getRequestMatchRule
- Specified by:
getRequestMatchRulein interfaceCustomerSegment
-
setRequestMatchRule
- Specified by:
setRequestMatchRulein interfaceCustomerSegment
-
getQualifyingItemCriteria
- Specified by:
getQualifyingItemCriteriain interfaceCustomerSegment
-
setQualifyingItemCriteria
public void setQualifyingItemCriteria(Set<CustomerSegmentQualifyingCriteriaXref> qualifyingItemCriteria) - Specified by:
setQualifyingItemCriteriain interfaceCustomerSegment
-
getMinimumSpend
- Specified by:
getMinimumSpendin interfaceCustomerSegment
-
setMinimumSpend
- Specified by:
setMinimumSpendin interfaceCustomerSegment
-
getPurchaseDateType
- Specified by:
getPurchaseDateTypein interfaceCustomerSegment
-
setPurchaseDateType
- Specified by:
setPurchaseDateTypein interfaceCustomerSegment
-
getPurchaseStartDate
- Specified by:
getPurchaseStartDatein interfaceCustomerSegment
-
setPurchaseStartDate
- Specified by:
setPurchaseStartDatein interfaceCustomerSegment
-
getPurchaseEndDate
- Specified by:
getPurchaseEndDatein interfaceCustomerSegment
-
setPurchaseEndDate
- Specified by:
setPurchaseEndDatein interfaceCustomerSegment
-
getLastXDays
- Specified by:
getLastXDaysin interfaceCustomerSegment
-
setLastXDays
- Specified by:
setLastXDaysin interfaceCustomerSegment
-
getLastUpdateDate
- Specified by:
getLastUpdateDatein interfaceCustomerSegment
-
setLastUpdateDate
- Specified by:
setLastUpdateDatein interfaceCustomerSegment
-
getIdentifierType
- Specified by:
getIdentifierTypein interfaceCustomerSegment
-
setIdentifierType
- Specified by:
setIdentifierTypein interfaceCustomerSegment
-
getOfferCustomerSegmentXrefs
- Specified by:
getOfferCustomerSegmentXrefsin interfaceCustomerSegment
-
setOfferCustomerSegmentXrefs
- Specified by:
setOfferCustomerSegmentXrefsin interfaceCustomerSegment
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceorg.broadleafcommerce.common.admin.domain.AdminMainEntity
-
equals
-
hashCode
public int hashCode() -
getArchived
- Specified by:
getArchivedin interfaceorg.broadleafcommerce.common.persistence.Status
-
setArchived
- Specified by:
setArchivedin interfaceorg.broadleafcommerce.common.persistence.Status
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.broadleafcommerce.common.persistence.Status
-
createOrRetrieveCopyInstance
public <G extends CustomerSegment> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<CustomerSegment>- Throws:
CloneNotSupportedException
-