|
Liferay 6.2.0-ce-rc6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<Address>
com.liferay.portal.model.impl.AddressModelImpl
@JSON(strict=true) public class AddressModelImpl
The base model implementation for the Address service. Represents a row in the "Address" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface AddressModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in AddressImpl.
AddressImpl,
Address,
AddressModel,
Serialized Form| Field Summary | |
|---|---|
static long |
CLASSNAMEID_COLUMN_BITMASK
|
static long |
CLASSPK_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COMPANYID_COLUMN_BITMASK
|
static long |
CREATEDATE_COLUMN_BITMASK
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
LOCK_EXPIRATION_TIME
|
static long |
MAILING_COLUMN_BITMASK
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static long |
PRIMARY_COLUMN_BITMASK
|
static String |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
static long |
USERID_COLUMN_BITMASK
|
static long |
UUID_COLUMN_BITMASK
|
| Constructor Summary | |
|---|---|
AddressModelImpl()
|
|
| 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 |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this address. |
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. |
long |
getOriginalClassNameId()
|
long |
getOriginalClassPK()
|
long |
getOriginalCompanyId()
|
boolean |
getOriginalMailing()
|
boolean |
getOriginalPrimary()
|
long |
getOriginalUserId()
|
String |
getOriginalUuid()
|
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. |
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. |
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. |
String |
getZip()
Returns the zip of this address. |
int |
hashCode()
|
boolean |
isMailing()
Returns true if this address is mailing. |
boolean |
isPrimary()
Returns true if this address is primary. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setAddressId(long addressId)
Sets the address ID of this address. |
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(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 |
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. |
static Address |
toModel(AddressSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<Address> |
toModels(AddressSoap[] soapModels)
Converts the soap model instances into normal model instances. |
String |
toString()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
|---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.model.AddressModel |
|---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static long CLASSNAMEID_COLUMN_BITMASK
public static long CLASSPK_COLUMN_BITMASK
public static long COMPANYID_COLUMN_BITMASK
public static long MAILING_COLUMN_BITMASK
public static long PRIMARY_COLUMN_BITMASK
public static long USERID_COLUMN_BITMASK
public static long UUID_COLUMN_BITMASK
public static long CREATEDATE_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public AddressModelImpl()
| Method Detail |
|---|
public static Address toModel(AddressSoap soapModel)
soapModel - the soap model instance to convert
public static List<Address> toModels(AddressSoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
AddressModel
getPrimaryKey in interface AddressModelpublic void setPrimaryKey(long primaryKey)
AddressModel
setPrimaryKey in interface AddressModelprimaryKey - the primary key of this addresspublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface AddressModelgetPrimaryKeyObj in interface BaseModel<Address>getPrimaryKeyObj in interface ClassedModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface AddressModelsetPrimaryKeyObj in interface BaseModel<Address>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instancepublic Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Address>getModelAttributes in class BaseModelImpl<Address>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Address>setModelAttributes in class BaseModelImpl<Address>@JSON public String getUuid()
AddressModel
getUuid in interface AddressModelgetUuid in interface StagedModelpublic void setUuid(String uuid)
AddressModel
setUuid in interface AddressModelsetUuid in interface StagedModeluuid - the uuid of this addresspublic String getOriginalUuid()
@JSON public long getAddressId()
AddressModel
getAddressId in interface AddressModelpublic void setAddressId(long addressId)
AddressModel
setAddressId in interface AddressModeladdressId - the address ID of this address@JSON public long getCompanyId()
AddressModel
getCompanyId in interface AddressModelgetCompanyId in interface AuditedModelgetCompanyId in interface StagedModelpublic void setCompanyId(long companyId)
AddressModel
setCompanyId in interface AddressModelsetCompanyId in interface AuditedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this addresspublic long getOriginalCompanyId()
@JSON public long getUserId()
AddressModel
getUserId in interface AddressModelgetUserId in interface AuditedModelpublic void setUserId(long userId)
AddressModel
setUserId in interface AddressModelsetUserId in interface AuditedModeluserId - the user ID of this address
public String getUserUuid()
throws SystemException
AddressModel
getUserUuid in interface AddressModelgetUserUuid in interface AuditedModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
AddressModel
setUserUuid in interface AddressModelsetUserUuid in interface AuditedModeluserUuid - the user uuid of this addresspublic long getOriginalUserId()
@JSON public String getUserName()
AddressModel
getUserName in interface AddressModelgetUserName in interface AuditedModelpublic void setUserName(String userName)
AddressModel
setUserName in interface AddressModelsetUserName in interface AuditedModeluserName - the user name of this address@JSON public Date getCreateDate()
AddressModel
getCreateDate in interface AddressModelgetCreateDate in interface AuditedModelgetCreateDate in interface StagedModelpublic void setCreateDate(Date createDate)
AddressModel
setCreateDate in interface AddressModelsetCreateDate in interface AuditedModelsetCreateDate in interface StagedModelcreateDate - the create date of this address@JSON public Date getModifiedDate()
AddressModel
getModifiedDate in interface AddressModelgetModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelpublic void setModifiedDate(Date modifiedDate)
AddressModel
setModifiedDate in interface AddressModelsetModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this addresspublic String getClassName()
AddressModel
getClassName in interface AddressModelgetClassName in interface TypedModelpublic void setClassName(String className)
setClassName in interface AddressModel@JSON public long getClassNameId()
AddressModel
getClassNameId in interface AddressModelgetClassNameId in interface TypedModelpublic void setClassNameId(long classNameId)
AddressModel
setClassNameId in interface AddressModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this addresspublic long getOriginalClassNameId()
@JSON public long getClassPK()
AddressModel
getClassPK in interface AddressModelgetClassPK in interface AttachedModelpublic void setClassPK(long classPK)
AddressModel
setClassPK in interface AddressModelsetClassPK in interface AttachedModelclassPK - the class p k of this addresspublic long getOriginalClassPK()
@JSON public String getStreet1()
AddressModel
getStreet1 in interface AddressModelpublic void setStreet1(String street1)
AddressModel
setStreet1 in interface AddressModelstreet1 - the street1 of this address@JSON public String getStreet2()
AddressModel
getStreet2 in interface AddressModelpublic void setStreet2(String street2)
AddressModel
setStreet2 in interface AddressModelstreet2 - the street2 of this address@JSON public String getStreet3()
AddressModel
getStreet3 in interface AddressModelpublic void setStreet3(String street3)
AddressModel
setStreet3 in interface AddressModelstreet3 - the street3 of this address@JSON public String getCity()
AddressModel
getCity in interface AddressModelpublic void setCity(String city)
AddressModel
setCity in interface AddressModelcity - the city of this address@JSON public String getZip()
AddressModel
getZip in interface AddressModelpublic void setZip(String zip)
AddressModel
setZip in interface AddressModelzip - the zip of this address@JSON public long getRegionId()
AddressModel
getRegionId in interface AddressModelpublic void setRegionId(long regionId)
AddressModel
setRegionId in interface AddressModelregionId - the region ID of this address@JSON public long getCountryId()
AddressModel
getCountryId in interface AddressModelpublic void setCountryId(long countryId)
AddressModel
setCountryId in interface AddressModelcountryId - the country ID of this address@JSON public int getTypeId()
AddressModel
getTypeId in interface AddressModelpublic void setTypeId(int typeId)
AddressModel
setTypeId in interface AddressModeltypeId - the type ID of this address@JSON public boolean getMailing()
AddressModel
getMailing in interface AddressModelpublic boolean isMailing()
AddressModeltrue if this address is mailing.
isMailing in interface AddressModeltrue if this address is mailing; false otherwisepublic void setMailing(boolean mailing)
AddressModel
setMailing in interface AddressModelmailing - the mailing of this addresspublic boolean getOriginalMailing()
@JSON public boolean getPrimary()
AddressModel
getPrimary in interface AddressModelpublic boolean isPrimary()
AddressModeltrue if this address is primary.
isPrimary in interface AddressModeltrue if this address is primary; false otherwisepublic void setPrimary(boolean primary)
AddressModel
setPrimary in interface AddressModelprimary - the primary of this addresspublic boolean getOriginalPrimary()
public StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface AddressModelgetExpandoBridge in interface BaseModel<Address>getExpandoBridge in interface ClassedModelgetExpandoBridge in class BaseModelImpl<Address>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface AddressModelsetExpandoBridgeAttributes in interface BaseModel<Address>setExpandoBridgeAttributes in class BaseModelImpl<Address>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public Address toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface AddressModeltoEscapedModel in interface BaseModel<Address>toEscapedModel in class BaseModelImpl<Address>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface AddressModelclone in interface BaseModel<Address>clone in interface StagedModelclone in class BaseModelImpl<Address>public int compareTo(Address address)
compareTo in interface AddressModelcompareTo in interface Comparable<Address>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface AddressModelhashCode in class Objectpublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Address>resetOriginalValues in class BaseModelImpl<Address>public CacheModel<Address> toCacheModel()
BaseModel
toCacheModel in interface AddressModeltoCacheModel in interface BaseModel<Address>toCacheModel in class BaseModelImpl<Address>public String toString()
toString in interface AddressModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface AddressModeltoXmlString in interface BaseModel<Address>
|
Liferay 6.2.0-ce-rc6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||