KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ziclix > python > sql > WarningEvent


1 /*
2  * Jython Database Specification API 2.0
3  *
4  * $Id: WarningEvent.java,v 1.2 2005/02/23 04:26:18 bzimmer Exp $
5  *
6  * Copyright (c) 2001 brian zimmer <bzimmer@ziclix.com>
7  *
8  */

9 package com.ziclix.python.sql;
10
11 import java.sql.SQLWarning JavaDoc;
12 import java.util.EventObject JavaDoc;
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 JavaDoc {
19
20     private SQLWarning JavaDoc warning;
21
22     public WarningEvent(Object JavaDoc source, SQLWarning JavaDoc warning) {
23
24         super(source);
25
26         this.warning = warning;
27     }
28
29     public SQLWarning JavaDoc getWarning() {
30         return this.warning;
31     }
32 }
33
Popular Tags