org.opencms.db.jpa.persistence
Class CmsDAOContents

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

@Entity
public class CmsDAOContents
extends java.lang.Object

This data access object represents a cms contents entry inside the table "cms_contents".

Since:
8.0.0

Nested Class Summary
static class CmsDAOContents.CmsDAOContentsPK
          This class implements the primary key for a opencms content entry in the table "cms_contents".
 
Constructor Summary
CmsDAOContents()
          The public constructor.
CmsDAOContents(int publishTagFrom, java.lang.String resourceId)
          A public constructor for generating a new contents object with an unique id.
 
Method Summary
 byte[] getFileContent()
          Returns the file contents.
 int getOnlineFlag()
          Returns the online flag.
 int getPublishTagFrom()
          Returns the publish tag from.
 int getPublishTagTo()
          Returns the publish tag to.
 java.lang.String getResourceId()
          Returns the resource id.
 void setFileContent(byte[] fileContent)
          Sets the file contents.
 void setOnlineFlag(int onlineFlag)
          Sets the online flag.
 void setPublishTagFrom(int publishTagFrom)
          Sets the publish tag from.
 void setPublishTagTo(int publishTagTo)
          Sets the publish tag to.
 void setResourceId(java.lang.String resourceId)
          Sets the resource id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsDAOContents

public CmsDAOContents()
The public constructor.


CmsDAOContents

public CmsDAOContents(int publishTagFrom,
                      java.lang.String resourceId)
A public constructor for generating a new contents object with an unique id.

Parameters:
publishTagFrom - the publish tag from
resourceId - the resource id from
Method Detail

getFileContent

public byte[] getFileContent()
Returns the file contents.

Returns:
the file contents

getOnlineFlag

public int getOnlineFlag()
Returns the online flag.

Returns:
the online flag

getPublishTagFrom

public int getPublishTagFrom()
Returns the publish tag from.

Returns:
the publish tag from

getPublishTagTo

public int getPublishTagTo()
Returns the publish tag to.

Returns:
the publish flag to

getResourceId

public java.lang.String getResourceId()
Returns the resource id.

Returns:
the resource id

setFileContent

public void setFileContent(byte[] fileContent)
Sets the file contents.

Parameters:
fileContent - the content to set

setOnlineFlag

public void setOnlineFlag(int onlineFlag)
Sets the online flag.

Parameters:
onlineFlag - the flag to set

setPublishTagFrom

public void setPublishTagFrom(int publishTagFrom)
Sets the publish tag from.

Parameters:
publishTagFrom - the publish tag to set

setPublishTagTo

public void setPublishTagTo(int publishTagTo)
Sets the publish tag to.

Parameters:
publishTagTo - the flag to set

setResourceId

public void setResourceId(java.lang.String resourceId)
Sets the resource id.

Parameters:
resourceId - the resource id to set