Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class CompanyModelImpl

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

@JSON(strict=true)
public class CompanyModelImpl
extends BaseModelImpl<Company>
implements 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.

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

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static 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 String SESSION_FACTORY
           
static long SYSTEM_COLUMN_BITMASK
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
static long WEBID_COLUMN_BITMASK
           
 
Constructor Summary
CompanyModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Company company)
           
 boolean equals(Object obj)
           
 long getAccountId()
          Returns the account ID of this company.
 boolean getActive()
          Returns the active of this company.
 long getColumnBitmask()
           
 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.
 Key getKeyObj()
           
 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.
 long getOriginalLogoId()
           
 String getOriginalMx()
           
 boolean getOriginalSystem()
           
 String getOriginalWebId()
           
 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 isSystem()
          Returns true if this company is system.
 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 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 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 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.
static Company toModel(CompanySoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<Company> toModels(CompanySoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 Company toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
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 String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final 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 Company toModel(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 List<Company> toModels(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()
Description copied from interface: CompanyModel
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)
Description copied from interface: CompanyModel
Sets the primary key of this company.

Specified by:
setPrimaryKey in interface CompanyModel
Parameters:
primaryKey - 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

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

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>
Overrides:
getModelAttributes in class BaseModelImpl<Company>

setModelAttributes

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

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: CompanyModel
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)
Description copied from interface: CompanyModel
Sets the company ID of this company.

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

getAccountId

@JSON
public long getAccountId()
Description copied from interface: CompanyModel
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)
Description copied from interface: CompanyModel
Sets the account ID of this company.

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

getWebId

@JSON
public String getWebId()
Description copied from interface: CompanyModel
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)
Description copied from interface: CompanyModel
Sets the web ID of this company.

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

getOriginalWebId

public String getOriginalWebId()

getKey

@JSON
public String getKey()
Description copied from interface: CompanyModel
Returns the key of this company.

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

setKey

public void setKey(String key)
Description copied from interface: CompanyModel
Sets the key of this company.

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

getMx

@JSON
public String getMx()
Description copied from interface: CompanyModel
Returns the mx of this company.

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

setMx

public void setMx(String mx)
Description copied from interface: CompanyModel
Sets the mx of this company.

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

getOriginalMx

public String getOriginalMx()

getHomeURL

@JSON
public String getHomeURL()
Description copied from interface: CompanyModel
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)
Description copied from interface: CompanyModel
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

@JSON
public long getLogoId()
Description copied from interface: CompanyModel
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)
Description copied from interface: CompanyModel
Sets the logo ID of this company.

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

getOriginalLogoId

public long getOriginalLogoId()

getSystem

@JSON
public boolean getSystem()
Description copied from interface: CompanyModel
Returns the system of this company.

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

isSystem

public boolean isSystem()
Description copied from interface: CompanyModel
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)
Description copied from interface: CompanyModel
Sets whether this company is system.

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

getOriginalSystem

public boolean getOriginalSystem()

getMaxUsers

@JSON
public int getMaxUsers()
Description copied from interface: CompanyModel
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)
Description copied from interface: CompanyModel
Sets the max users of this company.

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

getActive

@JSON
public boolean getActive()
Description copied from interface: CompanyModel
Returns the active of this company.

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

isActive

public boolean isActive()
Description copied from interface: CompanyModel
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)
Description copied from interface: CompanyModel
Sets whether this company is active.

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

getKeyObj

public Key getKeyObj()

setKeyObj

public void setKeyObj(Key keyObj)

getColumnBitmask

public long getColumnBitmask()

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
Overrides:
getExpandoBridge in class BaseModelImpl<Company>
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
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Company>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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
Overrides:
toEscapedModel in class BaseModelImpl<Company>
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
Overrides:
toUnescapedModel in class BaseModelImpl<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
Specified by:
clone in class BaseModelImpl<Company>
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>

equals

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

hashCode

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<Company>
Overrides:
resetOriginalValues in class BaseModelImpl<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
Overrides:
toCacheModel in class BaseModelImpl<Company>
Returns:
the cache model object

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

Liferay 6.1.2-ce-ga3