|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.AddressWrapper
@ProviderType 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)
|
boolean |
equals(Object obj)
|
long |
getAddressId()
Returns the address ID of this address. |
String |
getCity()
Returns the city of this address. |
String |
getClassName()
Returns the fully qualified class name of this address. |
long |
getClassNameId()
Returns the class name ID of this address. |
long |
getClassPK()
Returns the class p k of this address. |
long |
getCompanyId()
Returns the company ID of this address. |
Country |
getCountry()
|
long |
getCountryId()
Returns the country ID of this address. |
Date |
getCreateDate()
Returns the create date of this address. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
boolean |
getMailing()
Returns the mailing of this address. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this address. |
boolean |
getPrimary()
Returns the primary of this address. |
long |
getPrimaryKey()
Returns the primary key of this address. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
Region |
getRegion()
|
long |
getRegionId()
Returns the region ID of this address. |
StagedModelType |
getStagedModelType()
|
String |
getStreet1()
Returns the street1 of this address. |
String |
getStreet2()
Returns the street2 of this address. |
String |
getStreet3()
Returns the street3 of this address. |
ListType |
getType()
|
int |
getTypeId()
Returns the type ID of this address. |
long |
getUserId()
Returns the user ID of this address. |
String |
getUserName()
Returns the user name of this address. |
String |
getUserUuid()
Returns the user uuid of this address. |
String |
getUuid()
Returns the uuid of this address. |
Address |
getWrappedAddress()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
Address |
getWrappedModel()
|
String |
getZip()
Returns the zip of this address. |
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isMailing()
Returns true if this address is mailing. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
boolean |
isPrimary()
Returns true if this address is primary. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
void |
resetOriginalValues()
Reset all original fields to current values. |
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 |
setClassName(String className)
|
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 |
setExpandoBridgeAttributes(BaseModel<?> baseModel)
|
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
|
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 address is mailing. |
void |
setModelAttributes(Map<String,Object> attributes)
|
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 address is primary. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this address. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
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 |
setUuid(String uuid)
Sets the uuid of this address. |
void |
setZip(String zip)
Sets the zip of this address. |
CacheModel<Address> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
Address |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
Address |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AddressWrapper(Address address)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Address>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Address>
public long getPrimaryKey()
getPrimaryKey
in interface AddressModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AddressModel
primaryKey
- the primary key of this addresspublic String getUuid()
getUuid
in interface AddressModel
getUuid
in interface StagedModel
public void setUuid(String uuid)
setUuid
in interface AddressModel
setUuid
in interface StagedModel
uuid
- the uuid of this addresspublic long getAddressId()
getAddressId
in interface AddressModel
public void setAddressId(long addressId)
setAddressId
in interface AddressModel
addressId
- the address ID of this addresspublic long getCompanyId()
getCompanyId
in interface AddressModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface StagedModel
public void setCompanyId(long companyId)
setCompanyId
in interface AddressModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this addresspublic long getUserId()
getUserId
in interface AddressModel
getUserId
in interface AuditedModel
public void setUserId(long userId)
setUserId
in interface AddressModel
setUserId
in interface AuditedModel
userId
- the user ID of this addresspublic String getUserUuid() throws SystemException
getUserUuid
in interface AddressModel
getUserUuid
in interface AuditedModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AddressModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this addresspublic String getUserName()
getUserName
in interface AddressModel
getUserName
in interface AuditedModel
public void setUserName(String userName)
setUserName
in interface AddressModel
setUserName
in interface AuditedModel
userName
- the user name of this addresspublic Date getCreateDate()
getCreateDate
in interface AddressModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AddressModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
createDate
- the create date of this addresspublic Date getModifiedDate()
getModifiedDate
in interface AddressModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AddressModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this addresspublic String getClassName()
getClassName
in interface AddressModel
getClassName
in interface TypedModel
public void setClassName(String className)
setClassName
in interface AddressModel
public long getClassNameId()
getClassNameId
in interface AddressModel
getClassNameId
in interface TypedModel
public void setClassNameId(long classNameId)
setClassNameId
in interface AddressModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this addresspublic long getClassPK()
getClassPK
in interface AddressModel
getClassPK
in interface AttachedModel
public void setClassPK(long classPK)
setClassPK
in interface AddressModel
setClassPK
in interface AttachedModel
classPK
- the class p k of this addresspublic String getStreet1()
getStreet1
in interface AddressModel
public void setStreet1(String street1)
setStreet1
in interface AddressModel
street1
- the street1 of this addresspublic String getStreet2()
getStreet2
in interface AddressModel
public void setStreet2(String street2)
setStreet2
in interface AddressModel
street2
- the street2 of this addresspublic String getStreet3()
getStreet3
in interface AddressModel
public void setStreet3(String street3)
setStreet3
in interface AddressModel
street3
- the street3 of this addresspublic String getCity()
getCity
in interface AddressModel
public void setCity(String city)
setCity
in interface AddressModel
city
- the city of this addresspublic String getZip()
getZip
in interface AddressModel
public void setZip(String zip)
setZip
in interface AddressModel
zip
- the zip of this addresspublic long getRegionId()
getRegionId
in interface AddressModel
public void setRegionId(long regionId)
setRegionId
in interface AddressModel
regionId
- the region ID of this addresspublic long getCountryId()
getCountryId
in interface AddressModel
public void setCountryId(long countryId)
setCountryId
in interface AddressModel
countryId
- the country ID of this addresspublic int getTypeId()
getTypeId
in interface AddressModel
public void setTypeId(int typeId)
setTypeId
in interface AddressModel
typeId
- the type ID of this addresspublic boolean getMailing()
getMailing
in interface AddressModel
public boolean isMailing()
true
if this address is mailing.
isMailing
in interface AddressModel
true
if this address is mailing; false
otherwisepublic void setMailing(boolean mailing)
setMailing
in interface AddressModel
mailing
- the mailing of this addresspublic boolean getPrimary()
getPrimary
in interface AddressModel
public boolean isPrimary()
true
if this address is primary.
isPrimary
in interface AddressModel
true
if this address is primary; false
otherwisepublic void setPrimary(boolean primary)
setPrimary
in interface AddressModel
primary
- the primary of this addresspublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
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
true
if this model instance was retrieved from the
entity cache.
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
true
if this model instance is escaped.
isEscapedModel
in interface AddressModel
isEscapedModel
in interface BaseModel<Address>
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface AddressModel
getPrimaryKeyObj
in interface BaseModel<Address>
getPrimaryKeyObj
in interface ClassedModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface AddressModel
setPrimaryKeyObj
in interface BaseModel<Address>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface AddressModel
getExpandoBridge
in interface BaseModel<Address>
getExpandoBridge
in interface ClassedModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface AddressModel
setExpandoBridgeAttributes
in interface BaseModel<Address>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface AddressModel
setExpandoBridgeAttributes
in interface BaseModel<Address>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface AddressModel
setExpandoBridgeAttributes
in interface BaseModel<Address>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface AddressModel
clone
in interface BaseModel<Address>
clone
in interface StagedModel
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 CacheModel<Address> toCacheModel()
BaseModel
toCacheModel
in interface AddressModel
toCacheModel
in interface BaseModel<Address>
public Address toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface AddressModel
toEscapedModel
in interface BaseModel<Address>
AutoEscapeBeanHandler
public Address toUnescapedModel()
toUnescapedModel
in interface AddressModel
toUnescapedModel
in interface BaseModel<Address>
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 void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic Country getCountry()
getCountry
in interface Address
public Region getRegion()
getRegion
in interface Address
public ListType getType()
getType
in interface Address
public boolean equals(Object obj)
equals
in class Object
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public Address getWrappedAddress()
getWrappedModel()
public Address getWrappedModel()
getWrappedModel
in interface ModelWrapper<Address>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Address>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |