Liferay 6.0.5

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>, LockModel, Serializable, Cloneable, Comparable<Lock>
Direct Known Subclasses:
LockImpl

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.

Never modify or reference this class directly. All methods that expect a lock model instance should use the Lock interface instead.

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

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
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
           
 
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()
          Gets the class name of this lock.
 long getCompanyId()
          Gets the company id of this lock.
 Date getCreateDate()
          Gets the create date of this lock.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 Date getExpirationDate()
          Gets the expiration date of this lock.
 boolean getInheritable()
          Gets the inheritable of this lock.
 String getKey()
          Gets the key of this lock.
 long getLockId()
          Gets the lock id of this lock.
 String getOriginalClassName()
           
 String getOriginalKey()
           
 String getOwner()
          Gets the owner of this lock.
 long getPrimaryKey()
          Gets the primary key of this lock.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 long getUserId()
          Gets the user id of this lock.
 String getUserName()
          Gets the user name of this lock.
 String getUserUuid()
          Gets the user uuid of this lock.
 String getUuid()
          Gets the uuid of this lock.
 int hashCode()
           
 boolean isInheritable()
          Determines whether this lock is inheritable.
 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 {$entity.humanName} is inheritable.
 void setKey(String key)
          Sets the key of this lock.
 void setLockId(long lockId)
          Sets the lock id of this lock.
 void setOwner(String owner)
          Sets the owner of this lock.
 void setPrimaryKey(long pk)
          Sets the primary key of this lock
 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.
 Lock toEscapedModel()
          Gets a copy of this lock as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
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, setEscapedModel, 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

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
Gets the primary key of this lock.

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

setPrimaryKey

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

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

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<Lock>
Specified by:
getPrimaryKeyObj in interface LockModel
Returns:
the primary key of this model instance

getUuid

public String getUuid()
Description copied from interface: LockModel
Gets 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

getLockId

public long getLockId()
Description copied from interface: LockModel
Gets 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
Gets 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

getUserId

public long getUserId()
Description copied from interface: LockModel
Gets 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
Gets 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
Gets 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
Gets 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
Gets 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
Gets 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
Gets 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
Gets 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
Determines whether this lock is inheritable.

Specified by:
isInheritable in interface LockModel
Returns:
whether this lock is inheritable

setInheritable

public void setInheritable(boolean inheritable)
Description copied from interface: LockModel
Sets whether this {$entity.humanName} is inheritable.

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

getExpirationDate

public Date getExpirationDate()
Description copied from interface: LockModel
Gets 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

toEscapedModel

public Lock toEscapedModel()
Description copied from interface: LockModel
Gets a copy of this lock as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface LockModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<Lock>
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 retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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

toString

public String toString()
Specified by:
toString in interface LockModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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.0.5