Liferay 6.0.5

com.liferay.portal.model
Class AddressWrapper

java.lang.Object
  extended by com.liferay.portal.model.AddressWrapper
All Implemented Interfaces:
Address, AddressModel, BaseModel<Address>, Serializable, Cloneable, Comparable<Address>

public class AddressWrapper
extends Object
implements Address

This class is a wrapper for Address.

See Also:
Address, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
AddressWrapper(Address address)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Address address)
           
 long getAddressId()
          Gets the address id of this address.
 String getCity()
          Gets the city of this address.
 String getClassName()
          Gets the class name of the model instance this address is polymorphically associated with.
 long getClassNameId()
          Gets the class name id of this address.
 long getClassPK()
          Gets the class p k of this address.
 long getCompanyId()
          Gets the company id of this address.
 Country getCountry()
           
 long getCountryId()
          Gets the country id of this address.
 Date getCreateDate()
          Gets the create date of this address.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 boolean getMailing()
          Gets the mailing of this address.
 Date getModifiedDate()
          Gets the modified date of this address.
 boolean getPrimary()
          Gets the primary of this address.
 long getPrimaryKey()
          Gets the primary key of this address.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 Region getRegion()
           
 long getRegionId()
          Gets the region id of this address.
 String getStreet1()
          Gets the street1 of this address.
 String getStreet2()
          Gets the street2 of this address.
 String getStreet3()
          Gets the street3 of this address.
 ListType getType()
           
 int getTypeId()
          Gets the type id of this address.
 long getUserId()
          Gets the user id of this address.
 String getUserName()
          Gets the user name of this address.
 String getUserUuid()
          Gets the user uuid of this address.
 Address getWrappedAddress()
           
 String getZip()
          Gets the zip of this address.
 int hashCode()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isMailing()
          Determines whether this address is mailing.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 boolean isPrimary()
          Determines whether this address is primary.
 void setAddressId(long addressId)
          Sets the address id of this address.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCity(String city)
          Sets the city of this address.
 void setClassNameId(long classNameId)
          Sets the class name id of this address.
 void setClassPK(long classPK)
          Sets the class p k 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 setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setMailing(boolean mailing)
          Sets whether this {$entity.humanName} is mailing.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this address.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrimary(boolean primary)
          Sets whether this {$entity.humanName} is primary.
 void setPrimaryKey(long pk)
          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 setTypeId(int typeId)
          Sets the type id 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 setZip(String zip)
          Sets the zip of this address.
 Address toEscapedModel()
          Gets a copy of this address as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddressWrapper

public AddressWrapper(Address address)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: AddressModel
Gets the primary key of this address.

Specified by:
getPrimaryKey in interface AddressModel
Returns:
the primary key of this address

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: AddressModel
Sets the primary key of this address

Specified by:
setPrimaryKey in interface AddressModel
Parameters:
pk - the primary key of this address

getAddressId

public long getAddressId()
Description copied from interface: AddressModel
Gets the address id of this address.

Specified by:
getAddressId in interface AddressModel
Returns:
the address id of this address

setAddressId

public void setAddressId(long addressId)
Description copied from interface: AddressModel
Sets the address id of this address.

Specified by:
setAddressId in interface AddressModel
Parameters:
addressId - the address id of this address

getCompanyId

public long getCompanyId()
Description copied from interface: AddressModel
Gets the company id of this address.

Specified by:
getCompanyId in interface AddressModel
Returns:
the company id of this address

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: AddressModel
Sets the company id of this address.

Specified by:
setCompanyId in interface AddressModel
Parameters:
companyId - the company id of this address

getUserId

public long getUserId()
Description copied from interface: AddressModel
Gets the user id of this address.

Specified by:
getUserId in interface AddressModel
Returns:
the user id of this address

setUserId

public void setUserId(long userId)
Description copied from interface: AddressModel
Sets the user id of this address.

Specified by:
setUserId in interface AddressModel
Parameters:
userId - the user id of this address

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: AddressModel
Gets the user uuid of this address.

Specified by:
getUserUuid in interface AddressModel
Returns:
the user uuid of this address
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: AddressModel
Sets the user uuid of this address.

Specified by:
setUserUuid in interface AddressModel
Parameters:
userUuid - the user uuid of this address

getUserName

public String getUserName()
Description copied from interface: AddressModel
Gets the user name of this address.

Specified by:
getUserName in interface AddressModel
Returns:
the user name of this address

setUserName

public void setUserName(String userName)
Description copied from interface: AddressModel
Sets the user name of this address.

Specified by:
setUserName in interface AddressModel
Parameters:
userName - the user name of this address

getCreateDate

public Date getCreateDate()
Description copied from interface: AddressModel
Gets the create date of this address.

Specified by:
getCreateDate in interface AddressModel
Returns:
the create date of this address

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: AddressModel
Sets the create date of this address.

Specified by:
setCreateDate in interface AddressModel
Parameters:
createDate - the create date of this address

getModifiedDate

public Date getModifiedDate()
Description copied from interface: AddressModel
Gets the modified date of this address.

Specified by:
getModifiedDate in interface AddressModel
Returns:
the modified date of this address

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: AddressModel
Sets the modified date of this address.

Specified by:
setModifiedDate in interface AddressModel
Parameters:
modifiedDate - the modified date of this address

getClassName

public String getClassName()
Description copied from interface: AddressModel
Gets the class name of the model instance this address is polymorphically associated with.

Specified by:
getClassName in interface AddressModel
Returns:
the class name of the model instance this address is polymorphically associated with

getClassNameId

public long getClassNameId()
Description copied from interface: AddressModel
Gets the class name id of this address.

Specified by:
getClassNameId in interface AddressModel
Returns:
the class name id of this address

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: AddressModel
Sets the class name id of this address.

Specified by:
setClassNameId in interface AddressModel
Parameters:
classNameId - the class name id of this address

getClassPK

public long getClassPK()
Description copied from interface: AddressModel
Gets the class p k of this address.

Specified by:
getClassPK in interface AddressModel
Returns:
the class p k of this address

setClassPK

public void setClassPK(long classPK)
Description copied from interface: AddressModel
Sets the class p k of this address.

Specified by:
setClassPK in interface AddressModel
Parameters:
classPK - the class p k of this address

getStreet1

public String getStreet1()
Description copied from interface: AddressModel
Gets the street1 of this address.

Specified by:
getStreet1 in interface AddressModel
Returns:
the street1 of this address

setStreet1

public void setStreet1(String street1)
Description copied from interface: AddressModel
Sets the street1 of this address.

Specified by:
setStreet1 in interface AddressModel
Parameters:
street1 - the street1 of this address

getStreet2

public String getStreet2()
Description copied from interface: AddressModel
Gets the street2 of this address.

Specified by:
getStreet2 in interface AddressModel
Returns:
the street2 of this address

setStreet2

public void setStreet2(String street2)
Description copied from interface: AddressModel
Sets the street2 of this address.

Specified by:
setStreet2 in interface AddressModel
Parameters:
street2 - the street2 of this address

getStreet3

public String getStreet3()
Description copied from interface: AddressModel
Gets the street3 of this address.

Specified by:
getStreet3 in interface AddressModel
Returns:
the street3 of this address

setStreet3

public void setStreet3(String street3)
Description copied from interface: AddressModel
Sets the street3 of this address.

Specified by:
setStreet3 in interface AddressModel
Parameters:
street3 - the street3 of this address

getCity

public String getCity()
Description copied from interface: AddressModel
Gets the city of this address.

Specified by:
getCity in interface AddressModel
Returns:
the city of this address

setCity

public void setCity(String city)
Description copied from interface: AddressModel
Sets the city of this address.

Specified by:
setCity in interface AddressModel
Parameters:
city - the city of this address

getZip

public String getZip()
Description copied from interface: AddressModel
Gets the zip of this address.

Specified by:
getZip in interface AddressModel
Returns:
the zip of this address

setZip

public void setZip(String zip)
Description copied from interface: AddressModel
Sets the zip of this address.

Specified by:
setZip in interface AddressModel
Parameters:
zip - the zip of this address

getRegionId

public long getRegionId()
Description copied from interface: AddressModel
Gets the region id of this address.

Specified by:
getRegionId in interface AddressModel
Returns:
the region id of this address

setRegionId

public void setRegionId(long regionId)
Description copied from interface: AddressModel
Sets the region id of this address.

Specified by:
setRegionId in interface AddressModel
Parameters:
regionId - the region id of this address

getCountryId

public long getCountryId()
Description copied from interface: AddressModel
Gets the country id of this address.

Specified by:
getCountryId in interface AddressModel
Returns:
the country id of this address

setCountryId

public void setCountryId(long countryId)
Description copied from interface: AddressModel
Sets the country id of this address.

Specified by:
setCountryId in interface AddressModel
Parameters:
countryId - the country id of this address

getTypeId

public int getTypeId()
Description copied from interface: AddressModel
Gets the type id of this address.

Specified by:
getTypeId in interface AddressModel
Returns:
the type id of this address

setTypeId

public void setTypeId(int typeId)
Description copied from interface: AddressModel
Sets the type id of this address.

Specified by:
setTypeId in interface AddressModel
Parameters:
typeId - the type id of this address

getMailing

public boolean getMailing()
Description copied from interface: AddressModel
Gets the mailing of this address.

Specified by:
getMailing in interface AddressModel
Returns:
the mailing of this address

isMailing

public boolean isMailing()
Description copied from interface: AddressModel
Determines whether this address is mailing.

Specified by:
isMailing in interface AddressModel
Returns:
whether this address is mailing

setMailing

public void setMailing(boolean mailing)
Description copied from interface: AddressModel
Sets whether this {$entity.humanName} is mailing.

Specified by:
setMailing in interface AddressModel
Parameters:
mailing - the mailing of this address

getPrimary

public boolean getPrimary()
Description copied from interface: AddressModel
Gets the primary of this address.

Specified by:
getPrimary in interface AddressModel
Returns:
the primary of this address

isPrimary

public boolean isPrimary()
Description copied from interface: AddressModel
Determines whether this address is primary.

Specified by:
isPrimary in interface AddressModel
Returns:
whether this address is primary

setPrimary

public void setPrimary(boolean primary)
Description copied from interface: AddressModel
Sets whether this {$entity.humanName} is primary.

Specified by:
setPrimary in interface AddressModel
Parameters:
primary - the primary of this address

toEscapedModel

public Address toEscapedModel()
Description copied from interface: AddressModel
Gets a copy of this address as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface AddressModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines if this model instance does not yet exist in the database.

Specified by:
isNew in interface AddressModel
Specified by:
isNew in interface BaseModel<Address>
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface AddressModel
Specified by:
setNew in interface BaseModel<Address>
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Determines if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface AddressModel
Specified by:
isCachedModel in interface BaseModel<Address>
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface AddressModel
Specified by:
setCachedModel in interface BaseModel<Address>
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Determines if this model instance is escaped.

Specified by:
isEscapedModel in interface AddressModel
Specified by:
isEscapedModel in interface BaseModel<Address>
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface AddressModel
Specified by:
setEscapedModel in interface BaseModel<Address>
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface AddressModel
Specified by:
getPrimaryKeyObj in interface BaseModel<Address>
Returns:
the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface AddressModel
Specified by:
getExpandoBridge in interface BaseModel<Address>
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface AddressModel
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Address>
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface AddressModel
Specified by:
clone in interface BaseModel<Address>
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Address address)
Specified by:
compareTo in interface AddressModel
Specified by:
compareTo in interface Comparable<Address>

hashCode

public int hashCode()
Specified by:
hashCode in interface AddressModel
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface AddressModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface AddressModel
Specified by:
toXmlString in interface BaseModel<Address>
Returns:
the XML representation of this model instance

getRegion

public Region getRegion()
Specified by:
getRegion in interface Address

getCountry

public Country getCountry()
Specified by:
getCountry in interface Address

getType

public ListType getType()
Specified by:
getType in interface Address

getWrappedAddress

public Address getWrappedAddress()

Liferay 6.0.5