|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 FormField Summary | |
---|---|
static long |
CLASSNAMEID_COLUMN_BITMASK
|
static long |
CLASSPK_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COMPANYID_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
|
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()
|
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. |
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 |
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 |
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()
|
Address |
toUnescapedModel()
|
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, setNew |
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, setNew |
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 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 AddressModel
public void setPrimaryKey(long primaryKey)
AddressModel
setPrimaryKey
in interface AddressModel
primaryKey
- the primary key of this addresspublic 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 Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public 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 long getAddressId()
AddressModel
getAddressId
in interface AddressModel
public void setAddressId(long addressId)
AddressModel
setAddressId
in interface AddressModel
addressId
- the address ID of this address@JSON public long getCompanyId()
AddressModel
getCompanyId
in interface AddressModel
getCompanyId
in interface AuditedModel
public void setCompanyId(long companyId)
AddressModel
setCompanyId
in interface AddressModel
setCompanyId
in interface AuditedModel
companyId
- the company ID of this addresspublic long getOriginalCompanyId()
@JSON public long getUserId()
AddressModel
getUserId
in interface AddressModel
getUserId
in interface AuditedModel
public void setUserId(long userId)
AddressModel
setUserId
in interface AddressModel
setUserId
in interface AuditedModel
userId
- the user ID of this addresspublic String getUserUuid() throws SystemException
AddressModel
getUserUuid
in interface AddressModel
getUserUuid
in interface AuditedModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
AddressModel
setUserUuid
in interface AddressModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this addresspublic long getOriginalUserId()
@JSON public String getUserName()
AddressModel
getUserName
in interface AddressModel
getUserName
in interface AuditedModel
public void setUserName(String userName)
AddressModel
setUserName
in interface AddressModel
setUserName
in interface AuditedModel
userName
- the user name of this address@JSON public Date getCreateDate()
AddressModel
getCreateDate
in interface AddressModel
getCreateDate
in interface AuditedModel
public void setCreateDate(Date createDate)
AddressModel
setCreateDate
in interface AddressModel
setCreateDate
in interface AuditedModel
createDate
- the create date of this address@JSON public Date getModifiedDate()
AddressModel
getModifiedDate
in interface AddressModel
getModifiedDate
in interface AuditedModel
public void setModifiedDate(Date modifiedDate)
AddressModel
setModifiedDate
in interface AddressModel
setModifiedDate
in interface AuditedModel
modifiedDate
- the modified date of this addresspublic String getClassName()
AddressModel
getClassName
in interface AddressModel
getClassName
in interface AttachedModel
public void setClassName(String className)
setClassName
in interface AddressModel
@JSON public long getClassNameId()
AddressModel
getClassNameId
in interface AddressModel
getClassNameId
in interface AttachedModel
public void setClassNameId(long classNameId)
AddressModel
setClassNameId
in interface AddressModel
setClassNameId
in interface AttachedModel
classNameId
- the class name ID of this addresspublic long getOriginalClassNameId()
@JSON public long getClassPK()
AddressModel
getClassPK
in interface AddressModel
getClassPK
in interface AttachedModel
public void setClassPK(long classPK)
AddressModel
setClassPK
in interface AddressModel
setClassPK
in interface AttachedModel
classPK
- the class p k of this addresspublic long getOriginalClassPK()
@JSON public String getStreet1()
AddressModel
getStreet1
in interface AddressModel
public void setStreet1(String street1)
AddressModel
setStreet1
in interface AddressModel
street1
- the street1 of this address@JSON public String getStreet2()
AddressModel
getStreet2
in interface AddressModel
public void setStreet2(String street2)
AddressModel
setStreet2
in interface AddressModel
street2
- the street2 of this address@JSON public String getStreet3()
AddressModel
getStreet3
in interface AddressModel
public void setStreet3(String street3)
AddressModel
setStreet3
in interface AddressModel
street3
- the street3 of this address@JSON public String getCity()
AddressModel
getCity
in interface AddressModel
public void setCity(String city)
AddressModel
setCity
in interface AddressModel
city
- the city of this address@JSON public String getZip()
AddressModel
getZip
in interface AddressModel
public void setZip(String zip)
AddressModel
setZip
in interface AddressModel
zip
- the zip of this address@JSON public long getRegionId()
AddressModel
getRegionId
in interface AddressModel
public void setRegionId(long regionId)
AddressModel
setRegionId
in interface AddressModel
regionId
- the region ID of this address@JSON public long getCountryId()
AddressModel
getCountryId
in interface AddressModel
public void setCountryId(long countryId)
AddressModel
setCountryId
in interface AddressModel
countryId
- the country ID of this address@JSON public int getTypeId()
AddressModel
getTypeId
in interface AddressModel
public void setTypeId(int typeId)
AddressModel
setTypeId
in interface AddressModel
typeId
- the type ID of this address@JSON public boolean getMailing()
AddressModel
getMailing
in interface AddressModel
public boolean isMailing()
AddressModel
true
if this address is mailing.
isMailing
in interface AddressModel
true
if this address is mailing; false
otherwisepublic void setMailing(boolean mailing)
AddressModel
setMailing
in interface AddressModel
mailing
- the mailing of this addresspublic boolean getOriginalMailing()
@JSON public boolean getPrimary()
AddressModel
getPrimary
in interface AddressModel
public boolean isPrimary()
AddressModel
true
if this address is primary.
isPrimary
in interface AddressModel
true
if this address is primary; false
otherwisepublic void setPrimary(boolean primary)
AddressModel
setPrimary
in interface AddressModel
primary
- the primary of this addresspublic boolean getOriginalPrimary()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface AddressModel
getExpandoBridge
in interface BaseModel<Address>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in class BaseModelImpl<Address>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface AddressModel
setExpandoBridgeAttributes
in interface BaseModel<Address>
setExpandoBridgeAttributes
in class BaseModelImpl<Address>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Address toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface AddressModel
toEscapedModel
in interface BaseModel<Address>
toEscapedModel
in class BaseModelImpl<Address>
AutoEscapeBeanHandler
public Address toUnescapedModel()
toUnescapedModel
in interface AddressModel
toUnescapedModel
in interface BaseModel<Address>
toUnescapedModel
in class BaseModelImpl<Address>
public Object clone()
BaseModel
clone
in interface AddressModel
clone
in interface BaseModel<Address>
clone
in class BaseModelImpl<Address>
public int compareTo(Address address)
compareTo
in interface AddressModel
compareTo
in interface Comparable<Address>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface AddressModel
hashCode
in class Object
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Address>
resetOriginalValues
in class BaseModelImpl<Address>
public CacheModel<Address> toCacheModel()
BaseModel
toCacheModel
in interface AddressModel
toCacheModel
in interface BaseModel<Address>
toCacheModel
in class BaseModelImpl<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>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |