org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class WayDao

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.EntityDao<Way>
      extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.WayDao

public class WayDao
extends EntityDao<Way>

Provides access to ways in the database.


Constructor Summary
WayDao(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
          Creates a new instance.
 
Method Summary
protected  EntityContainerFactory<Way> getContainerFactory()
          Gets the entity container factory for the entity type.
protected  RowMapperListener<CommonEntityData> getEntityRowMapper(RowMapperListener<Way> entityListener)
          Creates a row mapper that receives common entity data objects and produces full entity objects.
protected  java.util.List<FeatureHistoryPopulator<Way,?,?>> getFeatureHistoryPopulators(java.lang.String selectedEntityStatement, org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource)
          Gets the history feature populators for the entity type.
protected  java.lang.String[] getTypeSpecificFieldNames()
          Produces an array of additional column names specific to this entity type to be returned by entity queries.
 
Methods inherited from class org.openstreetmap.osmosis.core.apidb.v0_6.impl.EntityDao
getCurrent, getHistory, getHistory, getHistory, getNamedParamJdbcTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WayDao

public WayDao(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Creates a new instance.

Parameters:
jdbcTemplate - Used to access the database.
Method Detail

getEntityRowMapper

protected RowMapperListener<CommonEntityData> getEntityRowMapper(RowMapperListener<Way> entityListener)
Creates a row mapper that receives common entity data objects and produces full entity objects.

Specified by:
getEntityRowMapper in class EntityDao<Way>
Parameters:
entityListener - The full entity object listener.
Returns:
The full entity row mapper.

getTypeSpecificFieldNames

protected java.lang.String[] getTypeSpecificFieldNames()
Produces an array of additional column names specific to this entity type to be returned by entity queries.

Specified by:
getTypeSpecificFieldNames in class EntityDao<Way>
Returns:
The column names.

getContainerFactory

protected EntityContainerFactory<Way> getContainerFactory()
Gets the entity container factory for the entity type.

Specified by:
getContainerFactory in class EntityDao<Way>
Returns:
The factory.

getFeatureHistoryPopulators

protected java.util.List<FeatureHistoryPopulator<Way,?,?>> getFeatureHistoryPopulators(java.lang.String selectedEntityStatement,
                                                                                       org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource)
Gets the history feature populators for the entity type.

Specified by:
getFeatureHistoryPopulators in class EntityDao<Way>
Parameters:
selectedEntityStatement - The statement for obtaining the id and version pairs of entity records selected.
parameterSource - The parameters required to execute the selected entity statement.
Returns:
The history feature populators.