net.sf.xaj
Interface XmlDbBatchHandler

All Known Implementing Classes:
StoreBatchHandler

public interface XmlDbBatchHandler

API for processing an XmlResource in batch.

Version:
$Revision: 45 $ $Date: 2007-10-07 19:40:28 +1300 (Sun, 07 Oct 2007) $
Author:
matt

Method Summary
 java.io.Serializable getLastXmlResourceId()
          Get the XmlResource ID for the last processed element.
 boolean processXmlResource(XmlDb xmlDb, int count, XmlResource resource)
          Process an XmlResource.
 

Method Detail

processXmlResource

boolean processXmlResource(XmlDb xmlDb,
                           int count,
                           XmlResource resource)
Process an XmlResource.

Parameters:
xmlDb - the XmlDb performing the batch process
count - the one-based index of this process call in relation to the entire batch process
resource - the resource to process
Returns:
true to continue processing, false otherwise

getLastXmlResourceId

java.io.Serializable getLastXmlResourceId()
Get the XmlResource ID for the last processed element.

This can be called to find out the ID of the last processed element, for example when storing XmlResource objects with database-generated IDs.

Returns:
the ID of the last processed element