|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the JdbcHelperDelegate, which is used to delegate CLOB read/write operations for specific database drivers.
Method Summary | |
void |
commitConnection(Connection con)
Deprecated. Commits the java.sql.Connection that you have been using for CLOB operations. |
Clob |
getClobLocator(Connection con,
String tableName,
String clobColumnName,
String whereClause)
Deprecated. Retrieve the LOB locator for a CLOB. |
String |
getEmptyClobInitializer()
Deprecated. Return the database specific keyword that must be used when inserting a row with an empty CLOB. |
String |
readClobData(ResultSet rs,
int index)
Deprecated. Retrieve CLOB value as a String of Unicode characters. |
boolean |
writeClobData(PreparedStatement stmt,
int index,
Clob clob,
String str)
Deprecated. Write to a CLOB. |
Method Detail |
public void commitConnection(Connection con) throws SQLException
The delegate may implement this as a no-op method if it is illegal to do a Connection.commit() for the driver (e.g., jDriver for Oracle XA)
con
- the Connection
SQLException
- on an errorpublic Clob getClobLocator(Connection con, String tableName, String clobColumnName, String whereClause) throws SQLException
This method only returns a single CLOB locator. If the WHERE clause results in mutiple rows, only the CLOB from the first row is returned.
con
- the database connectiontableName
- the name of the database tableclobColumnName
- the name of the column holding the CLOBwhereClause
- the where clause (without WHERE keyword)
SQLException
- on an errorpublic String getEmptyClobInitializer() throws SQLException
SQLException
- on an errorpublic String readClobData(ResultSet rs, int index) throws SQLException
rs
- the resultset containing the clobindex
- the position of the clob in the resultset
SQLException
- on an errorpublic boolean writeClobData(PreparedStatement stmt, int index, Clob clob, String str) throws SQLException
stmt
- the PreparedStatementindex
- the paramater indexclob
- the CLOB locatorstr
- the string value
SQLException
- on an error
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |