net.sourceforge.jdbcexporter.event
Class ExportEntityRowEvent

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

public class ExportEntityRowEvent
extends java.util.EventObject

The ExportEntityRowEvent describes the state of a row being exported.

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

Field Summary
static int STATE_ERROR
          Constant that indicates there was an error processing the row.
static int STATE_SUCCESS
          Constant that indicates the row was exported successfully.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ExportEntityRowEvent(java.lang.Object source, ExportEntityDef entityDef, java.lang.String line, ColumnValue[] values, int state, java.lang.Exception ex)
          Constructs an ExportEntityRowEvent
 
Method Summary
 java.lang.String getCatalog()
          Returns the catalog that the entity belongs to.
 java.lang.Exception getException()
          Returns the exception that prevented the row from being exported.
 java.lang.String getRow()
          Returns the line representing the row.
 java.lang.String getSchema()
          Returns the schema that the entity belongs to.
 int getState()
          Returns the state of the export of the row.
 java.lang.String getTable()
          Returns the table name.
 ColumnValue[] getValues()
          Returns the column values of the row.
 
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

STATE_ERROR

public static int STATE_ERROR
Constant that indicates there was an error processing the row.


STATE_SUCCESS

public static int STATE_SUCCESS
Constant that indicates the row was exported successfully.

Constructor Detail

ExportEntityRowEvent

public ExportEntityRowEvent(java.lang.Object source,
                            ExportEntityDef entityDef,
                            java.lang.String line,
                            ColumnValue[] values,
                            int state,
                            java.lang.Exception ex)
Constructs an ExportEntityRowEvent

Parameters:
source - the source of the event
entityDef - the configuration of the entity
line - the line representing the row
values - the column values of the row
state - the state of row's export
ex - the exception that prevented the row from being exported.
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

getRow

public java.lang.String getRow()
Returns the line representing the row.

Returns:
the line

getState

public int getState()
Returns the state of the export of the row. The state will be one of : STATE_ERROR, STATE_SUCCESS.

Returns:
the state

getValues

public ColumnValue[] getValues()
Returns the column values of the row.

Returns:
the column values

getException

public java.lang.Exception getException()
Returns the exception that prevented the row from being exported. The exception is only set when the state = STATE_ERROR.

Returns:
the exception