FileDocCategorySizeDatePackage
StatementEvent.javaAPI DocExample1359Mon Mar 31 23:10:16 BST 2003org.dasein.persist

StatementEvent

public class StatementEvent extends EventObject
Represents some event happening within a prepared statement. Currently, the only event that ever happens is the statement gets closed by the application.
Last Modified $Date$
version
$Revision$
author
George Reese

Fields Summary
private String
sql
The SQL for the prepared statement.
Constructors Summary
public StatementEvent(String sql, PreparedStatement stmt)
Constructs a new statement event for the prepared statement with the specified SQL.

param
sql the SQL underneath the prepared statement
param
stmt the statement itself


                                   
         
        super(stmt);
        this.sql = sql;
    
Methods Summary
public java.lang.StringgetSQL()

return
the SQL for the prepared statement

        return sql;
    
public java.sql.PreparedStatementgetStatement()

return
the source of the event cast to a PreparedStatement

        return (PreparedStatement)getSource();