org.opencms.db.jpa.persistence
Class CmsDAOUserData

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

@Entity
public class CmsDAOUserData
extends java.lang.Object

This data access object represents a user data entry inside the table "cms_userdata".

Since:
8.0.0

Nested Class Summary
static class CmsDAOUserData.CmsDAOUserDataPK
          This class implements the primary key for a user data entry in the table "cms_userdata".
 
Constructor Summary
CmsDAOUserData()
          The default constructor.
CmsDAOUserData(java.lang.String dataKey, java.lang.String userId)
          A public constructor for generating a new user data object with an unique id.
 
Method Summary
 java.lang.String getDataKey()
          Returns the dataKey.
 java.lang.String getDataType()
          Returns the dataType.
 byte[] getDataValue()
          Returns the dataValue.
 java.lang.String getUserId()
          Returns the userId.
 void setDataKey(java.lang.String dataKey)
          Sets the dataKey.
 void setDataType(java.lang.String dataType)
          Sets the dataType.
 void setDataValue(byte[] dataValue)
          Sets the dataValue.
 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

CmsDAOUserData

public CmsDAOUserData()
The default constructor.


CmsDAOUserData

public CmsDAOUserData(java.lang.String dataKey,
                      java.lang.String userId)
A public constructor for generating a new user data object with an unique id.

Parameters:
dataKey - the data key
userId - the user id
Method Detail

getDataKey

public java.lang.String getDataKey()
Returns the dataKey.

Returns:
the dataKey

getDataType

public java.lang.String getDataType()
Returns the dataType.

Returns:
the dataType

getDataValue

public byte[] getDataValue()
Returns the dataValue.

Returns:
the dataValue

getUserId

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

Returns:
the userId

setDataKey

public void setDataKey(java.lang.String dataKey)
Sets the dataKey.

Parameters:
dataKey - the dataKey to set

setDataType

public void setDataType(java.lang.String dataType)
Sets the dataType.

Parameters:
dataType - the dataType to set

setDataValue

public void setDataValue(byte[] dataValue)
Sets the dataValue.

Parameters:
dataValue - the dataValue to set

setUserId

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

Parameters:
userId - the userId to set