|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.AddressWrapper
public class AddressWrapper
This class is a wrapper for Address
.
Address
,
Serialized FormConstructor 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 |
---|
public AddressWrapper(Address address)
Method Detail |
---|
public long getPrimaryKey()
AddressModel
getPrimaryKey
in interface AddressModel
public void setPrimaryKey(long pk)
AddressModel
setPrimaryKey
in interface AddressModel
pk
- the primary key of this addresspublic long getAddressId()
AddressModel
getAddressId
in interface AddressModel
public void setAddressId(long addressId)
AddressModel
setAddressId
in interface AddressModel
addressId
- the address id of this addresspublic long getCompanyId()
AddressModel
getCompanyId
in interface AddressModel
public void setCompanyId(long companyId)
AddressModel
setCompanyId
in interface AddressModel
companyId
- the company id of this addresspublic long getUserId()
AddressModel
getUserId
in interface AddressModel
public void setUserId(long userId)
AddressModel
setUserId
in interface AddressModel
userId
- the user id of this addresspublic String getUserUuid() throws SystemException
AddressModel
getUserUuid
in interface AddressModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
AddressModel
setUserUuid
in interface AddressModel
userUuid
- the user uuid of this addresspublic String getUserName()
AddressModel
getUserName
in interface AddressModel
public void setUserName(String userName)
AddressModel
setUserName
in interface AddressModel
userName
- the user name of this addresspublic Date getCreateDate()
AddressModel
getCreateDate
in interface AddressModel
public void setCreateDate(Date createDate)
AddressModel
setCreateDate
in interface AddressModel
createDate
- the create date of this addresspublic Date getModifiedDate()
AddressModel
getModifiedDate
in interface AddressModel
public void setModifiedDate(Date modifiedDate)
AddressModel
setModifiedDate
in interface AddressModel
modifiedDate
- the modified date of this addresspublic String getClassName()
AddressModel
getClassName
in interface AddressModel
public long getClassNameId()
AddressModel
getClassNameId
in interface AddressModel
public void setClassNameId(long classNameId)
AddressModel
setClassNameId
in interface AddressModel
classNameId
- the class name id of this addresspublic long getClassPK()
AddressModel
getClassPK
in interface AddressModel
public void setClassPK(long classPK)
AddressModel
setClassPK
in interface AddressModel
classPK
- the class p k of this addresspublic String getStreet1()
AddressModel
getStreet1
in interface AddressModel
public void setStreet1(String street1)
AddressModel
setStreet1
in interface AddressModel
street1
- the street1 of this addresspublic String getStreet2()
AddressModel
getStreet2
in interface AddressModel
public void setStreet2(String street2)
AddressModel
setStreet2
in interface AddressModel
street2
- the street2 of this addresspublic String getStreet3()
AddressModel
getStreet3
in interface AddressModel
public void setStreet3(String street3)
AddressModel
setStreet3
in interface AddressModel
street3
- the street3 of this addresspublic String getCity()
AddressModel
getCity
in interface AddressModel
public void setCity(String city)
AddressModel
setCity
in interface AddressModel
city
- the city of this addresspublic String getZip()
AddressModel
getZip
in interface AddressModel
public void setZip(String zip)
AddressModel
setZip
in interface AddressModel
zip
- the zip of this addresspublic long getRegionId()
AddressModel
getRegionId
in interface AddressModel
public void setRegionId(long regionId)
AddressModel
setRegionId
in interface AddressModel
regionId
- the region id of this addresspublic long getCountryId()
AddressModel
getCountryId
in interface AddressModel
public void setCountryId(long countryId)
AddressModel
setCountryId
in interface AddressModel
countryId
- the country id of this addresspublic int getTypeId()
AddressModel
getTypeId
in interface AddressModel
public void setTypeId(int typeId)
AddressModel
setTypeId
in interface AddressModel
typeId
- the type id of this addresspublic boolean getMailing()
AddressModel
getMailing
in interface AddressModel
public boolean isMailing()
AddressModel
isMailing
in interface AddressModel
public void setMailing(boolean mailing)
AddressModel
setMailing
in interface AddressModel
mailing
- the mailing of this addresspublic boolean getPrimary()
AddressModel
getPrimary
in interface AddressModel
public boolean isPrimary()
AddressModel
isPrimary
in interface AddressModel
public void setPrimary(boolean primary)
AddressModel
setPrimary
in interface AddressModel
primary
- the primary of this addresspublic Address toEscapedModel()
AddressModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface AddressModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface AddressModel
isNew
in interface BaseModel<Address>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface AddressModel
setNew
in interface BaseModel<Address>
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface AddressModel
isCachedModel
in interface BaseModel<Address>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface AddressModel
setCachedModel
in interface BaseModel<Address>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface AddressModel
isEscapedModel
in interface BaseModel<Address>
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface AddressModel
setEscapedModel
in interface BaseModel<Address>
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface AddressModel
getPrimaryKeyObj
in interface BaseModel<Address>
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface AddressModel
getExpandoBridge
in interface BaseModel<Address>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface AddressModel
setExpandoBridgeAttributes
in interface BaseModel<Address>
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface AddressModel
clone
in interface BaseModel<Address>
clone
in class Object
public int compareTo(Address address)
compareTo
in interface AddressModel
compareTo
in interface Comparable<Address>
public int hashCode()
hashCode
in interface AddressModel
hashCode
in class Object
public String toString()
toString
in interface AddressModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface AddressModel
toXmlString
in interface BaseModel<Address>
public Region getRegion()
getRegion
in interface Address
public Country getCountry()
getCountry
in interface Address
public ListType getType()
getType
in interface Address
public Address getWrappedAddress()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |