Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Interface CompanyModel

All Superinterfaces:
BaseModel<Company>, ClassedModel, Cloneable, Comparable<Company>, Serializable
All Known Subinterfaces:
Company
All Known Implementing Classes:
CompanyBaseImpl, CompanyImpl, CompanyModelImpl, CompanyWrapper

public interface CompanyModel
extends BaseModel<Company>

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

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.

See Also:
Company, CompanyImpl, CompanyModelImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 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 u r l 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.
 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(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 u r l 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 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.
 
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 company.

Returns:
the primary key of this company

setPrimaryKey

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

Parameters:
primaryKey - the primary key of this company

getCompanyId

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

Returns:
the company ID of this company

setCompanyId

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

Parameters:
companyId - the company ID of this company

getAccountId

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

Returns:
the account ID of this company

setAccountId

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

Parameters:
accountId - the account ID of this company

getWebId

@AutoEscape
String getWebId()
Returns the web ID of this company.

Returns:
the web ID of this company

setWebId

void setWebId(String webId)
Sets the web ID of this company.

Parameters:
webId - the web ID of this company

getKey

@AutoEscape
String getKey()
Returns the key of this company.

Returns:
the key of this company

setKey

void setKey(String key)
Sets the key of this company.

Parameters:
key - the key of this company

getMx

@AutoEscape
String getMx()
Returns the mx of this company.

Returns:
the mx of this company

setMx

void setMx(String mx)
Sets the mx of this company.

Parameters:
mx - the mx of this company

getHomeURL

@AutoEscape
String getHomeURL()
Returns the home u r l of this company.

Returns:
the home u r l of this company

setHomeURL

void setHomeURL(String homeURL)
Sets the home u r l of this company.

Parameters:
homeURL - the home u r l of this company

getLogoId

long getLogoId()
Returns the logo ID of this company.

Returns:
the logo ID of this company

setLogoId

void setLogoId(long logoId)
Sets the logo ID of this company.

Parameters:
logoId - the logo ID of this company

getSystem

boolean getSystem()
Returns the system of this company.

Returns:
the system of this company

isSystem

boolean isSystem()
Returns true if this company is system.

Returns:
true if this company is system; false otherwise

setSystem

void setSystem(boolean system)
Sets whether this company is system.

Parameters:
system - the system of this company

getMaxUsers

int getMaxUsers()
Returns the max users of this company.

Returns:
the max users of this company

setMaxUsers

void setMaxUsers(int maxUsers)
Sets the max users of this company.

Parameters:
maxUsers - the max users of this company

getActive

boolean getActive()
Returns the active of this company.

Returns:
the active of this company

isActive

boolean isActive()
Returns true if this company is active.

Returns:
true if this company is active; false otherwise

setActive

void setActive(boolean active)
Sets whether this company is active.

Parameters:
active - the active of this company

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<Company>
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<Company>
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<Company>
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<Company>
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<Company>
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<Company>
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<Company>
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<Company>
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<Company>
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<Company>
Returns:
the shallow clone of this model instance

compareTo

int compareTo(Company company)
Specified by:
compareTo in interface Comparable<Company>

hashCode

int hashCode()
Overrides:
hashCode in class Object

toCacheModel

CacheModel<Company> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<Company>
Returns:
the cache model object

toEscapedModel

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

toUnescapedModel

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

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<Company>
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3