org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class EntityHistoryRowMapper<T extends Entity>

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

public class EntityHistoryRowMapper<T extends Entity>
extends java.lang.Object
implements RowMapperListener<T>

Maps entity history result set rows into entity history objects.


Constructor Summary
EntityHistoryRowMapper(RowMapperListener<EntityHistory<T>> listener)
          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

EntityHistoryRowMapper

public EntityHistoryRowMapper(RowMapperListener<EntityHistory<T>> listener)
Creates a new instance.

Parameters:
listener - The destination for result 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 Entity>
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.