|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.p13n.util.jdbc.GenericDatabase
com.bea.p13n.util.jdbc.OracleDatabase
com.bea.p13n.util.jdbc.WlsOracleJDriverDatabase
Concrete implementation of OracleDatabase that provides support for reading/writing of BLOB/CLOB data. Designed to work with Weblogic JDriver for Oracle JDBC driver.
OracleDatabase
Constructor Summary | |
WlsOracleJDriverDatabase(Connection connection)
|
Method Summary | |
boolean |
commitConnection(Connection connection)
|
byte[] |
getBlob(ResultSet rs,
int index)
Retrieve Blob value and write to an InputStream from a ResultSet. |
OutputStream |
getBlobLocator(Connection con,
String tableName,
String blobColumnName,
String whereClause)
Gets the BlobLocator object inside an Oracle database column. |
String |
getClob(ResultSet rs,
int index)
Retrieve CLOB value as a String of Unicode characters. |
String |
getName()
The name of this GenericDatabase instance. |
void |
insertClob(ClobKey key,
String data)
Inserts a CLOB into the database managed tables for CLOB persistence |
String |
readClob(ClobKey key)
Reads a CLOB into the database managed tables for CLOB persistence |
void |
removeClob(ClobKey key)
Removes a CLOB from the database managed tables for CLOB persistence |
void |
updateClob(ClobKey key,
String data)
Updates a CLOB in the database managed tables for CLOB persistence |
void |
writeToClob(Clob clob,
String data)
Writes the data from the String into the Clob. |
Methods inherited from class com.bea.p13n.util.jdbc.OracleDatabase |
getClobLocator, getClobLocatorForAdBucket, getEmptyBlobInitializer, getEmptyClobInitializer, setClob, trimClob |
Methods inherited from class com.bea.p13n.util.jdbc.GenericDatabase |
accept, close, close, close, close, close, close, close, close, close, createPreparedStatement, endBlob, endClob, getApplicationName, getClobTableName, getConnection, getProperty, printSqlWarning, readFromClob, readFromClob, setClob, startBlob, startClob, writeToClob |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WlsOracleJDriverDatabase(Connection connection)
Method Detail |
public boolean commitConnection(Connection connection) throws SQLException
commitConnection
in interface Database
commitConnection
in class GenericDatabase
SQLException
public byte[] getBlob(ResultSet rs, int index) throws SQLException
getBlob
in interface Database
getBlob
in class GenericDatabase
rs
- The ResultSet containing the Blob.index
- The position of the Blob in the ResultSet.
SQLException
- on an errorpublic OutputStream getBlobLocator(Connection con, String tableName, String blobColumnName, String whereClause) throws SQLException
getBlobLocator
in interface Database
getBlobLocator
in class GenericDatabase
SQLException
- on an error.public String getClob(ResultSet rs, int index) throws SQLException
getClob
in interface Database
getClob
in class GenericDatabase
rs
- the resultset containing the clobindex
- the position of the clob in the resultset
SQLException
- on an errorgetClob(ResultSet rs, int index)
public String getName()
GenericDatabase
getName
in interface Database
getName
in class GenericDatabase
public void insertClob(ClobKey key, String data) throws SQLException
SQLException
public String readClob(ClobKey key) throws SQLException
SQLException
public void removeClob(ClobKey key) throws SQLException
SQLException
public void updateClob(ClobKey key, String data) throws SQLException
updateClob
in class OracleDatabase
SQLException
public void writeToClob(Clob clob, String data) throws SQLException
writeToClob
in interface Database
writeToClob
in class GenericDatabase
clob
- The target Clob object.data
- The data to be converted to a Clob in the form of a String.
SQLException
- Thrown because this is an unsupported operation.
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |