Liferay 6.0.5

com.liferay.portal.model
Class AccountWrapper

java.lang.Object
  extended by com.liferay.portal.model.AccountWrapper
All Implemented Interfaces:
Account, AccountModel, BaseModel<Account>, Serializable, Cloneable, Comparable<Account>

public class AccountWrapper
extends Object
implements Account

This class is a wrapper for Account.

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

Constructor Summary
AccountWrapper(Account account)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Account account)
           
 long getAccountId()
          Gets the account id of this account.
 long getCompanyId()
          Gets the company id of this account.
 Date getCreateDate()
          Gets the create date of this account.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 String getIndustry()
          Gets the industry of this account.
 String getLegalId()
          Gets the legal id of this account.
 String getLegalName()
          Gets the legal name of this account.
 String getLegalType()
          Gets the legal type of this account.
 Date getModifiedDate()
          Gets the modified date of this account.
 String getName()
          Gets the name of this account.
 long getParentAccountId()
          Gets the parent account id of this account.
 long getPrimaryKey()
          Gets the primary key of this account.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 String getSicCode()
          Gets the sic code of this account.
 String getSize()
          Gets the size of this account.
 String getTickerSymbol()
          Gets the ticker symbol of this account.
 String getType()
          Gets the type of this account.
 long getUserId()
          Gets the user id of this account.
 String getUserName()
          Gets the user name of this account.
 String getUserUuid()
          Gets the user uuid of this account.
 Account getWrappedAccount()
           
 int hashCode()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 void setAccountId(long accountId)
          Sets the account id of this account.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCompanyId(long companyId)
          Sets the company id of this account.
 void setCreateDate(Date createDate)
          Sets the create date of this account.
 void setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setIndustry(String industry)
          Sets the industry of this account.
 void setLegalId(String legalId)
          Sets the legal id of this account.
 void setLegalName(String legalName)
          Sets the legal name of this account.
 void setLegalType(String legalType)
          Sets the legal type of this account.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this account.
 void setName(String name)
          Sets the name of this account.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setParentAccountId(long parentAccountId)
          Sets the parent account id of this account.
 void setPrimaryKey(long pk)
          Sets the primary key of this account
 void setSicCode(String sicCode)
          Sets the sic code of this account.
 void setSize(String size)
          Sets the size of this account.
 void setTickerSymbol(String tickerSymbol)
          Sets the ticker symbol of this account.
 void setType(String type)
          Sets the type of this account.
 void setUserId(long userId)
          Sets the user id of this account.
 void setUserName(String userName)
          Sets the user name of this account.
 void setUserUuid(String userUuid)
          Sets the user uuid of this account.
 Account toEscapedModel()
          Gets a copy of this account as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccountWrapper

public AccountWrapper(Account account)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: AccountModel
Gets the primary key of this account.

Specified by:
getPrimaryKey in interface AccountModel
Returns:
the primary key of this account

setPrimaryKey

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

Specified by:
setPrimaryKey in interface AccountModel
Parameters:
pk - the primary key of this account

getAccountId

public long getAccountId()
Description copied from interface: AccountModel
Gets the account id of this account.

Specified by:
getAccountId in interface AccountModel
Returns:
the account id of this account

setAccountId

public void setAccountId(long accountId)
Description copied from interface: AccountModel
Sets the account id of this account.

Specified by:
setAccountId in interface AccountModel
Parameters:
accountId - the account id of this account

getCompanyId

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

Specified by:
getCompanyId in interface AccountModel
Returns:
the company id of this account

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: AccountModel
Sets the company id of this account.

Specified by:
setCompanyId in interface AccountModel
Parameters:
companyId - the company id of this account

getUserId

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

Specified by:
getUserId in interface AccountModel
Returns:
the user id of this account

setUserId

public void setUserId(long userId)
Description copied from interface: AccountModel
Sets the user id of this account.

Specified by:
setUserId in interface AccountModel
Parameters:
userId - the user id of this account

getUserUuid

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

Specified by:
getUserUuid in interface AccountModel
Returns:
the user uuid of this account
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: AccountModel
Sets the user uuid of this account.

Specified by:
setUserUuid in interface AccountModel
Parameters:
userUuid - the user uuid of this account

getUserName

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

Specified by:
getUserName in interface AccountModel
Returns:
the user name of this account

setUserName

public void setUserName(String userName)
Description copied from interface: AccountModel
Sets the user name of this account.

Specified by:
setUserName in interface AccountModel
Parameters:
userName - the user name of this account

getCreateDate

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

Specified by:
getCreateDate in interface AccountModel
Returns:
the create date of this account

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: AccountModel
Sets the create date of this account.

Specified by:
setCreateDate in interface AccountModel
Parameters:
createDate - the create date of this account

getModifiedDate

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

Specified by:
getModifiedDate in interface AccountModel
Returns:
the modified date of this account

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: AccountModel
Sets the modified date of this account.

Specified by:
setModifiedDate in interface AccountModel
Parameters:
modifiedDate - the modified date of this account

getParentAccountId

public long getParentAccountId()
Description copied from interface: AccountModel
Gets the parent account id of this account.

Specified by:
getParentAccountId in interface AccountModel
Returns:
the parent account id of this account

setParentAccountId

public void setParentAccountId(long parentAccountId)
Description copied from interface: AccountModel
Sets the parent account id of this account.

Specified by:
setParentAccountId in interface AccountModel
Parameters:
parentAccountId - the parent account id of this account

getName

public String getName()
Description copied from interface: AccountModel
Gets the name of this account.

Specified by:
getName in interface AccountModel
Returns:
the name of this account

setName

public void setName(String name)
Description copied from interface: AccountModel
Sets the name of this account.

Specified by:
setName in interface AccountModel
Parameters:
name - the name of this account

getLegalName

public String getLegalName()
Description copied from interface: AccountModel
Gets the legal name of this account.

Specified by:
getLegalName in interface AccountModel
Returns:
the legal name of this account

setLegalName

public void setLegalName(String legalName)
Description copied from interface: AccountModel
Sets the legal name of this account.

Specified by:
setLegalName in interface AccountModel
Parameters:
legalName - the legal name of this account

getLegalId

public String getLegalId()
Description copied from interface: AccountModel
Gets the legal id of this account.

Specified by:
getLegalId in interface AccountModel
Returns:
the legal id of this account

setLegalId

public void setLegalId(String legalId)
Description copied from interface: AccountModel
Sets the legal id of this account.

Specified by:
setLegalId in interface AccountModel
Parameters:
legalId - the legal id of this account

getLegalType

public String getLegalType()
Description copied from interface: AccountModel
Gets the legal type of this account.

Specified by:
getLegalType in interface AccountModel
Returns:
the legal type of this account

setLegalType

public void setLegalType(String legalType)
Description copied from interface: AccountModel
Sets the legal type of this account.

Specified by:
setLegalType in interface AccountModel
Parameters:
legalType - the legal type of this account

getSicCode

public String getSicCode()
Description copied from interface: AccountModel
Gets the sic code of this account.

Specified by:
getSicCode in interface AccountModel
Returns:
the sic code of this account

setSicCode

public void setSicCode(String sicCode)
Description copied from interface: AccountModel
Sets the sic code of this account.

Specified by:
setSicCode in interface AccountModel
Parameters:
sicCode - the sic code of this account

getTickerSymbol

public String getTickerSymbol()
Description copied from interface: AccountModel
Gets the ticker symbol of this account.

Specified by:
getTickerSymbol in interface AccountModel
Returns:
the ticker symbol of this account

setTickerSymbol

public void setTickerSymbol(String tickerSymbol)
Description copied from interface: AccountModel
Sets the ticker symbol of this account.

Specified by:
setTickerSymbol in interface AccountModel
Parameters:
tickerSymbol - the ticker symbol of this account

getIndustry

public String getIndustry()
Description copied from interface: AccountModel
Gets the industry of this account.

Specified by:
getIndustry in interface AccountModel
Returns:
the industry of this account

setIndustry

public void setIndustry(String industry)
Description copied from interface: AccountModel
Sets the industry of this account.

Specified by:
setIndustry in interface AccountModel
Parameters:
industry - the industry of this account

getType

public String getType()
Description copied from interface: AccountModel
Gets the type of this account.

Specified by:
getType in interface AccountModel
Returns:
the type of this account

setType

public void setType(String type)
Description copied from interface: AccountModel
Sets the type of this account.

Specified by:
setType in interface AccountModel
Parameters:
type - the type of this account

getSize

public String getSize()
Description copied from interface: AccountModel
Gets the size of this account.

Specified by:
getSize in interface AccountModel
Returns:
the size of this account

setSize

public void setSize(String size)
Description copied from interface: AccountModel
Sets the size of this account.

Specified by:
setSize in interface AccountModel
Parameters:
size - the size of this account

toEscapedModel

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

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

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines if this model instance does not yet exist in the database.

Specified by:
isNew in interface AccountModel
Specified by:
isNew in interface BaseModel<Account>
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface AccountModel
Specified by:
setNew in interface BaseModel<Account>
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Determines if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface AccountModel
Specified by:
isCachedModel in interface BaseModel<Account>
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface AccountModel
Specified by:
setCachedModel in interface BaseModel<Account>
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Determines if this model instance is escaped.

Specified by:
isEscapedModel in interface AccountModel
Specified by:
isEscapedModel in interface BaseModel<Account>
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface AccountModel
Specified by:
setEscapedModel in interface BaseModel<Account>
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

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

getExpandoBridge

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

Specified by:
getExpandoBridge in interface AccountModel
Specified by:
getExpandoBridge in interface BaseModel<Account>
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 AccountModel
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Account>
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 AccountModel
Specified by:
clone in interface BaseModel<Account>
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Account account)
Specified by:
compareTo in interface AccountModel
Specified by:
compareTo in interface Comparable<Account>

hashCode

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

toString

public String toString()
Specified by:
toString in interface AccountModel
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 AccountModel
Specified by:
toXmlString in interface BaseModel<Account>
Returns:
the XML representation of this model instance

getWrappedAccount

public Account getWrappedAccount()

Liferay 6.0.5