com.googlecode.jdbw.util
Class BatchUpdateHandlerAdapter

java.lang.Object
  extended by com.googlecode.jdbw.util.BatchUpdateHandlerAdapter
All Implemented Interfaces:
BatchUpdateHandler

public class BatchUpdateHandlerAdapter
extends Object
implements BatchUpdateHandler

This is a convenience class that implements ExecuteResultHandler and provides a default method implementation for this interface. You can then override only the methods that you care about.

Author:
Martin Berglund

Constructor Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchUpdateHandlerAdapter

public BatchUpdateHandlerAdapter()
Method Detail

onGeneratedKey

public void onGeneratedKey(Object object)
Description copied from interface: BatchUpdateHandler
Callback method for generated keys that happened during the batch. Not all database engines supports this!

Specified by:
onGeneratedKey in interface BatchUpdateHandler

onWarning

public void onWarning(SQLWarning warning)
Description copied from interface: BatchUpdateHandler
Callback method for SQLWarnings that occurred during the batch

Specified by:
onWarning in interface BatchUpdateHandler

onBatchResult

public void onBatchResult(int[] returnCodes)
Description copied from interface: BatchUpdateHandler
Callback method for the return codes of the batch

Specified by:
onBatchResult in interface BatchUpdateHandler


Copyright © 2012. All Rights Reserved.