|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.p13n.util.jdbc.GenericDatabase com.bea.p13n.util.jdbc.OracleDatabase com.bea.p13n.util.jdbc.WlsOracleThinDatabase
@Deprecated public class WlsOracleThinDatabase
Concrete implementation of OracleDatabase that provides support for reading/writing of BLOB/CLOB data. Designed to work with Oracle Thin driver when running inside an application server context.
OracleDatabase
Constructor Summary | |
---|---|
WlsOracleThinDatabase(Connection connection)
Deprecated |
Method Summary | |
---|---|
boolean |
accept(Connection connection)
Deprecated Check to see if the connection URL matches the format defined in "accept.driver.url.regex". |
boolean |
commitConnection(Connection connection)
Deprecated |
byte[] |
getBlob(ResultSet rs,
int index)
Deprecated Retrieve Blob value and write to an InputStream from a ResultSet. |
OutputStream |
getBlobLocator(Connection con,
String tableName,
String blobColumnName,
String whereClause)
Deprecated Gets the BlobLocator object inside an Oracle database column. |
String |
getClob(ResultSet rs,
int index)
Deprecated Retrieve CLOB value as a String of Unicode characters. |
String |
getName()
Deprecated The name of this GenericDatabase instance. |
void |
insertClob(ClobKey key,
String data)
Deprecated Inserts a CLOB into the database managed tables for CLOB persistence |
String |
readClob(ClobKey key)
Deprecated Reads a CLOB into the database managed tables for CLOB persistence |
void |
removeClob(ClobKey key)
Deprecated Removes a CLOB from the database managed tables for CLOB persistence |
void |
updateClob(ClobKey key,
String data)
Deprecated Updates a CLOB in the database managed tables for CLOB persistence |
void |
writeToClob(Clob clob,
String data)
Deprecated 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 |
---|
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 WlsOracleThinDatabase(Connection connection)
Method Detail |
---|
public boolean accept(Connection connection)
GenericDatabase
accept
in interface Database
accept
in class GenericDatabase
connection
- The Connection object that contains the URL.
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.public void insertClob(ClobKey key, String data) 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 String readClob(ClobKey key) throws SQLException
SQLException
public String getName()
GenericDatabase
getName
in interface Database
getName
in class GenericDatabase
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 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.
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |