Liferay 6.2-ce-ga5

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

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()
           
 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 getShardName()
           
 String getShortName()
           
 boolean getSystem()
          Returns the system of this company.
 TimeZone getTimeZone()
           
 String getVirtualHostname()
           
 String getWebId()
          Returns the web ID of this company.
 Company getWrappedCompany()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 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 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 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 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>

getPrimaryKey

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

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

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

getCompanyId

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

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

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

getAccountId

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

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

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

getWebId

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

Specified by:
getWebId in interface CompanyModel
Returns:
the web ID of this 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

getKey

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

Specified by:
getKey in interface CompanyModel
Returns:
the key 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

getMx

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

Specified by:
getMx in interface CompanyModel
Returns:
the mx 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

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

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

getLogoId

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

Specified by:
getLogoId in interface CompanyModel
Returns:
the logo ID of this 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

getSystem

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

Specified by:
getSystem in interface CompanyModel
Returns:
the system of this 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

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

getMaxUsers

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

Specified by:
getMaxUsers in interface CompanyModel
Returns:
the max users 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

getActive

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

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

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

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

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

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

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)

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

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

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

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

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

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

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>

hashCode

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

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

toUnescapedModel

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

toString

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

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

persist

public void persist()
             throws SystemException
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
Throws:
SystemException - if a system exception occurred

getAccount

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

getAdminName

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

getAuthType

public String getAuthType()
                   throws SystemException
Specified by:
getAuthType in interface Company
Throws:
SystemException

getDefaultUser

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

getDefaultWebId

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

getEmailAddress

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

getGroup

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

getGroupId

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

getKeyObj

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

getLocale

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

getName

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

getPortalURL

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

getShardName

public String getShardName()
                    throws PortalException,
                           SystemException
Specified by:
getShardName in interface Company
Throws:
PortalException
SystemException

getShortName

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

getTimeZone

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

getVirtualHostname

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

hasCompanyMx

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

isAutoLogin

public boolean isAutoLogin()
                    throws SystemException
Specified by:
isAutoLogin in interface Company
Throws:
SystemException

isSendPassword

public boolean isSendPassword()
                       throws SystemException
Specified by:
isSendPassword in interface Company
Throws:
SystemException

isSendPasswordResetLink

public boolean isSendPasswordResetLink()
                                throws SystemException
Specified by:
isSendPasswordResetLink in interface Company
Throws:
SystemException

isSiteLogo

public boolean isSiteLogo()
                   throws SystemException
Specified by:
isSiteLogo in interface Company
Throws:
SystemException

isStrangers

public boolean isStrangers()
                    throws SystemException
Specified by:
isStrangers in interface Company
Throws:
SystemException

isStrangersVerify

public boolean isStrangersVerify()
                          throws SystemException
Specified by:
isStrangersVerify in interface Company
Throws:
SystemException

isStrangersWithMx

public boolean isStrangersWithMx()
                          throws SystemException
Specified by:
isStrangersWithMx in interface Company
Throws:
SystemException

setKeyObj

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

setVirtualHostname

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

equals

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

getWrappedCompany

public Company getWrappedCompany()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<Company>

Liferay 6.2-ce-ga5