net.sourceforge.jdbcimporter.event
Class ImportEntityEvent

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

public class ImportEntityEvent
extends java.util.EventObject

The ImportEntityEvent describes the state of an entity being imported.

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

Field Summary
protected  ImportEntityDef entityDef
          The configuration of the entity being imported.
protected  java.lang.Exception exception
          The exception causing the import of the entity to end.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ImportEntityEvent(java.lang.Object source, ImportEntityDef entityDef, java.lang.Exception ex)
          Constructs an ImportEntityEvent.
 
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 imported.
 java.lang.String getEngineClassname()
           
 java.lang.Exception getException()
          Returns the exception that caused the import 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 ImportEntityDef entityDef
The configuration of the entity being imported.


exception

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

Constructor Detail

ImportEntityEvent

public ImportEntityEvent(java.lang.Object source,
                         ImportEntityDef entityDef,
                         java.lang.Exception ex)
Constructs an ImportEntityEvent.

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

getColumnCount

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

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 import of the entity to finish. The exception is available only when the ImportListener.entityImportFinished method is called.

Returns:
the exception