Package com.liferay.portal.kernel.model
Class AddressWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Address>
com.liferay.portal.kernel.model.AddressWrapper
- All Implemented Interfaces:
Address
,AddressModel
,AttachedModel
,AuditedModel
,BaseModel<Address>
,CTModel<Address>
,ClassedModel
,ExternalReferenceCodeModel
,ModelWrapper<Address>
,MVCCModel
,PersistedModel
,ShardedModel
,StagedAuditedModel
,StagedModel
,TypedModel
,Serializable
,Cloneable
,Comparable<Address>
public class AddressWrapper
extends BaseModelWrapper<Address>
implements Address, ModelWrapper<Address>
This class is a wrapper for Address
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.portal.kernel.model.Address
ADDRESS_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the address ID of this address.getCity()
Returns the city of this address.Returns the fully qualified class name of this address.long
Returns the class name ID of this address.long
Returns the class pk of this address.long
Returns the company ID of this address.long
Returns the country ID of this address.Returns the create date of this address.long
Returns the ct collection ID of this address.Returns the description of this address.Returns the external reference code of this address.double
Returns the latitude of this address.long
Returns the list type ID of this address.double
Returns the longitude of this address.boolean
Returns the mailing of this address.Returns the modified date of this address.long
Returns the mvcc version of this address.getName()
Returns the name of this address.boolean
Returns the primary of this address.long
Returns the primary key of this address.long
Returns the region ID of this address.Returns the street1 of this address.Returns the street2 of this address.Returns the street3 of this address.long
Returns the user ID of this address.Returns the user name of this address.Returns the user uuid of this address.getUuid()
Returns the uuid of this address.Returns the validation date of this address.int
Returns the validation status of this address.getZip()
Returns the zip of this address.boolean
Returnstrue
if this address is mailing.boolean
Returnstrue
if this address is primary.void
persist()
Updates this model instance in the database or adds it if it does not yet exist.void
setAddressId
(long addressId) Sets the address ID of this address.void
Sets the city of this address.void
setClassName
(String className) void
setClassNameId
(long classNameId) Sets the class name ID of this address.void
setClassPK
(long classPK) Sets the class pk of this address.void
setCompanyId
(long companyId) Sets the company ID of this address.void
setCountryId
(long countryId) Sets the country ID of this address.void
setCreateDate
(Date createDate) Sets the create date of this address.void
setCtCollectionId
(long ctCollectionId) Sets the ct collection ID of this address.void
setDescription
(String description) Sets the description of this address.void
setExternalReferenceCode
(String externalReferenceCode) Sets the external reference code of this address.void
setLatitude
(double latitude) Sets the latitude of this address.void
setListTypeId
(long listTypeId) Sets the list type ID of this address.void
setLongitude
(double longitude) Sets the longitude of this address.void
setMailing
(boolean mailing) Sets whether this address is mailing.void
setModelAttributes
(Map<String, Object> attributes) void
setModifiedDate
(Date modifiedDate) Sets the modified date of this address.void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this address.void
Sets the name of this address.void
setPrimary
(boolean primary) Sets whether this address is primary.void
setPrimaryKey
(long primaryKey) Sets the primary key of this address.void
setRegionId
(long regionId) Sets the region ID of this address.void
setStreet1
(String street1) Sets the street1 of this address.void
setStreet2
(String street2) Sets the street2 of this address.void
setStreet3
(String street3) Sets the street3 of this address.void
setUserId
(long userId) Sets the user ID of this address.void
setUserName
(String userName) Sets the user name of this address.void
setUserUuid
(String userUuid) Sets the user uuid of this address.void
Sets the uuid of this address.void
setValidationDate
(Date validationDate) Sets the validation date of this address.void
setValidationStatus
(int validationStatus) Sets the validation status of this address.void
Sets the zip of this address.protected AddressWrapper
Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
Methods inherited from interface com.liferay.portal.kernel.model.StagedModel
clone
-
Constructor Details
-
AddressWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<Address>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<Address>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceAddressModel
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<Address>
-
getAddressId
public long getAddressId()Returns the address ID of this address.- Specified by:
getAddressId
in interfaceAddressModel
- Returns:
- the address ID of this address
-
getCity
Returns the city of this address.- Specified by:
getCity
in interfaceAddressModel
- Returns:
- the city of this address
-
getClassName
Returns the fully qualified class name of this address.- Specified by:
getClassName
in interfaceAddressModel
- Specified by:
getClassName
in interfaceTypedModel
- Returns:
- the fully qualified class name of this address
-
getClassNameId
public long getClassNameId()Returns the class name ID of this address.- Specified by:
getClassNameId
in interfaceAddressModel
- Specified by:
getClassNameId
in interfaceTypedModel
- Returns:
- the class name ID of this address
-
getClassPK
public long getClassPK()Returns the class pk of this address.- Specified by:
getClassPK
in interfaceAddressModel
- Specified by:
getClassPK
in interfaceAttachedModel
- Returns:
- the class pk of this address
-
getCompanyId
public long getCompanyId()Returns the company ID of this address.- Specified by:
getCompanyId
in interfaceAddressModel
- Specified by:
getCompanyId
in interfaceAuditedModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Specified by:
getCompanyId
in interfaceStagedModel
- Returns:
- the company ID of this address
-
getCountry
- Specified by:
getCountry
in interfaceAddress
-
getCountryId
public long getCountryId()Returns the country ID of this address.- Specified by:
getCountryId
in interfaceAddressModel
- Returns:
- the country ID of this address
-
getCreateDate
Returns the create date of this address.- Specified by:
getCreateDate
in interfaceAddressModel
- Specified by:
getCreateDate
in interfaceAuditedModel
- Specified by:
getCreateDate
in interfaceStagedModel
- Returns:
- the create date of this address
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this address.- Specified by:
getCtCollectionId
in interfaceAddressModel
- Specified by:
getCtCollectionId
in interfaceCTModel<Address>
- Returns:
- the ct collection ID of this address
-
getDescription
Returns the description of this address.- Specified by:
getDescription
in interfaceAddressModel
- Returns:
- the description of this address
-
getExternalReferenceCode
Returns the external reference code of this address.- Specified by:
getExternalReferenceCode
in interfaceAddressModel
- Specified by:
getExternalReferenceCode
in interfaceExternalReferenceCodeModel
- Returns:
- the external reference code of this address
-
getLatitude
public double getLatitude()Returns the latitude of this address.- Specified by:
getLatitude
in interfaceAddressModel
- Returns:
- the latitude of this address
-
getListType
- Specified by:
getListType
in interfaceAddress
-
getListTypeId
public long getListTypeId()Returns the list type ID of this address.- Specified by:
getListTypeId
in interfaceAddressModel
- Returns:
- the list type ID of this address
-
getLongitude
public double getLongitude()Returns the longitude of this address.- Specified by:
getLongitude
in interfaceAddressModel
- Returns:
- the longitude of this address
-
getMailing
public boolean getMailing()Returns the mailing of this address.- Specified by:
getMailing
in interfaceAddressModel
- Returns:
- the mailing of this address
-
getModifiedDate
Returns the modified date of this address.- Specified by:
getModifiedDate
in interfaceAddressModel
- Specified by:
getModifiedDate
in interfaceAuditedModel
- Specified by:
getModifiedDate
in interfaceStagedModel
- Returns:
- the modified date of this address
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this address.- Specified by:
getMvccVersion
in interfaceAddressModel
- Specified by:
getMvccVersion
in interfaceMVCCModel
- Returns:
- the mvcc version of this address
-
getName
Returns the name of this address.- Specified by:
getName
in interfaceAddressModel
- Returns:
- the name of this address
-
getPhoneNumber
- Specified by:
getPhoneNumber
in interfaceAddress
-
getPrimary
public boolean getPrimary()Returns the primary of this address.- Specified by:
getPrimary
in interfaceAddressModel
- Returns:
- the primary of this address
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this address.- Specified by:
getPrimaryKey
in interfaceAddressModel
- Specified by:
getPrimaryKey
in interfaceCTModel<Address>
- Returns:
- the primary key of this address
-
getRegion
-
getRegionId
public long getRegionId()Returns the region ID of this address.- Specified by:
getRegionId
in interfaceAddressModel
- Returns:
- the region ID of this address
-
getStreet1
Returns the street1 of this address.- Specified by:
getStreet1
in interfaceAddressModel
- Returns:
- the street1 of this address
-
getStreet2
Returns the street2 of this address.- Specified by:
getStreet2
in interfaceAddressModel
- Returns:
- the street2 of this address
-
getStreet3
Returns the street3 of this address.- Specified by:
getStreet3
in interfaceAddressModel
- Returns:
- the street3 of this address
-
getUserId
public long getUserId()Returns the user ID of this address.- Specified by:
getUserId
in interfaceAddressModel
- Specified by:
getUserId
in interfaceAuditedModel
- Returns:
- the user ID of this address
-
getUserName
Returns the user name of this address.- Specified by:
getUserName
in interfaceAddressModel
- Specified by:
getUserName
in interfaceAuditedModel
- Returns:
- the user name of this address
-
getUserUuid
Returns the user uuid of this address.- Specified by:
getUserUuid
in interfaceAddressModel
- Specified by:
getUserUuid
in interfaceAuditedModel
- Returns:
- the user uuid of this address
-
getUuid
Returns the uuid of this address.- Specified by:
getUuid
in interfaceAddressModel
- Specified by:
getUuid
in interfaceStagedModel
- Returns:
- the uuid of this address
-
getValidationDate
Returns the validation date of this address.- Specified by:
getValidationDate
in interfaceAddressModel
- Returns:
- the validation date of this address
-
getValidationStatus
public int getValidationStatus()Returns the validation status of this address.- Specified by:
getValidationStatus
in interfaceAddressModel
- Returns:
- the validation status of this address
-
getZip
Returns the zip of this address.- Specified by:
getZip
in interfaceAddressModel
- Returns:
- the zip of this address
-
isMailing
public boolean isMailing()Returnstrue
if this address is mailing.- Specified by:
isMailing
in interfaceAddressModel
- Returns:
true
if this address is mailing;false
otherwise
-
isPrimary
public boolean isPrimary()Returnstrue
if this address is primary.- Specified by:
isPrimary
in interfaceAddressModel
- Returns:
true
if this address is primary;false
otherwise
-
persist
public void persist()Description copied from interface:PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persist
in interfacePersistedModel
-
setAddressId
public void setAddressId(long addressId) Sets the address ID of this address.- Specified by:
setAddressId
in interfaceAddressModel
- Parameters:
addressId
- the address ID of this address
-
setCity
Sets the city of this address.- Specified by:
setCity
in interfaceAddressModel
- Parameters:
city
- the city of this address
-
setClassName
- Specified by:
setClassName
in interfaceAddressModel
-
setClassNameId
public void setClassNameId(long classNameId) Sets the class name ID of this address.- Specified by:
setClassNameId
in interfaceAddressModel
- Specified by:
setClassNameId
in interfaceTypedModel
- Parameters:
classNameId
- the class name ID of this address
-
setClassPK
public void setClassPK(long classPK) Sets the class pk of this address.- Specified by:
setClassPK
in interfaceAddressModel
- Specified by:
setClassPK
in interfaceAttachedModel
- Parameters:
classPK
- the class pk of this address
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this address.- Specified by:
setCompanyId
in interfaceAddressModel
- Specified by:
setCompanyId
in interfaceAuditedModel
- Specified by:
setCompanyId
in interfaceShardedModel
- Specified by:
setCompanyId
in interfaceStagedModel
- Parameters:
companyId
- the company ID of this address
-
setCountryId
public void setCountryId(long countryId) Sets the country ID of this address.- Specified by:
setCountryId
in interfaceAddressModel
- Parameters:
countryId
- the country ID of this address
-
setCreateDate
Sets the create date of this address.- Specified by:
setCreateDate
in interfaceAddressModel
- Specified by:
setCreateDate
in interfaceAuditedModel
- Specified by:
setCreateDate
in interfaceStagedModel
- Parameters:
createDate
- the create date of this address
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this address.- Specified by:
setCtCollectionId
in interfaceAddressModel
- Specified by:
setCtCollectionId
in interfaceCTModel<Address>
- Parameters:
ctCollectionId
- the ct collection ID of this address
-
setDescription
Sets the description of this address.- Specified by:
setDescription
in interfaceAddressModel
- Parameters:
description
- the description of this address
-
setExternalReferenceCode
Sets the external reference code of this address.- Specified by:
setExternalReferenceCode
in interfaceAddressModel
- Specified by:
setExternalReferenceCode
in interfaceExternalReferenceCodeModel
- Parameters:
externalReferenceCode
- the external reference code of this address
-
setLatitude
public void setLatitude(double latitude) Sets the latitude of this address.- Specified by:
setLatitude
in interfaceAddressModel
- Parameters:
latitude
- the latitude of this address
-
setListTypeId
public void setListTypeId(long listTypeId) Sets the list type ID of this address.- Specified by:
setListTypeId
in interfaceAddressModel
- Parameters:
listTypeId
- the list type ID of this address
-
setLongitude
public void setLongitude(double longitude) Sets the longitude of this address.- Specified by:
setLongitude
in interfaceAddressModel
- Parameters:
longitude
- the longitude of this address
-
setMailing
public void setMailing(boolean mailing) Sets whether this address is mailing.- Specified by:
setMailing
in interfaceAddressModel
- Parameters:
mailing
- the mailing of this address
-
setModifiedDate
Sets the modified date of this address.- Specified by:
setModifiedDate
in interfaceAddressModel
- Specified by:
setModifiedDate
in interfaceAuditedModel
- Specified by:
setModifiedDate
in interfaceStagedModel
- Parameters:
modifiedDate
- the modified date of this address
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this address.- Specified by:
setMvccVersion
in interfaceAddressModel
- Specified by:
setMvccVersion
in interfaceMVCCModel
- Parameters:
mvccVersion
- the mvcc version of this address
-
setName
Sets the name of this address.- Specified by:
setName
in interfaceAddressModel
- Parameters:
name
- the name of this address
-
setPrimary
public void setPrimary(boolean primary) Sets whether this address is primary.- Specified by:
setPrimary
in interfaceAddressModel
- Parameters:
primary
- the primary of this address
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this address.- Specified by:
setPrimaryKey
in interfaceAddressModel
- Specified by:
setPrimaryKey
in interfaceCTModel<Address>
- Parameters:
primaryKey
- the primary key of this address
-
setRegionId
public void setRegionId(long regionId) Sets the region ID of this address.- Specified by:
setRegionId
in interfaceAddressModel
- Parameters:
regionId
- the region ID of this address
-
setStreet1
Sets the street1 of this address.- Specified by:
setStreet1
in interfaceAddressModel
- Parameters:
street1
- the street1 of this address
-
setStreet2
Sets the street2 of this address.- Specified by:
setStreet2
in interfaceAddressModel
- Parameters:
street2
- the street2 of this address
-
setStreet3
Sets the street3 of this address.- Specified by:
setStreet3
in interfaceAddressModel
- Parameters:
street3
- the street3 of this address
-
setUserId
public void setUserId(long userId) Sets the user ID of this address.- Specified by:
setUserId
in interfaceAddressModel
- Specified by:
setUserId
in interfaceAuditedModel
- Parameters:
userId
- the user ID of this address
-
setUserName
Sets the user name of this address.- Specified by:
setUserName
in interfaceAddressModel
- Specified by:
setUserName
in interfaceAuditedModel
- Parameters:
userName
- the user name of this address
-
setUserUuid
Sets the user uuid of this address.- Specified by:
setUserUuid
in interfaceAddressModel
- Specified by:
setUserUuid
in interfaceAuditedModel
- Parameters:
userUuid
- the user uuid of this address
-
setUuid
Sets the uuid of this address.- Specified by:
setUuid
in interfaceAddressModel
- Specified by:
setUuid
in interfaceStagedModel
- Parameters:
uuid
- the uuid of this address
-
setValidationDate
Sets the validation date of this address.- Specified by:
setValidationDate
in interfaceAddressModel
- Parameters:
validationDate
- the validation date of this address
-
setValidationStatus
public void setValidationStatus(int validationStatus) Sets the validation status of this address.- Specified by:
setValidationStatus
in interfaceAddressModel
- Parameters:
validationStatus
- the validation status of this address
-
setZip
Sets the zip of this address.- Specified by:
setZip
in interfaceAddressModel
- Parameters:
zip
- the zip of this address
-
toXmlString
- Specified by:
toXmlString
in interfaceAddressModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<Address>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<Address>
-
getStagedModelType
- Specified by:
getStagedModelType
in interfaceStagedModel
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<Address>
-