Liferay 6.1.2-ce-ga3

com.liferay.portlet.expando.model.impl
Class ExpandoColumnModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<ExpandoColumn>
      extended by com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl
All Implemented Interfaces:
BaseModel<ExpandoColumn>, ClassedModel, ExpandoColumnModel, Serializable, Cloneable, Comparable<ExpandoColumn>
Direct Known Subclasses:
ExpandoColumnBaseImpl

@JSON(strict=true)
public class ExpandoColumnModelImpl
extends BaseModelImpl<ExpandoColumn>
implements ExpandoColumnModel

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

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

See Also:
ExpandoColumnImpl, ExpandoColumn, ExpandoColumnModel, 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 NAME_COLUMN_BITMASK
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static long TABLEID_COLUMN_BITMASK
           
static String TX_MANAGER
           
 
Constructor Summary
ExpandoColumnModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ExpandoColumn expandoColumn)
           
 boolean equals(Object obj)
           
 long getColumnBitmask()
           
 long getColumnId()
          Returns the column ID of this expando column.
 long getCompanyId()
          Returns the company ID of this expando column.
 String getDefaultData()
          Returns the default data of this expando column.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this expando column.
 String getOriginalName()
           
 long getOriginalTableId()
           
 long getPrimaryKey()
          Returns the primary key of this expando column.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getTableId()
          Returns the table ID of this expando column.
 int getType()
          Returns the type of this expando column.
 String getTypeSettings()
          Returns the type settings of this expando column.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setColumnId(long columnId)
          Sets the column ID of this expando column.
 void setCompanyId(long companyId)
          Sets the company ID of this expando column.
 void setDefaultData(String defaultData)
          Sets the default data of this expando column.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this expando column.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this expando column.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setTableId(long tableId)
          Sets the table ID of this expando column.
 void setType(int type)
          Sets the type of this expando column.
 void setTypeSettings(String typeSettings)
          Sets the type settings of this expando column.
 CacheModel<ExpandoColumn> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 ExpandoColumn toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static ExpandoColumn toModel(ExpandoColumnSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<ExpandoColumn> toModels(ExpandoColumnSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 ExpandoColumn toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getExpandoBridge, getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.expando.model.ExpandoColumnModel
getExpandoBridge, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, 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

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
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

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

TABLEID_COLUMN_BITMASK

public static long TABLEID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

ExpandoColumnModelImpl

public ExpandoColumnModelImpl()
Method Detail

toModel

public static ExpandoColumn toModel(ExpandoColumnSoap 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<ExpandoColumn> toModels(ExpandoColumnSoap[] 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: ExpandoColumnModel
Returns the primary key of this expando column.

Specified by:
getPrimaryKey in interface ExpandoColumnModel
Returns:
the primary key of this expando column

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: ExpandoColumnModel
Sets the primary key of this expando column.

Specified by:
setPrimaryKey in interface ExpandoColumnModel
Parameters:
primaryKey - the primary key of this expando column

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<ExpandoColumn>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ExpandoColumnModel
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<ExpandoColumn>
Overrides:
getModelAttributes in class BaseModelImpl<ExpandoColumn>

setModelAttributes

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

getColumnId

@JSON
public long getColumnId()
Description copied from interface: ExpandoColumnModel
Returns the column ID of this expando column.

Specified by:
getColumnId in interface ExpandoColumnModel
Returns:
the column ID of this expando column

setColumnId

public void setColumnId(long columnId)
Description copied from interface: ExpandoColumnModel
Sets the column ID of this expando column.

Specified by:
setColumnId in interface ExpandoColumnModel
Parameters:
columnId - the column ID of this expando column

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: ExpandoColumnModel
Returns the company ID of this expando column.

Specified by:
getCompanyId in interface ExpandoColumnModel
Returns:
the company ID of this expando column

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: ExpandoColumnModel
Sets the company ID of this expando column.

Specified by:
setCompanyId in interface ExpandoColumnModel
Parameters:
companyId - the company ID of this expando column

getTableId

@JSON
public long getTableId()
Description copied from interface: ExpandoColumnModel
Returns the table ID of this expando column.

Specified by:
getTableId in interface ExpandoColumnModel
Returns:
the table ID of this expando column

setTableId

public void setTableId(long tableId)
Description copied from interface: ExpandoColumnModel
Sets the table ID of this expando column.

Specified by:
setTableId in interface ExpandoColumnModel
Parameters:
tableId - the table ID of this expando column

getOriginalTableId

public long getOriginalTableId()

getName

@JSON
public String getName()
Description copied from interface: ExpandoColumnModel
Returns the name of this expando column.

Specified by:
getName in interface ExpandoColumnModel
Returns:
the name of this expando column

setName

public void setName(String name)
Description copied from interface: ExpandoColumnModel
Sets the name of this expando column.

Specified by:
setName in interface ExpandoColumnModel
Parameters:
name - the name of this expando column

getOriginalName

public String getOriginalName()

getType

@JSON
public int getType()
Description copied from interface: ExpandoColumnModel
Returns the type of this expando column.

Specified by:
getType in interface ExpandoColumnModel
Returns:
the type of this expando column

setType

public void setType(int type)
Description copied from interface: ExpandoColumnModel
Sets the type of this expando column.

Specified by:
setType in interface ExpandoColumnModel
Parameters:
type - the type of this expando column

getDefaultData

@JSON
public String getDefaultData()
Description copied from interface: ExpandoColumnModel
Returns the default data of this expando column.

Specified by:
getDefaultData in interface ExpandoColumnModel
Returns:
the default data of this expando column

setDefaultData

public void setDefaultData(String defaultData)
Description copied from interface: ExpandoColumnModel
Sets the default data of this expando column.

Specified by:
setDefaultData in interface ExpandoColumnModel
Parameters:
defaultData - the default data of this expando column

getTypeSettings

@JSON
public String getTypeSettings()
Description copied from interface: ExpandoColumnModel
Returns the type settings of this expando column.

Specified by:
getTypeSettings in interface ExpandoColumnModel
Returns:
the type settings of this expando column

setTypeSettings

public void setTypeSettings(String typeSettings)
Description copied from interface: ExpandoColumnModel
Sets the type settings of this expando column.

Specified by:
setTypeSettings in interface ExpandoColumnModel
Parameters:
typeSettings - the type settings of this expando column

getColumnBitmask

public long getColumnBitmask()

toEscapedModel

public ExpandoColumn 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<ExpandoColumn>
Specified by:
toEscapedModel in interface ExpandoColumnModel
Overrides:
toEscapedModel in class BaseModelImpl<ExpandoColumn>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ExpandoColumn toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ExpandoColumn>
Specified by:
toUnescapedModel in interface ExpandoColumnModel
Overrides:
toUnescapedModel in class BaseModelImpl<ExpandoColumn>

clone

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

Specified by:
clone in interface BaseModel<ExpandoColumn>
Specified by:
clone in interface ExpandoColumnModel
Specified by:
clone in class BaseModelImpl<ExpandoColumn>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ExpandoColumn expandoColumn)
Specified by:
compareTo in interface ExpandoColumnModel
Specified by:
compareTo in interface Comparable<ExpandoColumn>

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface ExpandoColumnModel
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<ExpandoColumn>
Overrides:
resetOriginalValues in class BaseModelImpl<ExpandoColumn>

toCacheModel

public CacheModel<ExpandoColumn> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<ExpandoColumn>
Specified by:
toCacheModel in interface ExpandoColumnModel
Overrides:
toCacheModel in class BaseModelImpl<ExpandoColumn>
Returns:
the cache model object

toString

public String toString()
Specified by:
toString in interface ExpandoColumnModel
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<ExpandoColumn>
Specified by:
toXmlString in interface ExpandoColumnModel
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3