Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class AddressModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Address>
      extended by com.liferay.portal.model.impl.AddressModelImpl
All Implemented Interfaces:
AddressModel, AttachedModel, AuditedModel, BaseModel<Address>, ClassedModel, Serializable, Cloneable, Comparable<Address>
Direct Known Subclasses:
AddressBaseImpl

@JSON(strict=true)
public class AddressModelImpl
extends BaseModelImpl<Address>
implements AddressModel

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.

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

Field 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

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

CLASSNAMEID_COLUMN_BITMASK

public static long CLASSNAMEID_COLUMN_BITMASK

CLASSPK_COLUMN_BITMASK

public static long CLASSPK_COLUMN_BITMASK

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

MAILING_COLUMN_BITMASK

public static long MAILING_COLUMN_BITMASK

PRIMARY_COLUMN_BITMASK

public static long PRIMARY_COLUMN_BITMASK

USERID_COLUMN_BITMASK

public static long USERID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

AddressModelImpl

public AddressModelImpl()
Method Detail

toModel

public static Address toModel(AddressSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<Address> toModels(AddressSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

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

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

setPrimaryKey

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

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

getPrimaryKeyObj

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

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

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface AddressModel
Specified by:
setPrimaryKeyObj in interface BaseModel<Address>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Parameters:
primaryKeyObj - the primary key of this model instance

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<Address>
Overrides:
getModelAttributes in class BaseModelImpl<Address>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<Address>
Overrides:
setModelAttributes in class BaseModelImpl<Address>

getAddressId

@JSON
public long getAddressId()
Description copied from interface: AddressModel
Returns 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

@JSON
public long getCompanyId()
Description copied from interface: AddressModel
Returns the company ID of this address.

Specified by:
getCompanyId in interface AddressModel
Specified by:
getCompanyId in interface AuditedModel
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
Specified by:
setCompanyId in interface AuditedModel
Parameters:
companyId - the company ID of this address

getOriginalCompanyId

public long getOriginalCompanyId()

getUserId

@JSON
public long getUserId()
Description copied from interface: AddressModel
Returns the user ID of this address.

Specified by:
getUserId in interface AddressModel
Specified by:
getUserId in interface AuditedModel
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
Specified by:
setUserId in interface AuditedModel
Parameters:
userId - the user ID of this address

getUserUuid

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

Specified by:
getUserUuid in interface AddressModel
Specified by:
getUserUuid in interface AuditedModel
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
Specified by:
setUserUuid in interface AuditedModel
Parameters:
userUuid - the user uuid of this address

getOriginalUserId

public long getOriginalUserId()

getUserName

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

Specified by:
getUserName in interface AddressModel
Specified by:
getUserName in interface AuditedModel
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
Specified by:
setUserName in interface AuditedModel
Parameters:
userName - the user name of this address

getCreateDate

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

Specified by:
getCreateDate in interface AddressModel
Specified by:
getCreateDate in interface AuditedModel
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
Specified by:
setCreateDate in interface AuditedModel
Parameters:
createDate - the create date of this address

getModifiedDate

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

Specified by:
getModifiedDate in interface AddressModel
Specified by:
getModifiedDate in interface AuditedModel
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
Specified by:
setModifiedDate in interface AuditedModel
Parameters:
modifiedDate - the modified date of this address

getClassName

public String getClassName()
Description copied from interface: AddressModel
Returns the fully qualified class name of this address.

Specified by:
getClassName in interface AddressModel
Specified by:
getClassName in interface AttachedModel
Returns:
the fully qualified class name of this address

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface AddressModel

getClassNameId

@JSON
public long getClassNameId()
Description copied from interface: AddressModel
Returns the class name ID of this address.

Specified by:
getClassNameId in interface AddressModel
Specified by:
getClassNameId in interface AttachedModel
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
Specified by:
setClassNameId in interface AttachedModel
Parameters:
classNameId - the class name ID of this address

getOriginalClassNameId

public long getOriginalClassNameId()

getClassPK

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

Specified by:
getClassPK in interface AddressModel
Specified by:
getClassPK in interface AttachedModel
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
Specified by:
setClassPK in interface AttachedModel
Parameters:
classPK - the class p k of this address

getOriginalClassPK

public long getOriginalClassPK()

getStreet1

@JSON
public String getStreet1()
Description copied from interface: AddressModel
Returns 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

@JSON
public String getStreet2()
Description copied from interface: AddressModel
Returns 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

@JSON
public String getStreet3()
Description copied from interface: AddressModel
Returns 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

@JSON
public String getCity()
Description copied from interface: AddressModel
Returns 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

@JSON
public String getZip()
Description copied from interface: AddressModel
Returns 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

@JSON
public long getRegionId()
Description copied from interface: AddressModel
Returns 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

@JSON
public long getCountryId()
Description copied from interface: AddressModel
Returns 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

@JSON
public int getTypeId()
Description copied from interface: AddressModel
Returns 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

@JSON
public boolean getMailing()
Description copied from interface: AddressModel
Returns 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
Returns true if this address is mailing.

Specified by:
isMailing in interface AddressModel
Returns:
true if this address is mailing; false otherwise

setMailing

public void setMailing(boolean mailing)
Description copied from interface: AddressModel
Sets whether this address is mailing.

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

getOriginalMailing

public boolean getOriginalMailing()

getPrimary

@JSON
public boolean getPrimary()
Description copied from interface: AddressModel
Returns 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
Returns true if this address is primary.

Specified by:
isPrimary in interface AddressModel
Returns:
true if this address is primary; false otherwise

setPrimary

public void setPrimary(boolean primary)
Description copied from interface: AddressModel
Sets whether this address is primary.

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

getOriginalPrimary

public boolean getOriginalPrimary()

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

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

Specified by:
getExpandoBridge in interface AddressModel
Specified by:
getExpandoBridge in interface BaseModel<Address>
Specified by:
getExpandoBridge in interface ClassedModel
Overrides:
getExpandoBridge in class BaseModelImpl<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>
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Address>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

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

Specified by:
toEscapedModel in interface AddressModel
Specified by:
toEscapedModel in interface BaseModel<Address>
Overrides:
toEscapedModel in class BaseModelImpl<Address>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public Address toUnescapedModel()
Specified by:
toUnescapedModel in interface AddressModel
Specified by:
toUnescapedModel in interface BaseModel<Address>
Overrides:
toUnescapedModel in class BaseModelImpl<Address>

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>
Specified by:
clone in class BaseModelImpl<Address>
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>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

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

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Address>
Overrides:
resetOriginalValues in class BaseModelImpl<Address>

toCacheModel

public CacheModel<Address> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface AddressModel
Specified by:
toCacheModel in interface BaseModel<Address>
Overrides:
toCacheModel in class BaseModelImpl<Address>
Returns:
the cache model 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
Returns 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

Liferay 6.1.2-ce-ga3