com.liferay.portal.model.impl
Class CompanyModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Company>
      extended by com.liferay.portal.model.impl.CompanyModelImpl
All Implemented Interfaces:
com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>, com.liferay.portal.model.ClassedModel, com.liferay.portal.model.CompanyModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portal.model.Company>
Direct Known Subclasses:
CompanyBaseImpl

@JSON(strict=true)
public class CompanyModelImpl
extends com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Company>
implements com.liferay.portal.model.CompanyModel

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

This implementation and its corresponding interface CompanyModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in CompanyImpl.

Author:
Brian Wing Shun Chan
See Also:
CompanyImpl, Company, CompanyModel, Serialized Form
Generated:

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static java.lang.String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static long LOGOID_COLUMN_BITMASK
           
static long MX_COLUMN_BITMASK
           
static java.lang.String SESSION_FACTORY
           
static long SYSTEM_COLUMN_BITMASK
           
static java.lang.Object[][] TABLE_COLUMNS
           
static java.lang.String TABLE_NAME
           
static java.lang.String TABLE_SQL_CREATE
           
static java.lang.String TABLE_SQL_DROP
           
static java.lang.String TX_MANAGER
           
static long WEBID_COLUMN_BITMASK
           
 
Constructor Summary
CompanyModelImpl()
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(com.liferay.portal.model.Company company)
           
 boolean equals(java.lang.Object obj)
           
 long getAccountId()
           
 boolean getActive()
           
 long getColumnBitmask()
           
 long getCompanyId()
           
 com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
           
 java.lang.String getHomeURL()
           
 java.lang.String getKey()
           
 java.security.Key getKeyObj()
           
 long getLogoId()
           
 int getMaxUsers()
           
 java.lang.Class<?> getModelClass()
           
 java.lang.String getModelClassName()
           
 java.lang.String getMx()
           
 long getOriginalLogoId()
           
 java.lang.String getOriginalMx()
           
 boolean getOriginalSystem()
           
 java.lang.String getOriginalWebId()
           
 long getPrimaryKey()
           
 java.io.Serializable getPrimaryKeyObj()
           
 boolean getSystem()
           
 java.lang.String getWebId()
           
 int hashCode()
           
 boolean isActive()
           
 boolean isSystem()
           
 void resetOriginalValues()
           
 void setAccountId(long accountId)
           
 void setActive(boolean active)
           
 void setCompanyId(long companyId)
           
 void setExpandoBridgeAttributes(com.liferay.portal.service.ServiceContext serviceContext)
           
 void setHomeURL(java.lang.String homeURL)
           
 void setKey(java.lang.String key)
           
 void setKeyObj(java.security.Key keyObj)
           
 void setLogoId(long logoId)
           
 void setMaxUsers(int maxUsers)
           
 void setMx(java.lang.String mx)
           
 void setPrimaryKey(long primaryKey)
           
 void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
           
 void setSystem(boolean system)
           
 void setWebId(java.lang.String webId)
           
 com.liferay.portal.model.CacheModel<com.liferay.portal.model.Company> toCacheModel()
           
 com.liferay.portal.model.Company toEscapedModel()
           
static com.liferay.portal.model.Company toModel(com.liferay.portal.model.CompanySoap soapModel)
          Converts the soap model instance into a normal model instance.
static java.util.List<com.liferay.portal.model.Company> toModels(com.liferay.portal.model.CompanySoap[] soapModels)
          Converts the soap model instances into normal model instances.
 java.lang.String toString()
           
 java.lang.String toXmlString()
           
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.CompanyModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 

Field Detail

TABLE_NAME

public static final java.lang.String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final java.lang.Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final java.lang.String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final java.lang.String TABLE_SQL_DROP
See Also:
Constant Field Values

DATA_SOURCE

public static final java.lang.String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final java.lang.String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final java.lang.String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

LOGOID_COLUMN_BITMASK

public static long LOGOID_COLUMN_BITMASK

MX_COLUMN_BITMASK

public static long MX_COLUMN_BITMASK

SYSTEM_COLUMN_BITMASK

public static long SYSTEM_COLUMN_BITMASK

WEBID_COLUMN_BITMASK

public static long WEBID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

CompanyModelImpl

public CompanyModelImpl()
Method Detail

toModel

public static com.liferay.portal.model.Company toModel(com.liferay.portal.model.CompanySoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static java.util.List<com.liferay.portal.model.Company> toModels(com.liferay.portal.model.CompanySoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface com.liferay.portal.model.CompanyModel

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Specified by:
setPrimaryKey in interface com.liferay.portal.model.CompanyModel

getPrimaryKeyObj

public java.io.Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.CompanyModel

setPrimaryKeyObj

public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.CompanyModel

getModelClass

public java.lang.Class<?> getModelClass()
Specified by:
getModelClass in interface com.liferay.portal.model.ClassedModel

getModelClassName

public java.lang.String getModelClassName()
Specified by:
getModelClassName in interface com.liferay.portal.model.ClassedModel

getCompanyId

@JSON
public long getCompanyId()
Specified by:
getCompanyId in interface com.liferay.portal.model.CompanyModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface com.liferay.portal.model.CompanyModel

getAccountId

@JSON
public long getAccountId()
Specified by:
getAccountId in interface com.liferay.portal.model.CompanyModel

setAccountId

public void setAccountId(long accountId)
Specified by:
setAccountId in interface com.liferay.portal.model.CompanyModel

getWebId

@JSON
public java.lang.String getWebId()
Specified by:
getWebId in interface com.liferay.portal.model.CompanyModel

setWebId

public void setWebId(java.lang.String webId)
Specified by:
setWebId in interface com.liferay.portal.model.CompanyModel

getOriginalWebId

public java.lang.String getOriginalWebId()

getKey

@JSON
public java.lang.String getKey()
Specified by:
getKey in interface com.liferay.portal.model.CompanyModel

setKey

public void setKey(java.lang.String key)
Specified by:
setKey in interface com.liferay.portal.model.CompanyModel

getMx

@JSON
public java.lang.String getMx()
Specified by:
getMx in interface com.liferay.portal.model.CompanyModel

setMx

public void setMx(java.lang.String mx)
Specified by:
setMx in interface com.liferay.portal.model.CompanyModel

getOriginalMx

public java.lang.String getOriginalMx()

getHomeURL

@JSON
public java.lang.String getHomeURL()
Specified by:
getHomeURL in interface com.liferay.portal.model.CompanyModel

setHomeURL

public void setHomeURL(java.lang.String homeURL)
Specified by:
setHomeURL in interface com.liferay.portal.model.CompanyModel

getLogoId

@JSON
public long getLogoId()
Specified by:
getLogoId in interface com.liferay.portal.model.CompanyModel

setLogoId

public void setLogoId(long logoId)
Specified by:
setLogoId in interface com.liferay.portal.model.CompanyModel

getOriginalLogoId

public long getOriginalLogoId()

getSystem

@JSON
public boolean getSystem()
Specified by:
getSystem in interface com.liferay.portal.model.CompanyModel

isSystem

public boolean isSystem()
Specified by:
isSystem in interface com.liferay.portal.model.CompanyModel

setSystem

public void setSystem(boolean system)
Specified by:
setSystem in interface com.liferay.portal.model.CompanyModel

getOriginalSystem

public boolean getOriginalSystem()

getMaxUsers

@JSON
public int getMaxUsers()
Specified by:
getMaxUsers in interface com.liferay.portal.model.CompanyModel

setMaxUsers

public void setMaxUsers(int maxUsers)
Specified by:
setMaxUsers in interface com.liferay.portal.model.CompanyModel

getActive

@JSON
public boolean getActive()
Specified by:
getActive in interface com.liferay.portal.model.CompanyModel

isActive

public boolean isActive()
Specified by:
isActive in interface com.liferay.portal.model.CompanyModel

setActive

public void setActive(boolean active)
Specified by:
setActive in interface com.liferay.portal.model.CompanyModel

getKeyObj

public java.security.Key getKeyObj()

setKeyObj

public void setKeyObj(java.security.Key keyObj)

getColumnBitmask

public long getColumnBitmask()

toEscapedModel

public com.liferay.portal.model.Company toEscapedModel()
Specified by:
toEscapedModel in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>
Specified by:
toEscapedModel in interface com.liferay.portal.model.CompanyModel
Overrides:
toEscapedModel in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Company>

getExpandoBridge

public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>
Specified by:
getExpandoBridge in interface com.liferay.portal.model.ClassedModel
Specified by:
getExpandoBridge in interface com.liferay.portal.model.CompanyModel
Overrides:
getExpandoBridge in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Company>

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(com.liferay.portal.service.ServiceContext serviceContext)
Specified by:
setExpandoBridgeAttributes in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>
Specified by:
setExpandoBridgeAttributes in interface com.liferay.portal.model.CompanyModel
Overrides:
setExpandoBridgeAttributes in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Company>

clone

public java.lang.Object clone()
Specified by:
clone in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>
Specified by:
clone in interface com.liferay.portal.model.CompanyModel
Specified by:
clone in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Company>

compareTo

public int compareTo(com.liferay.portal.model.Company company)
Specified by:
compareTo in interface com.liferay.portal.model.CompanyModel
Specified by:
compareTo in interface java.lang.Comparable<com.liferay.portal.model.Company>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface com.liferay.portal.model.CompanyModel
Overrides:
hashCode in class java.lang.Object

resetOriginalValues

public void resetOriginalValues()
Specified by:
resetOriginalValues in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>
Overrides:
resetOriginalValues in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Company>

toCacheModel

public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Company> toCacheModel()
Specified by:
toCacheModel in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>
Specified by:
toCacheModel in interface com.liferay.portal.model.CompanyModel
Overrides:
toCacheModel in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Company>

toString

public java.lang.String toString()
Specified by:
toString in interface com.liferay.portal.model.CompanyModel
Overrides:
toString in class java.lang.Object

toXmlString

public java.lang.String toXmlString()
Specified by:
toXmlString in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Company>
Specified by:
toXmlString in interface com.liferay.portal.model.CompanyModel