@ProviderType public class AccountWrapper extends Object implements Account, ModelWrapper<Account>
This class is a wrapper for Account
.
Account
,
Serialized FormACCOUNT_ID_ACCESSOR
Constructor and Description |
---|
AccountWrapper(Account account) |
Modifier and Type | Method and Description |
---|---|
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.
|
long |
getMvccVersion()
Returns the mvcc version 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 |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
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 |
setMvccVersion(long mvccVersion)
Sets the mvcc version 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.
|
public AccountWrapper(Account account)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Account>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Account>
public Object clone()
BaseModel
clone
in interface AccountModel
clone
in interface BaseModel<Account>
clone
in class Object
public int compareTo(Account account)
compareTo
in interface AccountModel
compareTo
in interface Comparable<Account>
public long getAccountId()
getAccountId
in interface AccountModel
public long getCompanyId()
getCompanyId
in interface AccountModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
public Date getCreateDate()
getCreateDate
in interface AccountModel
getCreateDate
in interface AuditedModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface AccountModel
getExpandoBridge
in interface BaseModel<Account>
getExpandoBridge
in interface ClassedModel
public String getIndustry()
getIndustry
in interface AccountModel
public String getLegalId()
getLegalId
in interface AccountModel
public String getLegalName()
getLegalName
in interface AccountModel
public String getLegalType()
getLegalType
in interface AccountModel
public Date getModifiedDate()
getModifiedDate
in interface AccountModel
getModifiedDate
in interface AuditedModel
public long getMvccVersion()
getMvccVersion
in interface AccountModel
getMvccVersion
in interface MVCCModel
public String getName()
getName
in interface AccountModel
public long getParentAccountId()
getParentAccountId
in interface AccountModel
public long getPrimaryKey()
getPrimaryKey
in interface AccountModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface AccountModel
getPrimaryKeyObj
in interface BaseModel<Account>
getPrimaryKeyObj
in interface ClassedModel
public String getSicCode()
getSicCode
in interface AccountModel
public String getSize()
getSize
in interface AccountModel
public String getTickerSymbol()
getTickerSymbol
in interface AccountModel
public String getType()
getType
in interface AccountModel
public long getUserId()
getUserId
in interface AccountModel
getUserId
in interface AuditedModel
public String getUserName()
getUserName
in interface AccountModel
getUserName
in interface AuditedModel
public String getUserUuid()
getUserUuid
in interface AccountModel
getUserUuid
in interface AuditedModel
public int hashCode()
hashCode
in interface AccountModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface AccountModel
isCachedModel
in interface BaseModel<Account>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface AccountModel
isEscapedModel
in interface BaseModel<Account>
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface AccountModel
isNew
in interface BaseModel<Account>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setAccountId(long accountId)
setAccountId
in interface AccountModel
accountId
- the account ID of this accountpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface AccountModel
setCachedModel
in interface BaseModel<Account>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCompanyId(long companyId)
setCompanyId
in interface AccountModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this accountpublic void setCreateDate(Date createDate)
setCreateDate
in interface AccountModel
setCreateDate
in interface AuditedModel
createDate
- the create date of this accountpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface AccountModel
setExpandoBridgeAttributes
in interface BaseModel<Account>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface AccountModel
setExpandoBridgeAttributes
in interface BaseModel<Account>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface AccountModel
setExpandoBridgeAttributes
in interface BaseModel<Account>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setIndustry(String industry)
setIndustry
in interface AccountModel
industry
- the industry of this accountpublic void setLegalId(String legalId)
setLegalId
in interface AccountModel
legalId
- the legal ID of this accountpublic void setLegalName(String legalName)
setLegalName
in interface AccountModel
legalName
- the legal name of this accountpublic void setLegalType(String legalType)
setLegalType
in interface AccountModel
legalType
- the legal type of this accountpublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AccountModel
setModifiedDate
in interface AuditedModel
modifiedDate
- the modified date of this accountpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface AccountModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this accountpublic void setName(String name)
setName
in interface AccountModel
name
- the name of this accountpublic void setNew(boolean n)
BaseModel
setNew
in interface AccountModel
setNew
in interface BaseModel<Account>
n
- whether this model instance does not yet exist in the databasepublic void setParentAccountId(long parentAccountId)
setParentAccountId
in interface AccountModel
parentAccountId
- the parent account ID of this accountpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AccountModel
primaryKey
- the primary key of this accountpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface AccountModel
setPrimaryKeyObj
in interface BaseModel<Account>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setSicCode(String sicCode)
setSicCode
in interface AccountModel
sicCode
- the sic code of this accountpublic void setSize(String size)
setSize
in interface AccountModel
size
- the size of this accountpublic void setTickerSymbol(String tickerSymbol)
setTickerSymbol
in interface AccountModel
tickerSymbol
- the ticker symbol of this accountpublic void setType(String type)
setType
in interface AccountModel
type
- the type of this accountpublic void setUserId(long userId)
setUserId
in interface AccountModel
setUserId
in interface AuditedModel
userId
- the user ID of this accountpublic void setUserName(String userName)
setUserName
in interface AccountModel
setUserName
in interface AuditedModel
userName
- the user name of this accountpublic void setUserUuid(String userUuid)
setUserUuid
in interface AccountModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this accountpublic CacheModel<Account> toCacheModel()
BaseModel
toCacheModel
in interface AccountModel
toCacheModel
in interface BaseModel<Account>
public Account toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface AccountModel
toEscapedModel
in interface BaseModel<Account>
AutoEscapeBeanHandler
public String toString()
toString
in interface AccountModel
toString
in class Object
public Account toUnescapedModel()
toUnescapedModel
in interface AccountModel
toUnescapedModel
in interface BaseModel<Account>
public String toXmlString()
BaseModel
toXmlString
in interface AccountModel
toXmlString
in interface BaseModel<Account>
public boolean equals(Object obj)
equals
in class Object
public Account getWrappedModel()
getWrappedModel
in interface ModelWrapper<Account>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<Account>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<Account>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Account>