| org.gomba.TransactorAbstractServlet org.gomba.AbstractServlet org.gomba.SingleQueryServlet org.gomba.LOBUpdateServlet
LOBUpdateServlet | public class LOBUpdateServlet extends SingleQueryServlet (Code) | | Write a LOB to a JDBC data store. the SQL in the query
init-param should be a SELECT that selects a LOB field. Currently LOBs are
overwritten but not cleared, so previous data in the LOB that exceeds the
length of the new data will not be overwritten. This servlet inherits the
init-params of
org.gomba.AbstractServlet , plus:
- http-method
- The value can be POST or PUT. (Required)
- column
- The result set column containing the BLOB or CLOB value. This init-param
is required only if the result set contains more than one column. (Optional)
- update-query
- An SQL statement that writes the BLOB or CLOB to the db. The statement
must contain one parameter of BLOB or CLOB type using the
${blob.myColumn} syntax. This is required only if the JDBC
driver does not support LOB in-place modification. (Optional)
Note about HTTP method usage. The POST method is normally used for creation
(INSERT in SQL) operations. The PUT method is normally used for update
(UPDATE in SQL) operations.
author: Flavio Tordini version: $Id: LOBUpdateServlet.java,v 1.8 2005/07/21 09:12:22 flaviotordini Exp $ |
|
|