1 4 package javax.sql; 5 6 import java.sql.PreparedStatement ; 7 import java.sql.SQLException ; 8 import java.util.EventObject ; 9 10 18 public class StatementEvent extends EventObject { 19 20 private SQLException exception; 21 private PreparedStatement statement; 22 23 36 public StatementEvent(PooledConnection con, 37 PreparedStatement statement) { 38 39 super(con); 40 41 this.statement = statement; 42 this.exception = null; 43 } 44 45 59 public StatementEvent(PooledConnection con, 60 PreparedStatement statement, 61 SQLException exception) { 62 63 super(con); 64 65 this.statement = statement; 66 this.exception = exception; 67 } 68 69 76 public PreparedStatement getStatement() { 77 78 return this.statement; 79 } 80 81 88 public SQLException getSQLException() { 89 90 return this.exception; 91 } 92 } 93 | Popular Tags |