org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class SortingStoreRowMapperListener<T extends Storeable>

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.SortingStoreRowMapperListener<T>
Type Parameters:
T - The type of object to be stored.
All Implemented Interfaces:
RowMapperListener<T>

public class SortingStoreRowMapperListener<T extends Storeable>
extends java.lang.Object
implements RowMapperListener<T>

A row mapper listener that writes all objects into an object sortingStore.


Constructor Summary
SortingStoreRowMapperListener(FileBasedSort<T> sortingStore)
          Creates a new instance.
 
Method Summary
 void process(T data, java.sql.ResultSet resultSet)
          Processes the provided object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortingStoreRowMapperListener

public SortingStoreRowMapperListener(FileBasedSort<T> sortingStore)
Creates a new instance.

Parameters:
sortingStore - The sortingStore to receive objects.
Method Detail

process

public void process(T data,
                    java.sql.ResultSet resultSet)
             throws java.sql.SQLException
Processes the provided object.

Specified by:
process in interface RowMapperListener<T extends Storeable>
Parameters:
data - The object read from the result set.
resultSet - The result set pointing at the current row.
Throws:
java.sql.SQLException - if an error occurs reading from the result set.