Liferay 6.0.5

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

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.

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

See Also:
AccountImpl, Account, AccountModel, 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 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()
          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.
 int hashCode()
           
 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 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 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.
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()
           
 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.AccountModel
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

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

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

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

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

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

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

Liferay 6.0.5