Liferay 6.0.5

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, BaseModel<Address>, Serializable, Cloneable, Comparable<Address>
Direct Known Subclasses:
AddressImpl

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.

Never modify or reference this class directly. All methods that expect a address model instance should use the Address interface instead.

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

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
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
           
 
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()
          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.
 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.
 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.
 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.
 String getZip()
          Gets the zip of this address.
 int hashCode()
           
 boolean isMailing()
          Determines whether this address is mailing.
 boolean isPrimary()
          Determines whether this address is primary.
 void setAddressId(long addressId)
          Sets the address id of this address.
 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 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 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.
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()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, 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, setEscapedModel, 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

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
Gets the primary key of this address.

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

setPrimaryKey

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

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

getPrimaryKeyObj

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

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

getAddressId

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

public long getCompanyId()
Description copied from interface: AddressModel
Gets the company id of this address.

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

getUserId

public long getUserId()
Description copied from interface: AddressModel
Gets the user id of this address.

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

getUserUuid

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

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

getUserName

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

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

getCreateDate

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

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

getModifiedDate

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

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

getClassName

public String getClassName()
Description copied from interface: AddressModel
Gets the class name of the model instance this address is polymorphically associated with.

Specified by:
getClassName in interface AddressModel
Returns:
the class name of the model instance this address is polymorphically associated with

getClassNameId

public long getClassNameId()
Description copied from interface: AddressModel
Gets the class name id of this address.

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

getClassPK

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

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

getStreet1

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

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

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

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

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

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

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

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

public boolean getMailing()
Description copied from interface: AddressModel
Gets 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
Determines whether this address is mailing.

Specified by:
isMailing in interface AddressModel
Returns:
whether this address is mailing

setMailing

public void setMailing(boolean mailing)
Description copied from interface: AddressModel
Sets whether this {$entity.humanName} is mailing.

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

getPrimary

public boolean getPrimary()
Description copied from interface: AddressModel
Gets 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
Determines whether this address is primary.

Specified by:
isPrimary in interface AddressModel
Returns:
whether this address is primary

setPrimary

public void setPrimary(boolean primary)
Description copied from interface: AddressModel
Sets whether this {$entity.humanName} is primary.

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

toEscapedModel

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

Specified by:
toEscapedModel in interface AddressModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

getExpandoBridge

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

Specified by:
getExpandoBridge in interface AddressModel
Specified by:
getExpandoBridge in interface BaseModel<Address>
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 to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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

toString

public String toString()
Specified by:
toString in interface AddressModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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.0.5