Liferay 6.2-ce-ga5

com.liferay.portal.model.impl
Class BackgroundTaskModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<BackgroundTask>
      extended by com.liferay.portal.model.impl.BackgroundTaskModelImpl
All Implemented Interfaces:
AuditedModel, BackgroundTaskModel, BaseModel<BackgroundTask>, ClassedModel, GroupedModel, Serializable, Cloneable, Comparable<BackgroundTask>
Direct Known Subclasses:
BackgroundTaskBaseImpl

@JSON(strict=true)
public class BackgroundTaskModelImpl
extends BaseModelImpl<BackgroundTask>
implements BackgroundTaskModel

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

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

See Also:
BackgroundTaskImpl, BackgroundTask, BackgroundTaskModel, 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 long COMPANYID_COLUMN_BITMASK
           
static long COMPLETED_COLUMN_BITMASK
           
static long CREATEDATE_COLUMN_BITMASK
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long GROUPID_COLUMN_BITMASK
           
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 long STATUS_COLUMN_BITMASK
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static long TASKEXECUTORCLASSNAME_COLUMN_BITMASK
           
static String TX_MANAGER
           
 
Constructor Summary
BackgroundTaskModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(BackgroundTask backgroundTask)
           
 boolean equals(Object obj)
           
 long getBackgroundTaskId()
          Returns the background task ID of this background task.
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this background task.
 boolean getCompleted()
          Returns the completed of this background task.
 Date getCompletionDate()
          Returns the completion date of this background task.
 Date getCreateDate()
          Returns the create date of this background task.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this background task.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this background task.
 String getName()
          Returns the name of this background task.
 long getOriginalCompanyId()
           
 boolean getOriginalCompleted()
           
 long getOriginalGroupId()
           
 String getOriginalName()
           
 int getOriginalStatus()
           
 String getOriginalTaskExecutorClassName()
           
 long getPrimaryKey()
          Returns the primary key of this background task.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getServletContextNames()
          Returns the servlet context names of this background task.
 int getStatus()
          Returns the status of this background task.
 String getStatusMessage()
          Returns the status message of this background task.
 String getTaskContext()
          Returns the task context of this background task.
 String getTaskExecutorClassName()
          Returns the task executor class name of this background task.
 long getUserId()
          Returns the user ID of this background task.
 String getUserName()
          Returns the user name of this background task.
 String getUserUuid()
          Returns the user uuid of this background task.
 int hashCode()
           
 boolean isCompleted()
          Returns true if this background task is completed.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setBackgroundTaskId(long backgroundTaskId)
          Sets the background task ID of this background task.
 void setCompanyId(long companyId)
          Sets the company ID of this background task.
 void setCompleted(boolean completed)
          Sets whether this background task is completed.
 void setCompletionDate(Date completionDate)
          Sets the completion date of this background task.
 void setCreateDate(Date createDate)
          Sets the create date of this background task.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setGroupId(long groupId)
          Sets the group ID of this background task.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this background task.
 void setName(String name)
          Sets the name of this background task.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this background task.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setServletContextNames(String servletContextNames)
          Sets the servlet context names of this background task.
 void setStatus(int status)
          Sets the status of this background task.
 void setStatusMessage(String statusMessage)
          Sets the status message of this background task.
 void setTaskContext(String taskContext)
          Sets the task context of this background task.
 void setTaskExecutorClassName(String taskExecutorClassName)
          Sets the task executor class name of this background task.
 void setUserId(long userId)
          Sets the user ID of this background task.
 void setUserName(String userName)
          Sets the user name of this background task.
 void setUserUuid(String userUuid)
          Sets the user uuid of this background task.
 CacheModel<BackgroundTask> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 BackgroundTask toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static BackgroundTask toModel(BackgroundTaskSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<BackgroundTask> toModels(BackgroundTaskSoap[] 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
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, 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.BackgroundTaskModel
isCachedModel, isEscapedModel, isNew, setCachedModel, 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

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

COMPLETED_COLUMN_BITMASK

public static long COMPLETED_COLUMN_BITMASK

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

STATUS_COLUMN_BITMASK

public static long STATUS_COLUMN_BITMASK

TASKEXECUTORCLASSNAME_COLUMN_BITMASK

public static long TASKEXECUTORCLASSNAME_COLUMN_BITMASK

CREATEDATE_COLUMN_BITMASK

public static long CREATEDATE_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

BackgroundTaskModelImpl

public BackgroundTaskModelImpl()
Method Detail

toModel

public static BackgroundTask toModel(BackgroundTaskSoap 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<BackgroundTask> toModels(BackgroundTaskSoap[] 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: BackgroundTaskModel
Returns the primary key of this background task.

Specified by:
getPrimaryKey in interface BackgroundTaskModel
Returns:
the primary key of this background task

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: BackgroundTaskModel
Sets the primary key of this background task.

Specified by:
setPrimaryKey in interface BackgroundTaskModel
Parameters:
primaryKey - the primary key of this background task

getPrimaryKeyObj

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

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

setModelAttributes

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

getBackgroundTaskId

@JSON
public long getBackgroundTaskId()
Description copied from interface: BackgroundTaskModel
Returns the background task ID of this background task.

Specified by:
getBackgroundTaskId in interface BackgroundTaskModel
Returns:
the background task ID of this background task

setBackgroundTaskId

public void setBackgroundTaskId(long backgroundTaskId)
Description copied from interface: BackgroundTaskModel
Sets the background task ID of this background task.

Specified by:
setBackgroundTaskId in interface BackgroundTaskModel
Parameters:
backgroundTaskId - the background task ID of this background task

getGroupId

@JSON
public long getGroupId()
Description copied from interface: BackgroundTaskModel
Returns the group ID of this background task.

Specified by:
getGroupId in interface BackgroundTaskModel
Specified by:
getGroupId in interface GroupedModel
Returns:
the group ID of this background task

setGroupId

public void setGroupId(long groupId)
Description copied from interface: BackgroundTaskModel
Sets the group ID of this background task.

Specified by:
setGroupId in interface BackgroundTaskModel
Specified by:
setGroupId in interface GroupedModel
Parameters:
groupId - the group ID of this background task

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: BackgroundTaskModel
Returns the company ID of this background task.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface BackgroundTaskModel
Returns:
the company ID of this background task

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: BackgroundTaskModel
Sets the company ID of this background task.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface BackgroundTaskModel
Parameters:
companyId - the company ID of this background task

getOriginalCompanyId

public long getOriginalCompanyId()

getUserId

@JSON
public long getUserId()
Description copied from interface: BackgroundTaskModel
Returns the user ID of this background task.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface BackgroundTaskModel
Returns:
the user ID of this background task

setUserId

public void setUserId(long userId)
Description copied from interface: BackgroundTaskModel
Sets the user ID of this background task.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface BackgroundTaskModel
Parameters:
userId - the user ID of this background task

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: BackgroundTaskModel
Returns the user uuid of this background task.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface BackgroundTaskModel
Returns:
the user uuid of this background task
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: BackgroundTaskModel
Sets the user uuid of this background task.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface BackgroundTaskModel
Parameters:
userUuid - the user uuid of this background task

getUserName

@JSON
public String getUserName()
Description copied from interface: BackgroundTaskModel
Returns the user name of this background task.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface BackgroundTaskModel
Returns:
the user name of this background task

setUserName

public void setUserName(String userName)
Description copied from interface: BackgroundTaskModel
Sets the user name of this background task.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface BackgroundTaskModel
Parameters:
userName - the user name of this background task

getCreateDate

@JSON
public Date getCreateDate()
Description copied from interface: BackgroundTaskModel
Returns the create date of this background task.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface BackgroundTaskModel
Returns:
the create date of this background task

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: BackgroundTaskModel
Sets the create date of this background task.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface BackgroundTaskModel
Parameters:
createDate - the create date of this background task

getModifiedDate

@JSON
public Date getModifiedDate()
Description copied from interface: BackgroundTaskModel
Returns the modified date of this background task.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface BackgroundTaskModel
Returns:
the modified date of this background task

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: BackgroundTaskModel
Sets the modified date of this background task.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface BackgroundTaskModel
Parameters:
modifiedDate - the modified date of this background task

getName

@JSON
public String getName()
Description copied from interface: BackgroundTaskModel
Returns the name of this background task.

Specified by:
getName in interface BackgroundTaskModel
Returns:
the name of this background task

setName

public void setName(String name)
Description copied from interface: BackgroundTaskModel
Sets the name of this background task.

Specified by:
setName in interface BackgroundTaskModel
Parameters:
name - the name of this background task

getOriginalName

public String getOriginalName()

getServletContextNames

@JSON
public String getServletContextNames()
Description copied from interface: BackgroundTaskModel
Returns the servlet context names of this background task.

Specified by:
getServletContextNames in interface BackgroundTaskModel
Returns:
the servlet context names of this background task

setServletContextNames

public void setServletContextNames(String servletContextNames)
Description copied from interface: BackgroundTaskModel
Sets the servlet context names of this background task.

Specified by:
setServletContextNames in interface BackgroundTaskModel
Parameters:
servletContextNames - the servlet context names of this background task

getTaskExecutorClassName

@JSON
public String getTaskExecutorClassName()
Description copied from interface: BackgroundTaskModel
Returns the task executor class name of this background task.

Specified by:
getTaskExecutorClassName in interface BackgroundTaskModel
Returns:
the task executor class name of this background task

setTaskExecutorClassName

public void setTaskExecutorClassName(String taskExecutorClassName)
Description copied from interface: BackgroundTaskModel
Sets the task executor class name of this background task.

Specified by:
setTaskExecutorClassName in interface BackgroundTaskModel
Parameters:
taskExecutorClassName - the task executor class name of this background task

getOriginalTaskExecutorClassName

public String getOriginalTaskExecutorClassName()

getTaskContext

@JSON
public String getTaskContext()
Description copied from interface: BackgroundTaskModel
Returns the task context of this background task.

Specified by:
getTaskContext in interface BackgroundTaskModel
Returns:
the task context of this background task

setTaskContext

public void setTaskContext(String taskContext)
Description copied from interface: BackgroundTaskModel
Sets the task context of this background task.

Specified by:
setTaskContext in interface BackgroundTaskModel
Parameters:
taskContext - the task context of this background task

getCompleted

@JSON
public boolean getCompleted()
Description copied from interface: BackgroundTaskModel
Returns the completed of this background task.

Specified by:
getCompleted in interface BackgroundTaskModel
Returns:
the completed of this background task

isCompleted

public boolean isCompleted()
Description copied from interface: BackgroundTaskModel
Returns true if this background task is completed.

Specified by:
isCompleted in interface BackgroundTaskModel
Returns:
true if this background task is completed; false otherwise

setCompleted

public void setCompleted(boolean completed)
Description copied from interface: BackgroundTaskModel
Sets whether this background task is completed.

Specified by:
setCompleted in interface BackgroundTaskModel
Parameters:
completed - the completed of this background task

getOriginalCompleted

public boolean getOriginalCompleted()

getCompletionDate

@JSON
public Date getCompletionDate()
Description copied from interface: BackgroundTaskModel
Returns the completion date of this background task.

Specified by:
getCompletionDate in interface BackgroundTaskModel
Returns:
the completion date of this background task

setCompletionDate

public void setCompletionDate(Date completionDate)
Description copied from interface: BackgroundTaskModel
Sets the completion date of this background task.

Specified by:
setCompletionDate in interface BackgroundTaskModel
Parameters:
completionDate - the completion date of this background task

getStatus

@JSON
public int getStatus()
Description copied from interface: BackgroundTaskModel
Returns the status of this background task.

Specified by:
getStatus in interface BackgroundTaskModel
Returns:
the status of this background task

setStatus

public void setStatus(int status)
Description copied from interface: BackgroundTaskModel
Sets the status of this background task.

Specified by:
setStatus in interface BackgroundTaskModel
Parameters:
status - the status of this background task

getOriginalStatus

public int getOriginalStatus()

getStatusMessage

@JSON
public String getStatusMessage()
Description copied from interface: BackgroundTaskModel
Returns the status message of this background task.

Specified by:
getStatusMessage in interface BackgroundTaskModel
Returns:
the status message of this background task

setStatusMessage

public void setStatusMessage(String statusMessage)
Description copied from interface: BackgroundTaskModel
Sets the status message of this background task.

Specified by:
setStatusMessage in interface BackgroundTaskModel
Parameters:
statusMessage - the status message of this background task

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 BackgroundTaskModel
Specified by:
getExpandoBridge in interface BaseModel<BackgroundTask>
Specified by:
getExpandoBridge in interface ClassedModel
Overrides:
getExpandoBridge in class BaseModelImpl<BackgroundTask>
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 BackgroundTaskModel
Specified by:
setExpandoBridgeAttributes in interface BaseModel<BackgroundTask>
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<BackgroundTask>
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

public BackgroundTask 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 BackgroundTaskModel
Specified by:
toEscapedModel in interface BaseModel<BackgroundTask>
Overrides:
toEscapedModel in class BaseModelImpl<BackgroundTask>
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 BackgroundTaskModel
Specified by:
clone in interface BaseModel<BackgroundTask>
Specified by:
clone in class BaseModelImpl<BackgroundTask>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(BackgroundTask backgroundTask)
Specified by:
compareTo in interface BackgroundTaskModel
Specified by:
compareTo in interface Comparable<BackgroundTask>

equals

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

hashCode

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

toCacheModel

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

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

toString

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

Liferay 6.2-ce-ga5