Class ReportDocument

All Implemented Interfaces:
Serializable, quadbase.common.util.internal.IReportDocument

public class ReportDocument extends ReportCell implements quadbase.common.util.internal.IReportDocument, Serializable
This class is used to represent a clob(Character large object). If the clob is less than MAX_CHAR long, then it's content is stored in a String in the object, otherwise the clob is stored in a file and the filename is stored in the object.
See Also:
  • Field Details

  • Constructor Details

    • ReportDocument

      public ReportDocument()
      allocates a new ReportDocument
    • ReportDocument

      public ReportDocument(String name)
      allocates a new ReportDocument with specified name
    • ReportDocument

      public ReportDocument(ReportColumn _col, int index)
      allocates a new ReportDocument to be located at specified column and position index
  • Method Details

    • setTextString

      public void setTextString(String text)
      Sets the text of this document to the specified String
      Specified by:
      setTextString in interface quadbase.common.util.internal.IReportDocument
    • getTextString

      public String getTextString()
      gets the text of this document as a String
      Specified by:
      getTextString in interface quadbase.common.util.internal.IReportDocument
    • setRelativePath

      public void setRelativePath(String rpath)
      Sets where to find the file that contains the data for the document
      Specified by:
      setRelativePath in interface quadbase.common.util.internal.IReportDocument
    • getRelativePath

      public String getRelativePath()
      Gets the relative path to the file that contains the data for the document
      Specified by:
      getRelativePath in interface quadbase.common.util.internal.IReportDocument
    • setText

      public void setText()
      internal use only
      Specified by:
      setText in interface quadbase.common.util.internal.IReportDocument
    • write

      public void write(DataOutput out) throws IOException
      internal use only
      Overrides:
      write in class ReportCell
      Throws:
      IOException
    • writeXML

      public void writeXML(Writer out, boolean writeElementTag) throws IOException
      internal use only
      Overrides:
      writeXML in class ReportCell
      Throws:
      IOException
    • createDocument

      public static ReportDocument createDocument(DataInput in, int version) throws Exception
      internal use only
      Throws:
      Exception
    • read

      public void read(DataInput in, int version) throws Exception
      internal use only
      Overrides:
      read in class ReportCell
      Throws:
      Exception
    • createDocument

      public static ReportDocument createDocument(Node node, int version) throws Exception
      internal use only
      Throws:
      Exception
    • readXML

      public void readXML(Node node, int version) throws Exception
      internal use only
      Overrides:
      readXML in class ReportCell
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object