Class CustomerPhoneImpl
java.lang.Object
org.broadleafcommerce.profile.core.domain.CustomerPhoneImpl
- All Implemented Interfaces:
Serializable,MultiTenantCloneable<CustomerPhone>,CustomerPhone,CustomerPhoneAdminPresentation
@Entity
public class CustomerPhoneImpl
extends Object
implements CustomerPhone, CustomerPhoneAdminPresentation
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.broadleafcommerce.profile.core.domain.CustomerPhoneAdminPresentation
CustomerPhoneAdminPresentation.FieldOrder, CustomerPhoneAdminPresentation.GroupName, CustomerPhoneAdminPresentation.GroupOrder, CustomerPhoneAdminPresentation.TabName, CustomerPhoneAdminPresentation.TabOrder -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends CustomerPhone>
CreateResponse<G>Clone this entity for the purpose of multiple tenancy.booleangetId()getPhone()inthashCode()voidsetCustomer(Customer customer) voidvoidvoidsetPhoneName(String phoneName)
-
Field Details
-
id
-
phoneName
-
customer
-
phone
-
-
Constructor Details
-
CustomerPhoneImpl
public CustomerPhoneImpl()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceCustomerPhone
-
setId
- Specified by:
setIdin interfaceCustomerPhone
-
getPhoneName
- Specified by:
getPhoneNamein interfaceCustomerPhone
-
setPhoneName
- Specified by:
setPhoneNamein interfaceCustomerPhone
-
getCustomer
- Specified by:
getCustomerin interfaceCustomerPhone
-
setCustomer
- Specified by:
setCustomerin interfaceCustomerPhone
-
getPhone
- Specified by:
getPhonein interfaceCustomerPhone
-
setPhone
- Specified by:
setPhonein interfaceCustomerPhone
-
hashCode
public int hashCode() -
equals
-
createOrRetrieveCopyInstance
public <G extends CustomerPhone> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException Description copied from interface:MultiTenantCloneableClone this entity for the purpose of multiple tenancy. Note, extending classes should follow this pattern:public CreateResponse<MyClass> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException { CreateResponse<MyClass> createResponse = super.createOrRetrieveCopyInstance(context); if (createResponse.isAlreadyPopulated()) { return createResponse; } MyClass myClone = createResponse.getClone();Support should also be added for @Embeddable classes that contribute fields (collections or basic) to a cloneable entity://copy extended field values on myClone here
return createResponse; }
public CreateResponse<G extends MyClass> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException { CreateResponsecreateResponse = context.createOrRetrieveCopyInstance(this); MyClass myClone = createResponse.getClone(); //copy extended field values on myClone here
return createResponse; }
- Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<CustomerPhone>- Parameters:
context- a context object providing persistence and library functionality for copying entities- Returns:
- the resulting copy container, possibly already persisted
- Throws:
CloneNotSupportedException- if there's a problem detected with the cloning configuration
-