public class CommerceAddressWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceAddress> implements CommerceAddress, com.liferay.portal.kernel.model.ModelWrapper<CommerceAddress>
This class is a wrapper for CommerceAddress
.
CommerceAddress
,
Serialized FormCOMMERCE_ADDRESS_ID_ACCESSOR
Constructor and Description |
---|
CommerceAddressWrapper(CommerceAddress commerceAddress) |
Modifier and Type | Method and Description |
---|---|
CommerceAddress |
cloneWithOriginalValues() |
com.liferay.portal.kernel.model.Country |
fetchCountry() |
java.lang.String |
getCity()
Returns the city of this commerce address.
|
java.lang.String |
getClassName()
Returns the fully qualified class name of this commerce address.
|
long |
getClassNameId()
Returns the class name ID of this commerce address.
|
long |
getClassPK()
Returns the class pk of this commerce address.
|
long |
getCommerceAddressId()
Returns the commerce address ID of this commerce address.
|
long |
getCompanyId()
Returns the company ID of this commerce address.
|
com.liferay.portal.kernel.model.Country |
getCountry() |
long |
getCountryId()
Returns the country ID of this commerce address.
|
java.util.Date |
getCreateDate()
Returns the create date of this commerce address.
|
boolean |
getDefaultBilling()
Returns the default billing of this commerce address.
|
boolean |
getDefaultShipping()
Returns the default shipping of this commerce address.
|
java.lang.String |
getDescription()
Returns the description of this commerce address.
|
com.liferay.expando.kernel.model.ExpandoBridge |
getExpandoBridge() |
java.lang.String |
getExternalReferenceCode()
Returns the external reference code of this commerce address.
|
long |
getGroupId()
Returns the group ID of this commerce address.
|
double |
getLatitude()
Returns the latitude of this commerce address.
|
double |
getLongitude()
Returns the longitude of this commerce address.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this commerce address.
|
long |
getMvccVersion()
Returns the mvcc version of this commerce address.
|
java.lang.String |
getName()
Returns the name of this commerce address.
|
java.lang.String |
getPhoneNumber()
Returns the phone number of this commerce address.
|
long |
getPrimaryKey()
Returns the primary key of this commerce address.
|
com.liferay.portal.kernel.model.Region |
getRegion() |
long |
getRegionId()
Returns the region ID of this commerce address.
|
java.lang.String |
getStreet1()
Returns the street1 of this commerce address.
|
java.lang.String |
getStreet2()
Returns the street2 of this commerce address.
|
java.lang.String |
getStreet3()
Returns the street3 of this commerce address.
|
int |
getType()
Returns the type of this commerce address.
|
long |
getUserId()
Returns the user ID of this commerce address.
|
java.lang.String |
getUserName()
Returns the user name of this commerce address.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this commerce address.
|
java.lang.String |
getZip()
Returns the zip of this commerce address.
|
boolean |
isDefaultBilling()
Returns
true if this commerce address is default billing. |
boolean |
isDefaultShipping()
Returns
true if this commerce address is default shipping. |
boolean |
isGeolocated() |
boolean |
isSameAddress(CommerceAddress commerceAddress) |
void |
setCity(java.lang.String city)
Sets the city of this commerce address.
|
void |
setClassName(java.lang.String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this commerce address.
|
void |
setClassPK(long classPK)
Sets the class pk of this commerce address.
|
void |
setCommerceAddressId(long commerceAddressId)
Sets the commerce address ID of this commerce address.
|
void |
setCompanyId(long companyId)
Sets the company ID of this commerce address.
|
void |
setCountryId(long countryId)
Sets the country ID of this commerce address.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this commerce address.
|
void |
setDefaultBilling(boolean defaultBilling)
Sets whether this commerce address is default billing.
|
void |
setDefaultShipping(boolean defaultShipping)
Sets whether this commerce address is default shipping.
|
void |
setDescription(java.lang.String description)
Sets the description of this commerce address.
|
void |
setExternalReferenceCode(java.lang.String externalReferenceCode)
Sets the external reference code of this commerce address.
|
void |
setGroupId(long groupId)
Sets the group ID of this commerce address.
|
void |
setLatitude(double latitude)
Sets the latitude of this commerce address.
|
void |
setLongitude(double longitude)
Sets the longitude of this commerce address.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this commerce address.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this commerce address.
|
void |
setName(java.lang.String name)
Sets the name of this commerce address.
|
void |
setPhoneNumber(java.lang.String phoneNumber)
Sets the phone number of this commerce address.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this commerce address.
|
void |
setRegionId(long regionId)
Sets the region ID of this commerce address.
|
void |
setStreet1(java.lang.String street1)
Sets the street1 of this commerce address.
|
void |
setStreet2(java.lang.String street2)
Sets the street2 of this commerce address.
|
void |
setStreet3(java.lang.String street3)
Sets the street3 of this commerce address.
|
void |
setType(int type)
Sets the type of this commerce address.
|
void |
setUserId(long userId)
Sets the user ID of this commerce address.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this commerce address.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this commerce address.
|
void |
setZip(java.lang.String zip)
Sets the zip of this commerce address.
|
protected CommerceAddressWrapper |
wrap(CommerceAddress commerceAddress) |
clone, compareTo, equals, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
public CommerceAddressWrapper(CommerceAddress commerceAddress)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<CommerceAddress>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<CommerceAddress>
public CommerceAddress cloneWithOriginalValues()
cloneWithOriginalValues
in interface CommerceAddressModel
cloneWithOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<CommerceAddress>
public com.liferay.portal.kernel.model.Country fetchCountry()
fetchCountry
in interface CommerceAddress
public java.lang.String getCity()
getCity
in interface CommerceAddressModel
public java.lang.String getClassName()
getClassName
in interface CommerceAddressModel
getClassName
in interface com.liferay.portal.kernel.model.TypedModel
public long getClassNameId()
getClassNameId
in interface CommerceAddressModel
getClassNameId
in interface com.liferay.portal.kernel.model.TypedModel
public long getClassPK()
getClassPK
in interface CommerceAddressModel
getClassPK
in interface com.liferay.portal.kernel.model.AttachedModel
public long getCommerceAddressId()
getCommerceAddressId
in interface CommerceAddressModel
public long getCompanyId()
getCompanyId
in interface CommerceAddressModel
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
public com.liferay.portal.kernel.model.Country getCountry() throws com.liferay.portal.kernel.exception.PortalException
getCountry
in interface CommerceAddress
com.liferay.portal.kernel.exception.PortalException
public long getCountryId()
getCountryId
in interface CommerceAddressModel
public java.util.Date getCreateDate()
getCreateDate
in interface CommerceAddressModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
public boolean getDefaultBilling()
getDefaultBilling
in interface CommerceAddressModel
public boolean getDefaultShipping()
getDefaultShipping
in interface CommerceAddressModel
public java.lang.String getDescription()
getDescription
in interface CommerceAddressModel
public com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge
in interface CommerceAddress
getExpandoBridge
in interface com.liferay.portal.kernel.model.BaseModel<CommerceAddress>
getExpandoBridge
in interface com.liferay.portal.kernel.model.ClassedModel
getExpandoBridge
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceAddress>
public java.lang.String getExternalReferenceCode()
getExternalReferenceCode
in interface CommerceAddressModel
public long getGroupId()
getGroupId
in interface CommerceAddressModel
getGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
public double getLatitude()
getLatitude
in interface CommerceAddressModel
public double getLongitude()
getLongitude
in interface CommerceAddressModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface CommerceAddressModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
public long getMvccVersion()
getMvccVersion
in interface CommerceAddressModel
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
public java.lang.String getName()
getName
in interface CommerceAddressModel
public java.lang.String getPhoneNumber()
getPhoneNumber
in interface CommerceAddressModel
public long getPrimaryKey()
getPrimaryKey
in interface CommerceAddressModel
public com.liferay.portal.kernel.model.Region getRegion() throws com.liferay.portal.kernel.exception.PortalException
getRegion
in interface CommerceAddress
com.liferay.portal.kernel.exception.PortalException
public long getRegionId()
getRegionId
in interface CommerceAddressModel
public java.lang.String getStreet1()
getStreet1
in interface CommerceAddressModel
public java.lang.String getStreet2()
getStreet2
in interface CommerceAddressModel
public java.lang.String getStreet3()
getStreet3
in interface CommerceAddressModel
public int getType()
getType
in interface CommerceAddressModel
public long getUserId()
getUserId
in interface CommerceAddressModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserName()
getUserName
in interface CommerceAddressModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface CommerceAddressModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getZip()
getZip
in interface CommerceAddressModel
public boolean isDefaultBilling()
true
if this commerce address is default billing.isDefaultBilling
in interface CommerceAddressModel
true
if this commerce address is default billing; false
otherwisepublic boolean isDefaultShipping()
true
if this commerce address is default shipping.isDefaultShipping
in interface CommerceAddressModel
true
if this commerce address is default shipping; false
otherwisepublic boolean isGeolocated()
isGeolocated
in interface CommerceAddress
public boolean isSameAddress(CommerceAddress commerceAddress)
isSameAddress
in interface CommerceAddress
public void setCity(java.lang.String city)
setCity
in interface CommerceAddressModel
city
- the city of this commerce addresspublic void setClassName(java.lang.String className)
setClassName
in interface CommerceAddressModel
public void setClassNameId(long classNameId)
setClassNameId
in interface CommerceAddressModel
setClassNameId
in interface com.liferay.portal.kernel.model.TypedModel
classNameId
- the class name ID of this commerce addresspublic void setClassPK(long classPK)
setClassPK
in interface CommerceAddressModel
setClassPK
in interface com.liferay.portal.kernel.model.AttachedModel
classPK
- the class pk of this commerce addresspublic void setCommerceAddressId(long commerceAddressId)
setCommerceAddressId
in interface CommerceAddressModel
commerceAddressId
- the commerce address ID of this commerce addresspublic void setCompanyId(long companyId)
setCompanyId
in interface CommerceAddressModel
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
companyId
- the company ID of this commerce addresspublic void setCountryId(long countryId)
setCountryId
in interface CommerceAddressModel
countryId
- the country ID of this commerce addresspublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface CommerceAddressModel
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
createDate
- the create date of this commerce addresspublic void setDefaultBilling(boolean defaultBilling)
setDefaultBilling
in interface CommerceAddressModel
defaultBilling
- the default billing of this commerce addresspublic void setDefaultShipping(boolean defaultShipping)
setDefaultShipping
in interface CommerceAddressModel
defaultShipping
- the default shipping of this commerce addresspublic void setDescription(java.lang.String description)
setDescription
in interface CommerceAddressModel
description
- the description of this commerce addresspublic void setExternalReferenceCode(java.lang.String externalReferenceCode)
setExternalReferenceCode
in interface CommerceAddressModel
externalReferenceCode
- the external reference code of this commerce addresspublic void setGroupId(long groupId)
setGroupId
in interface CommerceAddressModel
setGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
groupId
- the group ID of this commerce addresspublic void setLatitude(double latitude)
setLatitude
in interface CommerceAddressModel
latitude
- the latitude of this commerce addresspublic void setLongitude(double longitude)
setLongitude
in interface CommerceAddressModel
longitude
- the longitude of this commerce addresspublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface CommerceAddressModel
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
modifiedDate
- the modified date of this commerce addresspublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface CommerceAddressModel
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this commerce addresspublic void setName(java.lang.String name)
setName
in interface CommerceAddressModel
name
- the name of this commerce addresspublic void setPhoneNumber(java.lang.String phoneNumber)
setPhoneNumber
in interface CommerceAddressModel
phoneNumber
- the phone number of this commerce addresspublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CommerceAddressModel
primaryKey
- the primary key of this commerce addresspublic void setRegionId(long regionId)
setRegionId
in interface CommerceAddressModel
regionId
- the region ID of this commerce addresspublic void setStreet1(java.lang.String street1)
setStreet1
in interface CommerceAddressModel
street1
- the street1 of this commerce addresspublic void setStreet2(java.lang.String street2)
setStreet2
in interface CommerceAddressModel
street2
- the street2 of this commerce addresspublic void setStreet3(java.lang.String street3)
setStreet3
in interface CommerceAddressModel
street3
- the street3 of this commerce addresspublic void setType(int type)
setType
in interface CommerceAddressModel
type
- the type of this commerce addresspublic void setUserId(long userId)
setUserId
in interface CommerceAddressModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this commerce addresspublic void setUserName(java.lang.String userName)
setUserName
in interface CommerceAddressModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this commerce addresspublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface CommerceAddressModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this commerce addresspublic void setZip(java.lang.String zip)
setZip
in interface CommerceAddressModel
zip
- the zip of this commerce addressprotected CommerceAddressWrapper wrap(CommerceAddress commerceAddress)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceAddress>