net.sourceforge.jdbcimporter.util
Class MultipleBatchUpdateException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended byjava.sql.BatchUpdateException
                  extended bynet.sourceforge.jdbcimporter.util.MultipleBatchUpdateException
All Implemented Interfaces:
java.io.Serializable

public class MultipleBatchUpdateException
extends java.sql.BatchUpdateException

The MultipleBatchUpdateException is used to combine multiple SQLExceptions into one exception.

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

Constructor Summary
MultipleBatchUpdateException(int[] rowStates)
          Creates the exception with the given row states.
 
Method Summary
 java.sql.SQLException[] getNextExceptions()
          Returns the SQLExceptions that occurred when the executeBatch method was called.
 void setNextExceptions(java.sql.SQLException[] exceptions)
          Sets the SQLExceptions that caused the batch update exception.
 
Methods inherited from class java.sql.BatchUpdateException
getUpdateCounts
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultipleBatchUpdateException

public MultipleBatchUpdateException(int[] rowStates)
Creates the exception with the given row states.

Parameters:
rowStates - the row states
Method Detail

setNextExceptions

public void setNextExceptions(java.sql.SQLException[] exceptions)
Sets the SQLExceptions that caused the batch update exception.

Parameters:
exceptions - the SQLExceptions

getNextExceptions

public java.sql.SQLException[] getNextExceptions()
Returns the SQLExceptions that occurred when the executeBatch method was called.

Returns:
the SQLExceptions