01: /*
02: * Jython Database Specification API 2.0
03: *
04: * $Id: WarningEvent.java 2414 2005-02-23 04:26:23Z bzimmer $
05: *
06: * Copyright (c) 2001 brian zimmer <bzimmer@ziclix.com>
07: *
08: */
09: package com.ziclix.python.sql;
10:
11: import java.sql.SQLWarning;
12: import java.util.EventObject;
13:
14: /**
15: * An event signalling the a SQLWarning was encountered
16: * while building results from a ResultSet.
17: */
18: public class WarningEvent extends EventObject {
19:
20: private SQLWarning warning;
21:
22: public WarningEvent(Object source, SQLWarning warning) {
23:
24: super (source);
25:
26: this .warning = warning;
27: }
28:
29: public SQLWarning getWarning() {
30: return this.warning;
31: }
32: }
|