net.sourceforge.jdbcexporter.event
Class ExportEntityEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bynet.sourceforge.jdbcexporter.event.ExportEntityEvent
All Implemented Interfaces:
java.io.Serializable

public class ExportEntityEvent
extends java.util.EventObject

The ExportEntityEvent describes the state of an entity being exported.

Version:
0.67
Author:
Chris Nagy
See Also:
Serialized Form

Field Summary
protected  ExportEntityDef entityDef
          The configuration of the entity being exported.
protected  java.lang.Exception exception
          The exception causing the export of the entity to end.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ExportEntityEvent(java.lang.Object source, ExportEntityDef entityDef, java.lang.Exception ex)
          Constructs an ExportEntityEvent.
 
Method Summary
 java.lang.String getCatalog()
          Returns the catalog that the entity belongs to.
 int getColumnCount()
          Returns the number of columns for each row being exported.
 java.lang.String getEngineClassname()
           
 java.lang.Exception getException()
          Returns the exception that caused the export of the entity to finish.
 java.lang.String getSchema()
          Returns the schema that the entity belongs to.
 java.lang.String getTable()
          Returns the table name.
 
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

entityDef

protected ExportEntityDef entityDef
The configuration of the entity being exported.


exception

protected java.lang.Exception exception
The exception causing the export of the entity to end.

Constructor Detail

ExportEntityEvent

public ExportEntityEvent(java.lang.Object source,
                         ExportEntityDef entityDef,
                         java.lang.Exception ex)
Constructs an ExportEntityEvent.

Parameters:
source - the source of the event
entityDef - the configuration of the entity being exported
ex - the exception that caused abnormal termination of the entity being exported
Method Detail

getColumnCount

public int getColumnCount()
Returns the number of columns for each row being exported.

Returns:
the number of columns

getTable

public java.lang.String getTable()
Returns the table name.

Returns:
the table name

getSchema

public java.lang.String getSchema()
Returns the schema that the entity belongs to.

Returns:
the schema name

getCatalog

public java.lang.String getCatalog()
Returns the catalog that the entity belongs to.

Returns:
the catalog name

getEngineClassname

public java.lang.String getEngineClassname()

getException

public java.lang.Exception getException()
Returns the exception that caused the export of the entity to finish. The exception is available only when the ExportListener.entityExportFinished method is called.

Returns:
the exception