org.opencms.db.jpa.persistence
Class CmsDAOResourceLocks

java.lang.Object
  extended by org.opencms.db.jpa.persistence.CmsDAOResourceLocks

@Entity
public class CmsDAOResourceLocks
extends java.lang.Object

This data access object represents a resource lock entry inside the table "cms_resource_locks".

Since:
8.0.0

Constructor Summary
CmsDAOResourceLocks()
          The default constructor.
CmsDAOResourceLocks(java.lang.String resourcePath)
          A public constructor for generating a new resource lock object with an unique id.
 
Method Summary
 int getLockType()
          Returns the lockType.
 java.lang.String getProjectId()
          Returns the projectId.
 java.lang.String getResourcePath()
          Returns the resourcePath.
 java.lang.String getUserId()
          Returns the userId.
 void setLockType(int lockType)
          Sets the lockType.
 void setProjectId(java.lang.String projectId)
          Sets the projectId.
 void setResourcePath(java.lang.String resourcePath)
          Sets the resourcePath.
 void setUserId(java.lang.String userId)
          Sets the userId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsDAOResourceLocks

public CmsDAOResourceLocks()
The default constructor.


CmsDAOResourceLocks

public CmsDAOResourceLocks(java.lang.String resourcePath)
A public constructor for generating a new resource lock object with an unique id.

Parameters:
resourcePath - the resource path
Method Detail

getLockType

public int getLockType()
Returns the lockType.

Returns:
the lockType

getProjectId

public java.lang.String getProjectId()
Returns the projectId.

Returns:
the projectId

getResourcePath

public java.lang.String getResourcePath()
Returns the resourcePath.

Returns:
the resourcePath

getUserId

public java.lang.String getUserId()
Returns the userId.

Returns:
the userId

setLockType

public void setLockType(int lockType)
Sets the lockType.

Parameters:
lockType - the lockType to set

setProjectId

public void setProjectId(java.lang.String projectId)
Sets the projectId.

Parameters:
projectId - the projectId to set

setResourcePath

public void setResourcePath(java.lang.String resourcePath)
Sets the resourcePath.

Parameters:
resourcePath - the resourcePath to set

setUserId

public void setUserId(java.lang.String userId)
Sets the userId.

Parameters:
userId - the userId to set