Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Interface AccountModel

All Superinterfaces:
AuditedModel, BaseModel<Account>, ClassedModel, Cloneable, Comparable<Account>, Serializable
All Known Subinterfaces:
Account
All Known Implementing Classes:
AccountWrapper

public interface AccountModel
extends AuditedModel, BaseModel<Account>

The base model interface for the Account service. Represents a row in the "Account_" database table, with each column mapped to a property of this class.

This interface and its corresponding implementation AccountModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in AccountImpl.

See Also:
Account, AccountImpl, AccountModelImpl

Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Account account)
           
 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.
 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.
 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 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 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 interface com.liferay.portal.model.BaseModel
getModelAttributes, resetOriginalValues, setModelAttributes
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 

Method Detail

getPrimaryKey

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

Returns:
the primary key of this account

setPrimaryKey

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

Parameters:
primaryKey - the primary key of this account

getAccountId

long getAccountId()
Returns the account ID of this account.

Returns:
the account ID of this account

setAccountId

void setAccountId(long accountId)
Sets the account ID of this account.

Parameters:
accountId - the account ID of this account

getCompanyId

long getCompanyId()
Returns the company ID of this account.

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

setCompanyId

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

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

getUserId

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

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

setUserId

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

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

getUserUuid

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

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

setUserUuid

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

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

getUserName

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

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

setUserName

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

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

getCreateDate

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

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

setCreateDate

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

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

getModifiedDate

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

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

setModifiedDate

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

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

getParentAccountId

long getParentAccountId()
Returns the parent account ID of this account.

Returns:
the parent account ID of this account

setParentAccountId

void setParentAccountId(long parentAccountId)
Sets the parent account ID of this account.

Parameters:
parentAccountId - the parent account ID of this account

getName

@AutoEscape
String getName()
Returns the name of this account.

Returns:
the name of this account

setName

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

Parameters:
name - the name of this account

getLegalName

@AutoEscape
String getLegalName()
Returns the legal name of this account.

Returns:
the legal name of this account

setLegalName

void setLegalName(String legalName)
Sets the legal name of this account.

Parameters:
legalName - the legal name of this account

getLegalId

@AutoEscape
String getLegalId()
Returns the legal ID of this account.

Returns:
the legal ID of this account

setLegalId

void setLegalId(String legalId)
Sets the legal ID of this account.

Parameters:
legalId - the legal ID of this account

getLegalType

@AutoEscape
String getLegalType()
Returns the legal type of this account.

Returns:
the legal type of this account

setLegalType

void setLegalType(String legalType)
Sets the legal type of this account.

Parameters:
legalType - the legal type of this account

getSicCode

@AutoEscape
String getSicCode()
Returns the sic code of this account.

Returns:
the sic code of this account

setSicCode

void setSicCode(String sicCode)
Sets the sic code of this account.

Parameters:
sicCode - the sic code of this account

getTickerSymbol

@AutoEscape
String getTickerSymbol()
Returns the ticker symbol of this account.

Returns:
the ticker symbol of this account

setTickerSymbol

void setTickerSymbol(String tickerSymbol)
Sets the ticker symbol of this account.

Parameters:
tickerSymbol - the ticker symbol of this account

getIndustry

@AutoEscape
String getIndustry()
Returns the industry of this account.

Returns:
the industry of this account

setIndustry

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

Parameters:
industry - the industry of this account

getType

@AutoEscape
String getType()
Returns the type of this account.

Returns:
the type of this account

setType

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

Parameters:
type - the type of this account

getSize

@AutoEscape
String getSize()
Returns the size of this account.

Returns:
the size of this account

setSize

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

Parameters:
size - the size of this account

isNew

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 BaseModel<Account>
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

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 BaseModel<Account>
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

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

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

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 BaseModel<Account>
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

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

Specified by:
isEscapedModel in interface BaseModel<Account>
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

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

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

setPrimaryKeyObj

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

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

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<Account>
Specified by:
getExpandoBridge in interface ClassedModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

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 BaseModel<Account>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<Account>
Returns:
the shallow clone of this model instance

compareTo

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

hashCode

int hashCode()
Overrides:
hashCode in class Object

toCacheModel

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 BaseModel<Account>
Returns:
the cache model object

toEscapedModel

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 BaseModel<Account>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

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

toString

String toString()
Overrides:
toString in class Object

toXmlString

String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<Account>
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3