net.sourceforge.jdbcimporter.event
Class ImportEntityBatchEvent

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

public class ImportEntityBatchEvent
extends java.util.EventObject

The ImportEntityBatchEvent represents the state of a batch import.

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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ImportEntityBatchEvent(java.lang.Object source, ImportEntityDef entityDef, int[] goodRows, int[] badRows, java.lang.Exception exception)
          Constructs a new ImportEntityBatchEvent
 
Method Summary
 int[] getBadRows()
          Returns the row indices that could not be imported.
 java.lang.String getCatalog()
          Returns the catalog that the entity belongs to.
 java.lang.Exception getException()
          Returns the exception that caused some rows to not be imported.
 int[] getGoodRows()
          Returns the row indices that were imported.
 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
 

Constructor Detail

ImportEntityBatchEvent

public ImportEntityBatchEvent(java.lang.Object source,
                              ImportEntityDef entityDef,
                              int[] goodRows,
                              int[] badRows,
                              java.lang.Exception exception)
Constructs a new ImportEntityBatchEvent

Parameters:
source - the source of the event
entityDef - the configuration of the entity
goodRows - the rows that were imported
badRows - the rows that could not be imported
exception - the exception that describes why the rows were not imported
Method Detail

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

getBadRows

public int[] getBadRows()
Returns the row indices that could not be imported. The value of the indices are relative to the last execute batch.

Returns:
the row indices

getException

public java.lang.Exception getException()
Returns the exception that caused some rows to not be imported.

Returns:
the exception

getGoodRows

public int[] getGoodRows()
Returns the row indices that were imported. The value of the indices are relative to the last execute batch.

Returns:
the row indices.