Liferay 6.2-ce-ga5

com.liferay.portal.model.impl
Class LockModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Lock>
      extended by com.liferay.portal.model.impl.LockModelImpl
All Implemented Interfaces:
BaseModel<Lock>, ClassedModel, LockModel, Serializable, Cloneable, Comparable<Lock>
Direct Known Subclasses:
LockBaseImpl

public class LockModelImpl
extends BaseModelImpl<Lock>
implements LockModel

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

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

See Also:
LockImpl, Lock, LockModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static long CLASSNAME_COLUMN_BITMASK
           
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static long EXPIRATIONDATE_COLUMN_BITMASK
           
static boolean FINDER_CACHE_ENABLED
           
static long KEY_COLUMN_BITMASK
           
static long LOCK_EXPIRATION_TIME
           
static long LOCKID_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 UUID_COLUMN_BITMASK
           
 
Constructor Summary
LockModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Lock lock)
           
 boolean equals(Object obj)
           
 String getClassName()
          Returns the class name of this lock.
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this lock.
 Date getCreateDate()
          Returns the create date of this lock.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Date getExpirationDate()
          Returns the expiration date of this lock.
 boolean getInheritable()
          Returns the inheritable of this lock.
 String getKey()
          Returns the key of this lock.
 long getLockId()
          Returns the lock ID of this lock.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getOriginalClassName()
           
 long getOriginalCompanyId()
           
 Date getOriginalExpirationDate()
           
 String getOriginalKey()
           
 String getOriginalUuid()
           
 String getOwner()
          Returns the owner of this lock.
 long getPrimaryKey()
          Returns the primary key of this lock.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getUserId()
          Returns the user ID of this lock.
 String getUserName()
          Returns the user name of this lock.
 String getUserUuid()
          Returns the user uuid of this lock.
 String getUuid()
          Returns the uuid of this lock.
 int hashCode()
           
 boolean isInheritable()
          Returns true if this lock is inheritable.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setClassName(String className)
          Sets the class name of this lock.
 void setCompanyId(long companyId)
          Sets the company ID of this lock.
 void setCreateDate(Date createDate)
          Sets the create date of this lock.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setExpirationDate(Date expirationDate)
          Sets the expiration date of this lock.
 void setInheritable(boolean inheritable)
          Sets whether this lock is inheritable.
 void setKey(String key)
          Sets the key of this lock.
 void setLockId(long lockId)
          Sets the lock ID of this lock.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setOwner(String owner)
          Sets the owner of this lock.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this lock.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setUserId(long userId)
          Sets the user ID of this lock.
 void setUserName(String userName)
          Sets the user name of this lock.
 void setUserUuid(String userUuid)
          Sets the user uuid of this lock.
 void setUuid(String uuid)
          Sets the uuid of this lock.
 CacheModel<Lock> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Lock toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 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.LockModel
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

CLASSNAME_COLUMN_BITMASK

public static long CLASSNAME_COLUMN_BITMASK

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

EXPIRATIONDATE_COLUMN_BITMASK

public static long EXPIRATIONDATE_COLUMN_BITMASK

KEY_COLUMN_BITMASK

public static long KEY_COLUMN_BITMASK

UUID_COLUMN_BITMASK

public static long UUID_COLUMN_BITMASK

LOCKID_COLUMN_BITMASK

public static long LOCKID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

LockModelImpl

public LockModelImpl()
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: LockModel
Returns the primary key of this lock.

Specified by:
getPrimaryKey in interface LockModel
Returns:
the primary key of this lock

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: LockModel
Sets the primary key of this lock.

Specified by:
setPrimaryKey in interface LockModel
Parameters:
primaryKey - the primary key of this lock

getPrimaryKeyObj

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

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

setModelAttributes

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

getUuid

public String getUuid()
Description copied from interface: LockModel
Returns the uuid of this lock.

Specified by:
getUuid in interface LockModel
Returns:
the uuid of this lock

setUuid

public void setUuid(String uuid)
Description copied from interface: LockModel
Sets the uuid of this lock.

Specified by:
setUuid in interface LockModel
Parameters:
uuid - the uuid of this lock

getOriginalUuid

public String getOriginalUuid()

getLockId

public long getLockId()
Description copied from interface: LockModel
Returns the lock ID of this lock.

Specified by:
getLockId in interface LockModel
Returns:
the lock ID of this lock

setLockId

public void setLockId(long lockId)
Description copied from interface: LockModel
Sets the lock ID of this lock.

Specified by:
setLockId in interface LockModel
Parameters:
lockId - the lock ID of this lock

getCompanyId

public long getCompanyId()
Description copied from interface: LockModel
Returns the company ID of this lock.

Specified by:
getCompanyId in interface LockModel
Returns:
the company ID of this lock

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: LockModel
Sets the company ID of this lock.

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

getOriginalCompanyId

public long getOriginalCompanyId()

getUserId

public long getUserId()
Description copied from interface: LockModel
Returns the user ID of this lock.

Specified by:
getUserId in interface LockModel
Returns:
the user ID of this lock

setUserId

public void setUserId(long userId)
Description copied from interface: LockModel
Sets the user ID of this lock.

Specified by:
setUserId in interface LockModel
Parameters:
userId - the user ID of this lock

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: LockModel
Returns the user uuid of this lock.

Specified by:
getUserUuid in interface LockModel
Returns:
the user uuid of this lock
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: LockModel
Sets the user uuid of this lock.

Specified by:
setUserUuid in interface LockModel
Parameters:
userUuid - the user uuid of this lock

getUserName

public String getUserName()
Description copied from interface: LockModel
Returns the user name of this lock.

Specified by:
getUserName in interface LockModel
Returns:
the user name of this lock

setUserName

public void setUserName(String userName)
Description copied from interface: LockModel
Sets the user name of this lock.

Specified by:
setUserName in interface LockModel
Parameters:
userName - the user name of this lock

getCreateDate

public Date getCreateDate()
Description copied from interface: LockModel
Returns the create date of this lock.

Specified by:
getCreateDate in interface LockModel
Returns:
the create date of this lock

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: LockModel
Sets the create date of this lock.

Specified by:
setCreateDate in interface LockModel
Parameters:
createDate - the create date of this lock

getClassName

public String getClassName()
Description copied from interface: LockModel
Returns the class name of this lock.

Specified by:
getClassName in interface LockModel
Returns:
the class name of this lock

setClassName

public void setClassName(String className)
Description copied from interface: LockModel
Sets the class name of this lock.

Specified by:
setClassName in interface LockModel
Parameters:
className - the class name of this lock

getOriginalClassName

public String getOriginalClassName()

getKey

public String getKey()
Description copied from interface: LockModel
Returns the key of this lock.

Specified by:
getKey in interface LockModel
Returns:
the key of this lock

setKey

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

Specified by:
setKey in interface LockModel
Parameters:
key - the key of this lock

getOriginalKey

public String getOriginalKey()

getOwner

public String getOwner()
Description copied from interface: LockModel
Returns the owner of this lock.

Specified by:
getOwner in interface LockModel
Returns:
the owner of this lock

setOwner

public void setOwner(String owner)
Description copied from interface: LockModel
Sets the owner of this lock.

Specified by:
setOwner in interface LockModel
Parameters:
owner - the owner of this lock

getInheritable

public boolean getInheritable()
Description copied from interface: LockModel
Returns the inheritable of this lock.

Specified by:
getInheritable in interface LockModel
Returns:
the inheritable of this lock

isInheritable

public boolean isInheritable()
Description copied from interface: LockModel
Returns true if this lock is inheritable.

Specified by:
isInheritable in interface LockModel
Returns:
true if this lock is inheritable; false otherwise

setInheritable

public void setInheritable(boolean inheritable)
Description copied from interface: LockModel
Sets whether this lock is inheritable.

Specified by:
setInheritable in interface LockModel
Parameters:
inheritable - the inheritable of this lock

getExpirationDate

public Date getExpirationDate()
Description copied from interface: LockModel
Returns the expiration date of this lock.

Specified by:
getExpirationDate in interface LockModel
Returns:
the expiration date of this lock

setExpirationDate

public void setExpirationDate(Date expirationDate)
Description copied from interface: LockModel
Sets the expiration date of this lock.

Specified by:
setExpirationDate in interface LockModel
Parameters:
expirationDate - the expiration date of this lock

getOriginalExpirationDate

public Date getOriginalExpirationDate()

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

toEscapedModel

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

compareTo

public int compareTo(Lock lock)
Specified by:
compareTo in interface LockModel
Specified by:
compareTo in interface Comparable<Lock>

equals

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

hashCode

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

toCacheModel

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

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

toString

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

Liferay 6.2-ce-ga5