FileDocCategorySizeDatePackage
UpdateTag.javaAPI DocExample1229Thu Jun 28 16:14:16 BST 2001com.ora.jsp.tags.sql

UpdateTag

public class UpdateTag extends DBTag
This class is a custom action for executing a SQL INSERT, UPDATE and DELETE statements, as well as SQL DDL statements (e.g. CREATE TABLE). The statement must be defined in the body of the action. It can contain ? place holders, replaced by the value of elements before execution. The number and order of place holders must match the number and order of elements in the body.
author
Hans Bergsten, Gefion software
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Objectexecute(SQLCommandBean sqlCommandBean)
Executes the SQL command as an "update" and returns an Integer with the number of rows affected.

param
sqlCommandBean the SQL command to execute
return
the number of rows affected as an Integer

        return new Integer(sqlCommandBean.executeUpdate());