com.googlecode.jdbw
Interface BatchUpdateHandler

All Known Implementing Classes:
BatchUpdateHandlerAdapter

public interface BatchUpdateHandler

This interface is used as a callback mechanism for handling results coming out of a batch query. If you don't need all methods, you can override BatchUpdateHandlerAdapter instead.

Author:
Martin Berglund
See Also:
BatchUpdateHandlerAdapter

Method Summary
 void onBatchResult(int[] returnCodes)
          Callback method for the return codes of the batch
 void onGeneratedKey(Object object)
          Callback method for generated keys that happened during the batch.
 void onWarning(SQLWarning warning)
          Callback method for SQLWarnings that occurred during the batch
 

Method Detail

onWarning

void onWarning(SQLWarning warning)
Callback method for SQLWarnings that occurred during the batch

Parameters:
warning -

onBatchResult

void onBatchResult(int[] returnCodes)
Callback method for the return codes of the batch

Parameters:
returnCodes -

onGeneratedKey

void onGeneratedKey(Object object)
Callback method for generated keys that happened during the batch. Not all database engines supports this!

Parameters:
object -


Copyright © 2012. All Rights Reserved.