![]() |
Business Internet Services |
|
The DbStmt node executes an SqlStmt using a database Connection. The SqlStmt is containing runtime parameter values is provided by the first Parameter tag enclosed by the DbStmt. This may be an SqlStmt, Rp, Cp or any other tag the implements the Parameter interface. Here is and example that uses an SqlStmt tag to provide a stmt to execute.
The runtime values that are inserted into the stmt are provided by children
of the SqlStmt tag below. The DbStmt tag itself only has one child.
The action attribute specifies the type of stmt to execute. Currently support types are:
The dbcon attribute specifies the name of a DbPool to get a connection from. DbPools are managed by the DbManager which is stored in the ServletContext. @see com.plands.dbutil.DbManager. When a DbStmt is being used inside a DbTransaction tag the Connection is obtained by specifying a dbkey attribute rather than a dbcon attribute. A dbkey should have the same value as that specified by the parent DbTransaction tag which stores a Connection in the request using the dbkey. The DbTransaction will remove the key from the reqeust when it has finished running it's children. @see com.plands.dxp.DbTransaction @author Mark Ashworth @version 0.2, 2001-06-05 Return to Index Note: We have tried to test all of the code examples but they may contain errors. Any questions, comments, suggestions, or problems should be sent to info@plands.com. |
|
© 2005 Planetary
Data Systems.
All rights reserved. |