Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class AccountModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Account>
      extended by com.liferay.portal.model.impl.AccountModelImpl
All Implemented Interfaces:
AccountModel, AuditedModel, BaseModel<Account>, ClassedModel, Serializable, Cloneable, Comparable<Account>
Direct Known Subclasses:
AccountBaseImpl

@JSON(strict=true)
public class AccountModelImpl
extends BaseModelImpl<Account>
implements AccountModel

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

This implementation and its corresponding interface AccountModel 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:
AccountImpl, Account, AccountModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
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
AccountModelImpl()
           
 
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.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setAccountId(long accountId)
          Sets the account ID of this account.
 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 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.
static Account toModel(AccountSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<Account> toModels(AccountSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 Account 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.AccountModel
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

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
See Also:
Constant Field Values

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

AccountModelImpl

public AccountModelImpl()
Method Detail

toModel

public static Account toModel(AccountSoap 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<Account> toModels(AccountSoap[] 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: AccountModel
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)
Description copied from interface: AccountModel
Sets the primary key of this account.

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

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

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>
Overrides:
getModelAttributes in class BaseModelImpl<Account>

setModelAttributes

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

getAccountId

@JSON
public long getAccountId()
Description copied from interface: AccountModel
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)
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

@JSON
public long getCompanyId()
Description copied from interface: AccountModel
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)
Description copied from interface: AccountModel
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

@JSON
public long getUserId()
Description copied from interface: AccountModel
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)
Description copied from interface: AccountModel
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
Description copied from interface: AccountModel
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)
Description copied from interface: AccountModel
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

@JSON
public String getUserName()
Description copied from interface: AccountModel
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)
Description copied from interface: AccountModel
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

@JSON
public Date getCreateDate()
Description copied from interface: AccountModel
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)
Description copied from interface: AccountModel
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

@JSON
public Date getModifiedDate()
Description copied from interface: AccountModel
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)
Description copied from interface: AccountModel
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

@JSON
public long getParentAccountId()
Description copied from interface: AccountModel
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)
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

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

@JSON
public String getLegalName()
Description copied from interface: AccountModel
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)
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

@JSON
public String getLegalId()
Description copied from interface: AccountModel
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)
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

@JSON
public String getLegalType()
Description copied from interface: AccountModel
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)
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

@JSON
public String getSicCode()
Description copied from interface: AccountModel
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)
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

@JSON
public String getTickerSymbol()
Description copied from interface: AccountModel
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)
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

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

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

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

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
Overrides:
getExpandoBridge in class BaseModelImpl<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>
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Account>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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>
Overrides:
toEscapedModel in class BaseModelImpl<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>
Overrides:
toUnescapedModel in class BaseModelImpl<Account>

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

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface AccountModel
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<Account>
Overrides:
resetOriginalValues in class BaseModelImpl<Account>

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>
Overrides:
toCacheModel in class BaseModelImpl<Account>
Returns:
the cache model 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
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

Liferay 6.1.2-ce-ga3