| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.apache.openjpa.lib.jdbc.JDBCEvent
public class JDBCEvent
A JDBC event. The event source will be the connection.
JDBCListener, 
Serialized Form| Field Summary | |
|---|---|
| static short | AFTER_COMMITType code indicating that a Connectionwas just committed. | 
| static short | AFTER_CONNECTType code indicating that a connection was obtained. | 
| static short | AFTER_CREATE_STATEMENTType code indicating that a Statementis being created. | 
| static short | AFTER_EXECUTE_STATEMENTType code indicating that a Statementcompleted execution. | 
| static short | AFTER_PREPARE_STATEMENTType code indicating that a Statementis being prepared. | 
| static short | AFTER_ROLLBACKType code indicating that a rollback just occured. | 
| static short | BEFORE_CLOSEType code indicating that a connection was closed. | 
| static short | BEFORE_COMMITType code indicating that a Connectionis about to be committed. | 
| static short | BEFORE_CREATE_STATEMENTType code indicating that a Statementis being created. | 
| static short | BEFORE_EXECUTE_STATEMENTType code indicating that a Statementis about to be executed. | 
| static short | BEFORE_PREPARE_STATEMENTType code indicating that a Statementis being prepared. | 
| static short | BEFORE_ROLLBACKType code indicating that a rollback is about to occur. | 
| Fields inherited from class java.util.EventObject | 
|---|
| source | 
| Constructor Summary | |
|---|---|
| JDBCEvent(java.sql.Connection source,
          short type,
          JDBCEvent associatedEvent,
          java.sql.Statement statement,
          java.lang.String sql)Constructor. | |
| Method Summary | |
|---|---|
|  JDBCEvent | getAssociatedEvent()Return the associated JDBCEventfor this event. | 
|  java.sql.Connection | getConnection()Return the Connection for this event. | 
|  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 | 
|---|
public static final short BEFORE_PREPARE_STATEMENT
Statement is being prepared.
public static final short AFTER_PREPARE_STATEMENT
Statement is being prepared.
public static final short BEFORE_CREATE_STATEMENT
Statement is being created.
public static final short AFTER_CREATE_STATEMENT
Statement is being created.
public static final short BEFORE_EXECUTE_STATEMENT
Statement is about to be executed.
public static final short AFTER_EXECUTE_STATEMENT
Statement completed execution.
public static final short BEFORE_COMMIT
Connection is about to be committed.
public static final short AFTER_COMMIT
Connection was just committed.
public static final short BEFORE_ROLLBACK
public static final short AFTER_ROLLBACK
public static final short AFTER_CONNECT
public static final short BEFORE_CLOSE
| Constructor Detail | 
|---|
public JDBCEvent(java.sql.Connection source,
                 short type,
                 JDBCEvent associatedEvent,
                 java.sql.Statement statement,
                 java.lang.String sql)
| Method Detail | 
|---|
public final short getType()
public final java.sql.Connection getConnection()
public final long getTime()
public final JDBCEvent getAssociatedEvent()
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.
public final java.lang.String getSQL()
public final java.sql.Statement getStatement()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||