@ProviderType public interface CompanyModel extends BaseModel<Company>, MVCCModel
This interface and its corresponding implementation CompanyModelImpl
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in CompanyImpl
.
Company
,
CompanyImpl
,
CompanyModelImpl
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Company company) |
long |
getAccountId()
Returns the account ID of this company.
|
boolean |
getActive()
Returns the active of this company.
|
long |
getCompanyId()
Returns the company ID of this company.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
String |
getHomeURL()
Returns the home url of this company.
|
String |
getKey()
Returns the key of this company.
|
long |
getLogoId()
Returns the logo ID of this company.
|
int |
getMaxUsers()
Returns the max users of this company.
|
long |
getMvccVersion()
Returns the mvcc version of this company.
|
String |
getMx()
Returns the mx of this company.
|
long |
getPrimaryKey()
Returns the primary key of this company.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
boolean |
getSystem()
Returns the system of this company.
|
String |
getWebId()
Returns the web ID of this company.
|
int |
hashCode() |
boolean |
isActive()
Returns
true if this company is active. |
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. |
boolean |
isSystem()
Returns
true if this company is system. |
void |
setAccountId(long accountId)
Sets the account ID of this company.
|
void |
setActive(boolean active)
Sets whether this company is active.
|
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 company.
|
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 |
setHomeURL(String homeURL)
Sets the home url of this company.
|
void |
setKey(String key)
Sets the key of this company.
|
void |
setLogoId(long logoId)
Sets the logo ID of this company.
|
void |
setMaxUsers(int maxUsers)
Sets the max users of this company.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this company.
|
void |
setMx(String mx)
Sets the mx of this company.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this company.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setSystem(boolean system)
Sets whether this company is system.
|
void |
setWebId(String webId)
Sets the web ID of this company.
|
CacheModel<Company> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
Company |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
Company |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributes
getModelClass, getModelClassName
long getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey
- the primary key of this companylong getMvccVersion()
getMvccVersion
in interface MVCCModel
void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this companylong getCompanyId()
void setCompanyId(long companyId)
companyId
- the company ID of this companylong getAccountId()
void setAccountId(long accountId)
accountId
- the account ID of this company@AutoEscape String getWebId()
void setWebId(String webId)
webId
- the web ID of this company@AutoEscape String getKey()
void setKey(String key)
key
- the key of this company@AutoEscape String getMx()
void setMx(String mx)
mx
- the mx of this company@AutoEscape String getHomeURL()
void setHomeURL(String homeURL)
homeURL
- the home url of this companylong getLogoId()
void setLogoId(long logoId)
logoId
- the logo ID of this companyboolean getSystem()
boolean isSystem()
true
if this company is system.true
if this company is system; false
otherwisevoid setSystem(boolean system)
system
- the system of this companyint getMaxUsers()
void setMaxUsers(int maxUsers)
maxUsers
- the max users of this companyboolean getActive()
boolean isActive()
true
if this company is active.true
if this company is active; false
otherwisevoid setActive(boolean active)
active
- the active of this companyboolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.void setNew(boolean n)
BaseModel
boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<Company>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<Company>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<Company>
true
if this model instance is escaped;
false
otherwiseSerializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Company>
getPrimaryKeyObj
in interface ClassedModel
void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Company>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instanceExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Company>
getExpandoBridge
in interface ClassedModel
void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<Company>
void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<Company>
void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Company>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
Object clone()
BaseModel
int hashCode()
hashCode
in class Object
CacheModel<Company> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Company>
Company toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<Company>
AutoEscapeBeanHandler
Company toUnescapedModel()
toUnescapedModel
in interface BaseModel<Company>
String toString()
toString
in class Object
String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Company>