Liferay 6.0-ee

com.liferay.portal.model
Class CompanyWrapper

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

public class CompanyWrapper
extends Object
implements 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.

Constructor Summary
CompanyWrapper(Company company)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Company company)
           
 Account getAccount()
           
 long getAccountId()
          Gets the account id of this company.
 String getAdminName()
           
 String getAuthType()
           
 long getCompanyId()
          Gets the company id of this company.
 User getDefaultUser()
           
 String getDefaultWebId()
           
 String getEmailAddress()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 Group getGroup()
           
 String getHomeURL()
          Gets the home u r l of this company.
 String getKey()
          Gets the key of this company.
 Key getKeyObj()
           
 Locale getLocale()
           
 long getLogoId()
          Gets the logo id of this company.
 int getMaxUsers()
          Gets the max users of this company.
 String getMx()
          Gets the mx of this company.
 String getName()
           
 long getPrimaryKey()
          Gets the primary key of this company.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 String getShardName()
           
 String getShortName()
           
 boolean getSystem()
          Gets the system of this company.
 TimeZone getTimeZone()
           
 String getVirtualHost()
          Gets the virtual host of this company.
 String getWebId()
          Gets the web id of this company.
 Company getWrappedCompany()
           
 boolean hasCompanyMx(String emailAddress)
           
 int hashCode()
           
 boolean isAutoLogin()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isCommunityLogo()
           
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 boolean isSendPassword()
           
 boolean isSendPasswordResetLink()
           
 boolean isStrangers()
           
 boolean isStrangersVerify()
           
 boolean isStrangersWithMx()
           
 boolean isSystem()
          Determines whether this company is system.
 void setAccountId(long accountId)
          Sets the account id of this company.
 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 setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 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 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 pk)
          Sets the primary key of this company
 void setSystem(boolean system)
          Sets whether this {$entity.humanName} is system.
 void setVirtualHost(String virtualHost)
          Sets the virtual host of this company.
 void setWebId(String webId)
          Sets the web id of this company.
 Company toEscapedModel()
          Gets a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompanyWrapper

public CompanyWrapper(Company company)
Method Detail

getPrimaryKey

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

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

setPrimaryKey

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

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

getCompanyId

public long getCompanyId()
Gets 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()
Gets 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()
Gets 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()
Gets 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 Company
Specified by:
setKey in interface CompanyModel
Parameters:
key - the key of this company

getVirtualHost

public String getVirtualHost()
Gets the virtual host of this company.

Specified by:
getVirtualHost in interface CompanyModel
Returns:
the virtual host of this company

setVirtualHost

public void setVirtualHost(String virtualHost)
Sets the virtual host of this company.

Specified by:
setVirtualHost in interface CompanyModel
Parameters:
virtualHost - the virtual host of this company

getMx

public String getMx()
Gets 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()
Gets 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()
Gets 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()
Gets the system of this company.

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

isSystem

public boolean isSystem()
Determines whether this company is system.

Specified by:
isSystem in interface CompanyModel
Returns:
whether this company is system

setSystem

public void setSystem(boolean system)
Sets whether this {$entity.humanName} is system.

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

getMaxUsers

public int getMaxUsers()
Gets 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

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines 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
Determines 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
Determines 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
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<Company>
Specified by:
setEscapedModel in interface CompanyModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<Company>
Specified by:
getPrimaryKeyObj in interface CompanyModel
Returns:
the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<Company>
Specified by:
getExpandoBridge in interface CompanyModel
Returns:
the expando bridge for this model instance

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 retrieve the expando bridge attributes from
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 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

toEscapedModel

public Company toEscapedModel()
Description copied from interface: BaseModel
Gets 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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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

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

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

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

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

isCommunityLogo

public boolean isCommunityLogo()
                        throws SystemException
Specified by:
isCommunityLogo 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

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

getWrappedCompany

public Company getWrappedCompany()

Liferay 6.0-ee