Liferay 6.2-ce-ga5

com.liferay.portal.model.impl
Class ListTypeModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<ListType>
      extended by com.liferay.portal.model.impl.ListTypeModelImpl
All Implemented Interfaces:
BaseModel<ListType>, ClassedModel, ListTypeModel, Serializable, Cloneable, Comparable<ListType>
Direct Known Subclasses:
ListTypeBaseImpl

@JSON(strict=true)
public class ListTypeModelImpl
extends BaseModelImpl<ListType>
implements ListTypeModel

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

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

See Also:
ListTypeImpl, ListType, ListTypeModel, 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 String TX_MANAGER
           
static long TYPE_COLUMN_BITMASK
           
 
Constructor Summary
ListTypeModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ListType listType)
           
 boolean equals(Object obj)
           
 long getColumnBitmask()
           
 int getListTypeId()
          Returns the list type ID of this list type.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this list type.
 String getOriginalType()
           
 int getPrimaryKey()
          Returns the primary key of this list type.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getType()
          Returns the type of this list type.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setListTypeId(int listTypeId)
          Sets the list type ID of this list type.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this list type.
 void setPrimaryKey(int primaryKey)
          Sets the primary key of this list type.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setType(String type)
          Sets the type of this list type.
 CacheModel<ListType> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 ListType toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static ListType toModel(ListTypeSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<ListType> toModels(ListTypeSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.ListTypeModel
getExpandoBridge, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 

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

TYPE_COLUMN_BITMASK

public static long TYPE_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

ListTypeModelImpl

public ListTypeModelImpl()
Method Detail

toModel

public static ListType toModel(ListTypeSoap 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<ListType> toModels(ListTypeSoap[] 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 int getPrimaryKey()
Description copied from interface: ListTypeModel
Returns the primary key of this list type.

Specified by:
getPrimaryKey in interface ListTypeModel
Returns:
the primary key of this list type

setPrimaryKey

public void setPrimaryKey(int primaryKey)
Description copied from interface: ListTypeModel
Sets the primary key of this list type.

Specified by:
setPrimaryKey in interface ListTypeModel
Parameters:
primaryKey - the primary key of this list type

getPrimaryKeyObj

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

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

setModelAttributes

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

getListTypeId

@JSON
public int getListTypeId()
Description copied from interface: ListTypeModel
Returns the list type ID of this list type.

Specified by:
getListTypeId in interface ListTypeModel
Returns:
the list type ID of this list type

setListTypeId

public void setListTypeId(int listTypeId)
Description copied from interface: ListTypeModel
Sets the list type ID of this list type.

Specified by:
setListTypeId in interface ListTypeModel
Parameters:
listTypeId - the list type ID of this list type

getName

@JSON
public String getName()
Description copied from interface: ListTypeModel
Returns the name of this list type.

Specified by:
getName in interface ListTypeModel
Returns:
the name of this list type

setName

public void setName(String name)
Description copied from interface: ListTypeModel
Sets the name of this list type.

Specified by:
setName in interface ListTypeModel
Parameters:
name - the name of this list type

getType

@JSON
public String getType()
Description copied from interface: ListTypeModel
Returns the type of this list type.

Specified by:
getType in interface ListTypeModel
Returns:
the type of this list type

setType

public void setType(String type)
Description copied from interface: ListTypeModel
Sets the type of this list type.

Specified by:
setType in interface ListTypeModel
Parameters:
type - the type of this list type

getOriginalType

public String getOriginalType()

getColumnBitmask

public long getColumnBitmask()

toEscapedModel

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

clone

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

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

compareTo

public int compareTo(ListType listType)
Specified by:
compareTo in interface ListTypeModel
Specified by:
compareTo in interface Comparable<ListType>

equals

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

hashCode

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

toCacheModel

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

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

toString

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

Liferay 6.2-ce-ga5