ca.bc.gov.webade.database
Class DatabaseObjectHandler
java.lang.Object
ca.bc.gov.webade.database.DatabaseObjectHandler
- public class DatabaseObjectHandler
- extends java.lang.Object
- Author:
- jross
|
Method Summary |
static boolean |
readBlob(java.sql.Blob blob,
java.io.OutputStream outputStream)
Writes the given BLOB data to the given output stream. |
static boolean |
readClob(java.sql.Clob clob,
java.io.OutputStream outputStream)
Writes the given Clob data to the given output stream. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseObjectHandler
public DatabaseObjectHandler()
readClob
public static boolean readClob(java.sql.Clob clob,
java.io.OutputStream outputStream)
throws java.sql.SQLException,
java.io.IOException
- Writes the given Clob data to the given output stream.
- Parameters:
clob - The clob object to read the data from.outputStream - The output stream to write to.
- Returns:
- true if the clob contained data, otherwise false.
- Throws:
java.sql.SQLException - Thrown if an error occurs.
java.io.IOException - Thrown if an error occurs.
readBlob
public static boolean readBlob(java.sql.Blob blob,
java.io.OutputStream outputStream)
throws java.sql.SQLException,
java.io.IOException
- Writes the given BLOB data to the given output stream.
- Parameters:
blob - The blob object to read the data from.outputStream - The output stream to write to.
- Returns:
- true if the clob contained data, otherwise false.
- Throws:
java.sql.SQLException - Thrown if an error occurs.
java.io.IOException - Thrown if an error occurs.