Class DBClobData

java.lang.Object
org.apache.empire.db.DBClobData

public class DBClobData extends Object
This class allocates methods to store binary character objects in the database.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DBClobData(Reader reader, int length)
    Constructor to pass LOB data to the setValue methods of a record, consisting of the input stream where the data can be loaded from and the length of the data.
    Constructor for LobData from a string.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the length of the CLOB data in characters.
    Get the Reader for the large string
    Returns a CLOB String.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DBClobData

      public DBClobData(Reader reader, int length) throws IllegalArgumentException
      Constructor to pass LOB data to the setValue methods of a record, consisting of the input stream where the data can be loaded from and the length of the data.
      Parameters:
      reader - The reader where the character data will be read from
      length - The number of characters to read from the reader
      Throws:
      IllegalArgumentException - If the reader is null
    • DBClobData

      public DBClobData(String text) throws IllegalArgumentException
      Constructor for LobData from a string.
      Parameters:
      text - The string to be used as data
      Throws:
      IllegalArgumentException - If the text is null
  • Method Details

    • getReader

      public Reader getReader()
      Get the Reader for the large string
      Returns:
      Returns the reader with the character data for the CLOB
    • getLength

      public int getLength()
      Returns the length of the CLOB data in characters.
      Returns:
      Returns the length of the CLOB data in characters
    • toString

      public String toString()
      Returns a CLOB String.
      Overrides:
      toString in class Object
      Returns:
      Returns CLOB String