|
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 |
java.lang.Object
com.bea.p13n.util.jdbc.GenericDatabase
com.bea.p13n.util.jdbc.SetStringDatabase
Deprecated No longer needed, as JDBC methods work with all supported drivers
@Deprecated
public class SetStringDatabase
Constructor Summary | |
---|---|
SetStringDatabase(Connection connection) Deprecated |
Method Summary | |
---|---|
boolean |
commitConnection(Connection connection) Deprecated |
String |
getClob(ResultSet rs, int index) Deprecated Get the value of a CLOB column as a string. |
String |
getName() Deprecated The name of this GenericDatabase instance. |
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. |
Methods inherited from class com.bea.p13n.util.jdbc.GenericDatabase |
---|
accept, close, close, close, close, close, close, close, close, close, createPreparedStatement, endBlob, endClob, getApplicationName, getBlob, getBlobLocator, getClobLocator, getClobTableName, getConnection, getEmptyBlobInitializer, getEmptyClobInitializer, getProperty, printSqlWarning, readFromClob, readFromClob, startBlob, startClob, writeToClob, writeToClob |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetStringDatabase(Connection connection)
Method Detail |
---|
public String getClob(ResultSet rs, int index) throws SQLException
Database
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.
getClob
in interface Database
getClob
in class GenericDatabase
rs
- the result set.index
- the column index in the result set.SQLException
- thrown on an error.public void setClob(PreparedStatement stmt, int index, String str) throws SQLException
Database
setClob
in interface Database
setClob
in class GenericDatabase
stmt
- the prepared statement.index
- the column index.str
- the CLOB string.SQLException
- thrown on an error.public boolean setClob(PreparedStatement stmt, int index, Clob clob, String str) throws SQLException
Database
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.
setClob
in interface Database
setClob
in class GenericDatabase
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.public boolean commitConnection(Connection connection) throws SQLException
commitConnection
in interface Database
commitConnection
in class GenericDatabase
SQLException
public String getName()
GenericDatabase
getName
in interface Database
getName
in class GenericDatabase
|
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.