KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > sql > BatchUpdateException

java.sql
Class BatchUpdateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by java.sql.BatchUpdateException
All Implemented Interfaces:
Serializable
See Also:
Top Examples, Source Code

public BatchUpdateException()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1223]Handling a SQL batch update exception
By Anonymous on 2004/12/23 14:41:46  Rate
// handling a batch update exception: 
  
  
   catch (  BatchUpdateException bue  )  
    {  
     bError = true; 
     aiupdateCounts = bue.getUpdateCounts (  ) ; 
  
  
     SQLException SQLe = bue; 
     while (  SQLe != null )  
      {  
       // do exception stuff 
  
  
       SQLe = SQLe.getNextException (  ) ; 
      }  
    }  // end BatchUpdateException catch 
   catch (  SQLException SQLe  )  
    {  
     ... 
  
  
    }  // end SQLException catch 
 


public BatchUpdateException(int[] updateCounts)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public BatchUpdateException(String reason,
                            int[] updateCounts)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public BatchUpdateException(String reason,
                            String SQLState,
                            int vendorCode,
                            int[] updateCounts)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public BatchUpdateException(String reason,
                            String SQLState,
                            int[] updateCounts)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int[] getUpdateCounts()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags