org.apache.empire.db
Class DBClobData

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

public class DBClobData
extends Object

This class allocates methods to store binary character objects in the database.


Constructor Summary
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.
DBClobData(String text)
          Constructor for LobData from a string.
 
Method Summary
 int getLength()
          Returns the length of the CLOB data in characters.
 Reader getReader()
          Set the defaultEncoding used in a constructor.
 String toString()
          Returns a CLOB String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

getReader

public Reader getReader()
Set the defaultEncoding used in a constructor.

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


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.