|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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(java.sql.Connection con)
Deprecated. Commits the java.sql.Connection that you have been using for CLOB operations. |
java.sql.Clob |
getClobLocator(java.sql.Connection con,
java.lang.String tableName,
java.lang.String clobColumnName,
java.lang.String whereClause)
Deprecated. Retrieve the LOB locator for a CLOB. |
java.lang.String |
getEmptyClobInitializer()
Deprecated. Return the database specific keyword that must be used when inserting a row with an empty CLOB. |
java.lang.String |
readClobData(java.sql.ResultSet rs,
int index)
Deprecated. Retrieve CLOB value as a String of Unicode characters. |
boolean |
writeClobData(java.sql.PreparedStatement stmt,
int index,
java.sql.Clob clob,
java.lang.String str)
Deprecated. Write to a CLOB. |
Method Detail |
public java.lang.String getEmptyClobInitializer() throws java.sql.SQLException
public java.sql.Clob getClobLocator(java.sql.Connection con, java.lang.String tableName, java.lang.String clobColumnName, java.lang.String whereClause) throws java.sql.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)public java.lang.String readClobData(java.sql.ResultSet rs, int index) throws java.sql.SQLException
rs
- the resultset containing the clobindex
- the position of the clob in the resultset#getClob(ResultSet rs, int index)
public boolean writeClobData(java.sql.PreparedStatement stmt, int index, java.sql.Clob clob, java.lang.String str) throws java.sql.SQLException
stmt
- the PreparedStatementindex
- the paramater indexclob
- the CLOB locatorstr
- the string valuepublic void commitConnection(java.sql.Connection con) throws java.sql.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
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |