net.sourceforge.jdbcimporter.event
Class ImportEvent

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

public class ImportEvent
extends java.util.EventObject

The ImportEvent describes the state of the import.

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

Field Summary
protected  boolean batchMode
          The flag indicating that batch mode is being used.
protected  java.lang.String engineClassname
          The classname of the ImportEngine in use.
protected  ImportDef importDef
          The configuration of the import.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ImportEvent(java.lang.Object source, ImportDef importDef, java.lang.String engineClassname, boolean batchMode)
          Constructs a new import event.
 
Method Summary
 int getBatchCount()
          Returns the batch count used in this import.
 int getCommitCount()
          Returns the commit count used in this import.
 java.lang.String getEngineClassname()
          Returns the classname of the ImportEngine being used.
 int getEntityCount()
          Returns the number of entities in this import.
 boolean isBatchMode()
          Returns if the import is using batch mode.
 
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

importDef

protected ImportDef importDef
The configuration of the import.


batchMode

protected boolean batchMode
The flag indicating that batch mode is being used.


engineClassname

protected java.lang.String engineClassname
The classname of the ImportEngine in use.

Constructor Detail

ImportEvent

public ImportEvent(java.lang.Object source,
                   ImportDef importDef,
                   java.lang.String engineClassname,
                   boolean batchMode)
Constructs a new import event.

Parameters:
source - the source of the event
importDef - the configuration of the import
engineClassname - the classname of the ImportEngine in use
batchMode - if the import is using batch mode
Method Detail

getEntityCount

public int getEntityCount()
Returns the number of entities in this import.

Returns:
number of entities

getBatchCount

public int getBatchCount()
Returns the batch count used in this import.

Returns:
number of rows imported before an execute batch is called

getCommitCount

public int getCommitCount()
Returns the commit count used in this import.

Returns:
number of rows imported before a commit is called

isBatchMode

public boolean isBatchMode()
Returns if the import is using batch mode.

Returns:
a flag indicating that the import is using batch mode

getEngineClassname

public java.lang.String getEngineClassname()
Returns the classname of the ImportEngine being used.

Returns:
the classname of the ImportEngine