src/java.sql/share/classes/javax/sql/StatementEvent.java
changeset 58338 faf791c5a710
parent 47216 71c04702a3d5
equal deleted inserted replaced
58337:270abce77942 58338:faf791c5a710
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    42  */
    42  */
    43 public class StatementEvent extends EventObject {
    43 public class StatementEvent extends EventObject {
    44 
    44 
    45         static final long serialVersionUID = -8089573731826608315L;
    45         static final long serialVersionUID = -8089573731826608315L;
    46         private SQLException            exception;
    46         private SQLException            exception;
       
    47         @SuppressWarnings("serial") // Not statically typed as Serializable
    47         private PreparedStatement       statement;
    48         private PreparedStatement       statement;
    48 
    49 
    49         /**
    50         /**
    50          * Constructs a <code>StatementEvent</code> with the specified <code>PooledConnection</code> and
    51          * Constructs a <code>StatementEvent</code> with the specified <code>PooledConnection</code> and
    51          * <code>PreparedStatement</code>.  The <code>SQLException</code> contained in the event defaults to
    52          * <code>PreparedStatement</code>.  The <code>SQLException</code> contained in the event defaults to