|
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.Objectcom.bea.p13n.util.jdbc.GenericDatabase
com.bea.p13n.util.jdbc.SetStringDatabase
@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
DatabaseThis 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 DatabasegetClob in class GenericDatabasers - 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 DatabasesetClob in class GenericDatabasestmt - 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
DatabaseWARNING: 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 DatabasesetClob in class GenericDatabasestmt - 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 DatabasecommitConnection in class GenericDatabaseSQLExceptionpublic String getName()
GenericDatabase
getName in interface DatabasegetName in class GenericDatabase
|
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 | ||||||||