Package org.apache.empire.db
Class DBClobData
java.lang.Object
org.apache.empire.db.DBClobData
This class allocates methods to store binary character objects in the database.
-
Constructor Summary
ConstructorsConstructorDescriptionDBClobData(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
-
Constructor Details
-
DBClobData
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 fromlength- The number of characters to read from the reader- Throws:
IllegalArgumentException- If the reader is null
-
DBClobData
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
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
Returns a CLOB String.
-