Liferay 7.0-ce-b4

com.liferay.portal.model
Class CompanyWrapper

java.lang.Object
  extended by com.liferay.portal.model.CompanyWrapper
All Implemented Interfaces:
BaseModel<Company>, ClassedModel, Company, CompanyModel, ModelWrapper<Company>, MVCCModel, PersistedModel, Serializable, Cloneable, Comparable<Company>

@ProviderType
public class CompanyWrapper
extends Object
implements Company, ModelWrapper<Company>

This class is a wrapper for Company.

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

Field Summary
 
Fields inherited from interface com.liferay.portal.model.Company
COMPANY_ID_ACCESSOR
 
Constructor Summary
CompanyWrapper(Company company)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Company company)
           
 boolean equals(Object obj)
           
 Account getAccount()
           
 long getAccountId()
          Returns the account ID of this company.
 boolean getActive()
          Returns the active of this company.
 String getAdminName()
           
 String getAuthType()
           
 long getCompanyId()
          Returns the company ID of this company.
 User getDefaultUser()
           
 String getDefaultWebId()
           
 String getEmailAddress()
           
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Group getGroup()
           
 long getGroupId()
           
 String getHomeURL()
          Returns the home u r l of this company.
 String getKey()
          Returns the key of this company.
 Key getKeyObj()
           
 Locale getLocale()
           
 long getLogoId()
          Returns the logo ID of this company.
 int getMaxUsers()
          Returns the max users of this company.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 long getMvccVersion()
          Returns the mvcc version of this company.
 String getMx()
          Returns the mx of this company.
 String getName()
           
 String getPortalURL(long groupId)
           
 long getPrimaryKey()
          Returns the primary key of this company.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getShortName()
           
 boolean getSystem()
          Returns the system of this company.
 TimeZone getTimeZone()
           
 String getVirtualHostname()
           
 String getWebId()
          Returns the web ID of this company.
 Company getWrappedModel()
           
 boolean hasCompanyMx(String emailAddress)
           
 int hashCode()
           
 boolean isActive()
          Returns true if this company is active.
 boolean isAutoLogin()
           
 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.
 boolean isSendPassword()
           
 boolean isSendPasswordResetLink()
           
 boolean isSiteLogo()
           
 boolean isStrangers()
           
 boolean isStrangersVerify()
           
 boolean isStrangersWithMx()
           
 boolean isSystem()
          Returns true if this company is system.
 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 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 u r l of this company.
 void setKey(String key)
          Sets the key of this company.
 void setKeyObj(Key keyObj)
           
 void setLogoId(long logoId)
          Sets the logo ID of this company.
 void setMaxUsers(int maxUsers)
          Sets the max users of this company.
 void setModelAttributes(Map<String,Object> attributes)
           
 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 setVirtualHostname(String virtualHostname)
           
 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 class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompanyWrapper

public CompanyWrapper(Company company)
Method Detail

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

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<Company>

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<Company>
Specified by:
clone in interface CompanyModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

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

getAccount

public Account getAccount()
                   throws PortalException
Specified by:
getAccount in interface Company
Throws:
PortalException

getAccountId

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

Specified by:
getAccountId in interface CompanyModel
Returns:
the account ID of this company

getActive

public boolean getActive()
Returns the active of this company.

Specified by:
getActive in interface CompanyModel
Returns:
the active of this company

getAdminName

public String getAdminName()
Specified by:
getAdminName in interface Company

getAuthType

public String getAuthType()
Specified by:
getAuthType in interface Company

getCompanyId

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

Specified by:
getCompanyId in interface CompanyModel
Returns:
the company ID of this company

getDefaultUser

public User getDefaultUser()
                    throws PortalException
Specified by:
getDefaultUser in interface Company
Throws:
PortalException

getDefaultWebId

public String getDefaultWebId()
Specified by:
getDefaultWebId in interface Company

getEmailAddress

public String getEmailAddress()
Specified by:
getEmailAddress in interface Company

getExpandoBridge

public 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
Specified by:
getExpandoBridge in interface CompanyModel
Returns:
the expando bridge for this model instance

getGroup

public Group getGroup()
               throws PortalException
Specified by:
getGroup in interface Company
Throws:
PortalException

getGroupId

public long getGroupId()
                throws PortalException
Specified by:
getGroupId in interface Company
Throws:
PortalException

getHomeURL

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

Specified by:
getHomeURL in interface CompanyModel
Returns:
the home u r l of this company

getKey

public String getKey()
Returns the key of this company.

Specified by:
getKey in interface CompanyModel
Returns:
the key of this company

getKeyObj

public Key getKeyObj()
Specified by:
getKeyObj in interface Company

getLocale

public Locale getLocale()
                 throws PortalException
Specified by:
getLocale in interface Company
Throws:
PortalException

getLogoId

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

Specified by:
getLogoId in interface CompanyModel
Returns:
the logo ID of this company

getMaxUsers

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

Specified by:
getMaxUsers in interface CompanyModel
Returns:
the max users of this company

getMvccVersion

public long getMvccVersion()
Returns the mvcc version of this company.

Specified by:
getMvccVersion in interface CompanyModel
Specified by:
getMvccVersion in interface MVCCModel
Returns:
the mvcc version of this company

getMx

public String getMx()
Returns the mx of this company.

Specified by:
getMx in interface CompanyModel
Returns:
the mx of this company

getName

public String getName()
               throws PortalException
Specified by:
getName in interface Company
Throws:
PortalException

getPortalURL

public String getPortalURL(long groupId)
                    throws PortalException
Specified by:
getPortalURL in interface Company
Throws:
PortalException

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this company.

Specified by:
getPrimaryKey in interface CompanyModel
Returns:
the primary key of this company

getPrimaryKeyObj

public 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
Specified by:
getPrimaryKeyObj in interface CompanyModel
Returns:
the primary key of this model instance

getShortName

public String getShortName()
                    throws PortalException
Specified by:
getShortName in interface Company
Throws:
PortalException

getSystem

public boolean getSystem()
Returns the system of this company.

Specified by:
getSystem in interface CompanyModel
Returns:
the system of this company

getTimeZone

public TimeZone getTimeZone()
                     throws PortalException
Specified by:
getTimeZone in interface Company
Throws:
PortalException

getVirtualHostname

public String getVirtualHostname()
Specified by:
getVirtualHostname in interface Company

getWebId

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

Specified by:
getWebId in interface CompanyModel
Returns:
the web ID of this company

hasCompanyMx

public boolean hasCompanyMx(String emailAddress)
Specified by:
hasCompanyMx in interface Company

hashCode

public int hashCode()
Specified by:
hashCode in interface CompanyModel
Overrides:
hashCode in class Object

isActive

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

Specified by:
isActive in interface CompanyModel
Returns:
true if this company is active; false otherwise

isAutoLogin

public boolean isAutoLogin()
Specified by:
isAutoLogin in interface Company

isCachedModel

public 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>
Specified by:
isCachedModel in interface CompanyModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<Company>
Specified by:
isEscapedModel in interface CompanyModel
Returns:
true if this model instance is escaped; false otherwise

isNew

public 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>
Specified by:
isNew in interface CompanyModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

isSendPassword

public boolean isSendPassword()
Specified by:
isSendPassword in interface Company

isSendPasswordResetLink

public boolean isSendPasswordResetLink()
Specified by:
isSendPasswordResetLink in interface Company

isSiteLogo

public boolean isSiteLogo()
Specified by:
isSiteLogo in interface Company

isStrangers

public boolean isStrangers()
Specified by:
isStrangers in interface Company

isStrangersVerify

public boolean isStrangersVerify()
Specified by:
isStrangersVerify in interface Company

isStrangersWithMx

public boolean isStrangersWithMx()
Specified by:
isStrangersWithMx in interface Company

isSystem

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

Specified by:
isSystem in interface CompanyModel
Returns:
true if this company is system; false otherwise

persist

public void persist()
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel

setAccountId

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

Specified by:
setAccountId in interface CompanyModel
Parameters:
accountId - the account ID of this company

setActive

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

Specified by:
setActive in interface CompanyModel
Parameters:
active - the active of this company

setCachedModel

public 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>
Specified by:
setCachedModel in interface CompanyModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

setCompanyId

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

Specified by:
setCompanyId in interface CompanyModel
Parameters:
companyId - the company ID of this company

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Company>
Specified by:
setExpandoBridgeAttributes in interface CompanyModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Company>
Specified by:
setExpandoBridgeAttributes in interface CompanyModel

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 BaseModel<Company>
Specified by:
setExpandoBridgeAttributes in interface CompanyModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes()

setHomeURL

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

Specified by:
setHomeURL in interface CompanyModel
Parameters:
homeURL - the home u r l of this company

setKey

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

Specified by:
setKey in interface CompanyModel
Parameters:
key - the key of this company

setKeyObj

public void setKeyObj(Key keyObj)
Specified by:
setKeyObj in interface Company

setLogoId

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

Specified by:
setLogoId in interface CompanyModel
Parameters:
logoId - the logo ID of this company

setMaxUsers

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

Specified by:
setMaxUsers in interface CompanyModel
Parameters:
maxUsers - the max users of this company

setMvccVersion

public void setMvccVersion(long mvccVersion)
Sets the mvcc version of this company.

Specified by:
setMvccVersion in interface CompanyModel
Specified by:
setMvccVersion in interface MVCCModel
Parameters:
mvccVersion - the mvcc version of this company

setMx

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

Specified by:
setMx in interface CompanyModel
Parameters:
mx - the mx of this company

setNew

public 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>
Specified by:
setNew in interface CompanyModel
Parameters:
n - whether this model instance does not yet exist in the database

setPrimaryKey

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

Specified by:
setPrimaryKey in interface CompanyModel
Parameters:
primaryKey - the primary key of this company

setPrimaryKeyObj

public 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
Specified by:
setPrimaryKeyObj in interface CompanyModel
Parameters:
primaryKeyObj - the primary key of this model instance

setSystem

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

Specified by:
setSystem in interface CompanyModel
Parameters:
system - the system of this company

setVirtualHostname

public void setVirtualHostname(String virtualHostname)
Specified by:
setVirtualHostname in interface Company

setWebId

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

Specified by:
setWebId in interface CompanyModel
Parameters:
webId - the web ID of this company

toCacheModel

public 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>
Specified by:
toCacheModel in interface CompanyModel
Returns:
the cache model object

toEscapedModel

public 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>
Specified by:
toEscapedModel in interface CompanyModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toString

public String toString()
Specified by:
toString in interface CompanyModel
Overrides:
toString in class Object

toUnescapedModel

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<Company>
Specified by:
toXmlString in interface CompanyModel
Returns:
the XML representation of this model instance

equals

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

getWrappedModel

public Company getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<Company>

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's entity cache is enabled.

Specified by:
isEntityCacheEnabled in interface BaseModel<Company>
Returns:
true if this model's entity cache is enabled; false otherwise

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's finder cache is enabled.

Specified by:
isFinderCacheEnabled in interface BaseModel<Company>
Returns:
true if this model's finder cache is enabled; false otherwise

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Company>

Liferay 7.0-ce-b4