com.redhat.rhn.domain.config
Class ConfigContent

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.config.ConfigContent

public class ConfigContent
extends BaseDomainHelper

ConfigContent - Class representation of the table rhnConfigContent.


Constructor Summary
protected ConfigContent()
          protected constructor.
 
Method Summary
 byte[] getContents()
          Getter for contents
protected  java.sql.Blob getContentsBlob()
          Let Hibernate get the contents blob, used only by Hibernate.
 java.lang.String getContentsString()
          Get the String version of the Contents content
 java.lang.Long getFileSize()
          Getter for fileSize
 java.lang.Long getId()
          Getter for id
 java.lang.String getMd5sum()
          Getter for md5sum
 boolean isBinary()
          Getter for isBinary
 void setBinary(boolean isBinaryIn)
          Setter for isBinary
 void setContents(byte[] contentsIn)
          Setter for contents
protected  void setContentsBlob(java.sql.Blob blob)
          Let Hibernate set the Content Blob contents, used only by Hibernate.
 void setFileSize(java.lang.Long fileSizeIn)
          Setter for fileSize
 void setId(java.lang.Long idIn)
          Setter for id
 void setMd5sum(java.lang.String md5sumIn)
          Setter for md5sum
 
Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper
getCreated, getModified, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigContent

protected ConfigContent()
protected constructor. Use the ConfigurationFactory to get new ConfigContents

Method Detail

getId

public java.lang.Long getId()
Getter for id

Returns:
Long to get

setId

public void setId(java.lang.Long idIn)
Setter for id

Parameters:
idIn - to set

getContents

public byte[] getContents()
Getter for contents

Returns:
byte array to get

setContents

public void setContents(byte[] contentsIn)
Setter for contents

Parameters:
contentsIn - to set

getContentsBlob

protected java.sql.Blob getContentsBlob()
Let Hibernate get the contents blob, used only by Hibernate.

Returns:
Returns the script.

setContentsBlob

protected void setContentsBlob(java.sql.Blob blob)
Let Hibernate set the Content Blob contents, used only by Hibernate.

Parameters:
blob - The script to set.

getContentsString

public java.lang.String getContentsString()
Get the String version of the Contents content

Returns:
String version of the Contents content

getFileSize

public java.lang.Long getFileSize()
Getter for fileSize

Returns:
Long to get

setFileSize

public void setFileSize(java.lang.Long fileSizeIn)
Setter for fileSize

Parameters:
fileSizeIn - to set

getMd5sum

public java.lang.String getMd5sum()
Getter for md5sum

Returns:
String to get

setMd5sum

public void setMd5sum(java.lang.String md5sumIn)
Setter for md5sum

Parameters:
md5sumIn - to set

isBinary

public boolean isBinary()
Getter for isBinary

Returns:
String to get

setBinary

public void setBinary(boolean isBinaryIn)
Setter for isBinary

Parameters:
isBinaryIn - to set