Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Class AccountWrapper

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

public class AccountWrapper
extends Object
implements Account, ModelWrapper<Account>

This class is a wrapper for Account.

See Also:
Account, Serialized Form

Constructor Summary
AccountWrapper(Account account)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Account account)
           
 boolean equals(Object obj)
           
 long getAccountId()
          Returns the account ID of this account.
 long getCompanyId()
          Returns the company ID of this account.
 Date getCreateDate()
          Returns the create date of this account.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 String getIndustry()
          Returns the industry of this account.
 String getLegalId()
          Returns the legal ID of this account.
 String getLegalName()
          Returns the legal name of this account.
 String getLegalType()
          Returns the legal type of this account.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this account.
 String getName()
          Returns the name of this account.
 long getParentAccountId()
          Returns the parent account ID of this account.
 long getPrimaryKey()
          Returns the primary key of this account.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getSicCode()
          Returns the sic code of this account.
 String getSize()
          Returns the size of this account.
 String getTickerSymbol()
          Returns the ticker symbol of this account.
 String getType()
          Returns the type of this account.
 long getUserId()
          Returns the user ID of this account.
 String getUserName()
          Returns the user name of this account.
 String getUserUuid()
          Returns the user uuid of this account.
 Account getWrappedAccount()
          Deprecated. Renamed to getWrappedModel()
 Account getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 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 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 setModelAttributes(Map<String,Object> attributes)
           
 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 primaryKey)
          Sets the primary key of this account.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 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.
 CacheModel<Account> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Account toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 Account toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccountWrapper

public AccountWrapper(Account account)
Method Detail

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<Account>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<Account>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this account.

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

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this account.

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

getAccountId

public long getAccountId()
Returns 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)
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()
Returns the company ID of this account.

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

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this account.

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

getUserId

public long getUserId()
Returns the user ID of this account.

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

setUserId

public void setUserId(long userId)
Sets the user ID of this account.

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

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this account.

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

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this account.

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

getUserName

public String getUserName()
Returns the user name of this account.

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

setUserName

public void setUserName(String userName)
Sets the user name of this account.

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

getCreateDate

public Date getCreateDate()
Returns the create date of this account.

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

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this account.

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

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this account.

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

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this account.

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

getParentAccountId

public long getParentAccountId()
Returns 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)
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()
Returns the name of this account.

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

setName

public void setName(String name)
Sets the name of this account.

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

getLegalName

public String getLegalName()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns the industry of this account.

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

setIndustry

public void setIndustry(String industry)
Sets the industry of this account.

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

getType

public String getType()
Returns the type of this account.

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

setType

public void setType(String type)
Sets the type of this account.

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

getSize

public String getSize()
Returns the size of this account.

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

setSize

public void setSize(String size)
Sets the size of this account.

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

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true 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
Returns true 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
Returns true 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

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface AccountModel
Specified by:
getPrimaryKeyObj in interface BaseModel<Account>
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 AccountModel
Specified by:
setPrimaryKeyObj in interface BaseModel<Account>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

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

Specified by:
getExpandoBridge in interface AccountModel
Specified by:
getExpandoBridge in interface BaseModel<Account>
Specified by:
getExpandoBridge in interface ClassedModel
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
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

toCacheModel

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

Specified by:
toCacheModel in interface AccountModel
Specified by:
toCacheModel in interface BaseModel<Account>
Returns:
the cache model object

toEscapedModel

public Account 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 AccountModel
Specified by:
toEscapedModel in interface BaseModel<Account>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public Account toUnescapedModel()
Specified by:
toUnescapedModel in interface AccountModel
Specified by:
toUnescapedModel in interface BaseModel<Account>

toString

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

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

equals

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

getWrappedAccount

public Account getWrappedAccount()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public Account getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<Account>

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<Account>

Liferay 6.1.2-ce-ga3