SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.jdbc
Class JDBCEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.solarmetric.rd.jdbc.JDBCEvent
All Implemented Interfaces:
java.io.Serializable

public class JDBCEvent
extends java.util.EventObject

A JDBC Event.

See Also:
JDBCListener, Serialized Form

Field Summary
static short AFTER_COMMIT
          Type code indicating that a Connection was just committed.
static short AFTER_CONNECT
          Type code indicating that a Connection has been obtained.
static short AFTER_CREATE_STATEMENT
          Type code indicating that a Statement is being created.
static short AFTER_EXECUTE_STATEMENT
          Type code indicating that a Statement completed execution.
static short AFTER_PREPARE_STATEMENT
          Type code indicating that a Statement is being prepared.
static short AFTER_RETURN
          Type code indicating that a Connection was just returned.
static short AFTER_ROLLBACK
          Type code indicating that a rollback just occured.
static short BEFORE_COMMIT
          Type code indicating that a Connection is about to be committed.
static short BEFORE_CONNECT
          Type code indicating that a Connection is about to be obtained.
static short BEFORE_CREATE_STATEMENT
          Type code indicating that a Statement is being created.
static short BEFORE_EXECUTE_STATEMENT
          Type code indicating that a Statement is about to be executed.
static short BEFORE_PREPARE_STATEMENT
          Type code indicating that a Statement is being prepared.
static short BEFORE_RETURN
          Type code indicating that a Connection is about to be returned.
static short BEFORE_ROLLBACK
          Type code indicating that a rollback is about to occur.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JDBCEvent(java.lang.Object source, short type, com.solarmetric.rd.jdbc.JDBCEvent associatedEvent, java.sql.Connection connection, java.sql.Statement statement, java.lang.String sql)
          Constructor.
 
Method Summary
 com.solarmetric.rd.jdbc.JDBCEvent getAssociatedEvent()
          Return the associated JDBCEvent for this event.
 java.sql.Connection getConnection()
          Return the Connection for this event, may be null for events unrelated to Connection activity.
 java.lang.String getSQL()
          Return the SQL associated with this event; may be null.
 java.sql.Statement getStatement()
          Return the Statement for this event, may be null for events unrelated to Statement execution.
 long getTime()
          Return the time the event was constructed.
 short getType()
          Return the event's type code.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEFORE_PREPARE_STATEMENT

public static final short BEFORE_PREPARE_STATEMENT
Type code indicating that a Statement is being prepared.

See Also:
Constant Field Values

AFTER_PREPARE_STATEMENT

public static final short AFTER_PREPARE_STATEMENT
Type code indicating that a Statement is being prepared.

See Also:
Constant Field Values

BEFORE_CREATE_STATEMENT

public static final short BEFORE_CREATE_STATEMENT
Type code indicating that a Statement is being created.

See Also:
Constant Field Values

AFTER_CREATE_STATEMENT

public static final short AFTER_CREATE_STATEMENT
Type code indicating that a Statement is being created.

See Also:
Constant Field Values

BEFORE_EXECUTE_STATEMENT

public static final short BEFORE_EXECUTE_STATEMENT
Type code indicating that a Statement is about to be executed.

See Also:
Constant Field Values

AFTER_EXECUTE_STATEMENT

public static final short AFTER_EXECUTE_STATEMENT
Type code indicating that a Statement completed execution.

See Also:
Constant Field Values

BEFORE_COMMIT

public static final short BEFORE_COMMIT
Type code indicating that a Connection is about to be committed.

See Also:
Constant Field Values

AFTER_COMMIT

public static final short AFTER_COMMIT
Type code indicating that a Connection was just committed.

See Also:
Constant Field Values

BEFORE_ROLLBACK

public static final short BEFORE_ROLLBACK
Type code indicating that a rollback is about to occur.

See Also:
Constant Field Values

AFTER_ROLLBACK

public static final short AFTER_ROLLBACK
Type code indicating that a rollback just occured.

See Also:
Constant Field Values

BEFORE_RETURN

public static final short BEFORE_RETURN
Type code indicating that a Connection is about to be returned.

See Also:
Constant Field Values

AFTER_RETURN

public static final short AFTER_RETURN
Type code indicating that a Connection was just returned.

See Also:
Constant Field Values

BEFORE_CONNECT

public static final short BEFORE_CONNECT
Type code indicating that a Connection is about to be obtained.

See Also:
Constant Field Values

AFTER_CONNECT

public static final short AFTER_CONNECT
Type code indicating that a Connection has been obtained.

See Also:
Constant Field Values
Constructor Detail

JDBCEvent

public JDBCEvent(java.lang.Object source,
                 short type,
                 com.solarmetric.rd.jdbc.JDBCEvent associatedEvent,
                 java.sql.Connection connection,
                 java.sql.Statement statement,
                 java.lang.String sql)
Constructor.

Method Detail

getType

public final short getType()
Return the event's type code.


getTime

public final long getTime()
Return the time the event was constructed.


getAssociatedEvent

public final com.solarmetric.rd.jdbc.JDBCEvent getAssociatedEvent()
Return the associated JDBCEvent for this event. For AFTER_XXX events, this will typically be the JDBCEvent that was created in the BEFORE_XXX stage. This may be null when an association is not appropriate for the event.


getSQL

public final java.lang.String getSQL()
Return the SQL associated with this event; may be null.


getConnection

public final java.sql.Connection getConnection()
Return the Connection for this event, may be null for events unrelated to Connection activity.


getStatement

public final java.sql.Statement getStatement()
Return the Statement for this event, may be null for events unrelated to Statement execution.


SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.