|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Deprecated No longer needed, as JDBC methods work with all supported drivers. Helper methods are available on JdbcHelper
for get/set operations on clob data.
@Deprecated
public interface Database
Method Summary | |
---|---|
boolean |
accept(Connection connection) Deprecated Check to see if the Database can bind to the supplied connection. |
void |
close() Deprecated Close the Connection associated with this Database. |
void |
close(InputStream is) Deprecated Closes an InputStream. |
void |
close(OutputStream os) Deprecated Closes an OutputStream. |
void |
close(PreparedStatement ps) Deprecated Closes a PreparedStatement. |
void |
close(Reader reader) Deprecated Closes a Reader stream. |
void |
close(ResultSet rs) Deprecated Closes a ResultSet. |
void |
close(ResultSet rs, Statement stmt) Deprecated Closes a ResultSet and its associated Statement. |
void |
close(Statement stmt) Deprecated Closes a Statement. |
void |
close(Writer writer) Deprecated Closes a Writer stream. |
boolean |
commitConnection(Connection connection) Deprecated |
void |
endBlob() Deprecated Call Connection.commit(). |
void |
endClob() Deprecated Call Connection.commit(). |
String |
getApplicationName() Deprecated Get the name of the current WebLogic J2EE application or return null if not running within a WebLogic J2EE context. |
byte[] |
getBlob(ResultSet rs, int index) Deprecated Get the value of a Blob column as an InputStream. |
OutputStream |
getBlobLocator(Connection con, String tableName, String blobColumnName, String whereClause) Deprecated |
String |
getClob(ResultSet rs, int index) Deprecated Get the value of a CLOB column as a string. |
Clob |
getClobLocator(Connection con, String tableName, String clobColumnName, String whereClause) Deprecated |
Connection |
getConnection() Deprecated Return Connection for the current Database instance. |
String |
getEmptyBlobInitializer() Deprecated |
String |
getEmptyClobInitializer() Deprecated |
String |
getName() Deprecated Gets the name of the database instance. |
String |
readFromClob(Clob clob) Deprecated Reads the contents of a Clob and returns as a String. |
boolean |
setClob(PreparedStatement stmt, int index, Clob clob, String str) Deprecated If there is a delegate, this method uses JdbcHelperDelegate.writeClobData() If this is done, then the PreparedStatement does not need to be used and the return value, executeRequired, is false. |
void |
setClob(PreparedStatement stmt, int index, String str) Deprecated Set the value of a CLOB column with a string. |
void |
startBlob() Deprecated setAutoCommit( false ) on the Connection. |
void |
startClob() Deprecated setAutoCommit( false ) on the Connection. |
void |
writeToClob(Clob clob, String data) Deprecated Writes the data from a String into a Clob. |
Method Detail |
---|
Connection getConnection()
boolean accept(Connection connection)
connection
- The Connection object that contains the URL.void close()
void close(Reader reader)
reader
- The Reader object to be closed.void close(InputStream is)
is
- The InputStream object to be closed.void close(Writer writer)
writer
- The Writer object to be closed.void close(OutputStream os)
os
- The OutputStream object to be closed.void close(Statement stmt)
stmt
- The Statement object to be closed.void close(PreparedStatement ps)
ps
- The PreparedStatement object to be closed.void close(ResultSet rs)
rs
- The ResultSet object to be closed.void close(ResultSet rs, Statement stmt)
rs
- The ResultSet object to be closed.stmt
- The Statement object to be closed.String readFromClob(Clob clob) throws SQLException
SQLException
- Thrown when error occurs while reading Clob.void writeToClob(Clob clob, String data) throws SQLException
SQLException
- Thrown when error occurs while writing to Clob.void startClob() throws SQLException
SQLException
- Thrown when trying to set auto-commit to false.void startBlob() throws SQLException
SQLException
- Thrown when trying to set auto-commit to false.void endClob() throws SQLException
SQLException
- Thrown when error occurs while persisting Clob.void endBlob() throws SQLException
SQLException
- Thrown when error occurs while persisting Blob.String getApplicationName()
String getName()
String getEmptyClobInitializer() throws SQLException
SQLException
Clob getClobLocator(Connection con, String tableName, String clobColumnName, String whereClause) throws SQLException
SQLException
String getClob(ResultSet rs, int index) throws SQLException
This method will only return the value of the CLOB in the current row of the ResultSet. This method does not increment the ResultSet cursor. You must use ResultSet.next() to increment the cursor before calling this method. This allows the method to be used to process multi-row ResultSets.
rs
- the result set.index
- the column index in the result set.SQLException
- thrown on an error.void setClob(PreparedStatement stmt, int index, String str) throws SQLException
stmt
- the prepared statement.index
- the column index.str
- the CLOB string.SQLException
- thrown on an error.boolean setClob(PreparedStatement stmt, int index, Clob clob, String str) throws SQLException
WARNING: if using a delegate to stream data to a CLOB, then you should have used Connection.setAutoCommit(false) before calling the CLOB locator method that provided the Clob you are using in this method call. This will make the CLOB available across multiple SQL statements.
stmt
- the prepared statement.index
- the column index.clob
- the CLOB locator (ignored if no delegate).str
- the String to be set in the CLOB (if delegate) or in the PreparedStatement (if no delegate)SQLException
- thrown on an error.boolean commitConnection(Connection connection) throws SQLException
SQLException
String getEmptyBlobInitializer() throws SQLException
SQLException
OutputStream getBlobLocator(Connection con, String tableName, String blobColumnName, String whereClause) throws SQLException
SQLException
byte[] getBlob(ResultSet rs, int index) throws SQLException
This method will only return the value of the Blob in the current row of the ResultSet. This method does not increment the ResultSet cursor. You must use ResultSet.next() to increment the cursor before calling this method. This allows the method to be used to process multi-row ResultSets.
rs
- The result set.index
- The column index in the ResultSet.SQLException
- thrown on an error.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.