org.openstreetmap.osmosis.core.pgsql.v0_5.impl
Class WayNodeTableReader
java.lang.Object
org.openstreetmap.osmosis.core.pgsql.common.BaseTableReader<DBWayNode>
org.openstreetmap.osmosis.core.pgsql.v0_5.impl.WayNodeTableReader
- All Implemented Interfaces:
- java.util.Iterator<DBWayNode>, Releasable, ReleasableIterator<DBWayNode>
public class WayNodeTableReader
- extends BaseTableReader<DBWayNode>
Reads all way nodes from a database ordered by the way identifier but not
by the sequence.
- Author:
- Brett Henderson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WayNodeTableReader
public WayNodeTableReader(DatabaseContext dbCtx)
- Creates a new instance.
- Parameters:
dbCtx
- The active connection to use for reading from the database.
WayNodeTableReader
public WayNodeTableReader(DatabaseContext dbCtx,
java.lang.String constraintTable)
- Creates a new instance.
- Parameters:
dbCtx
- The active connection to use for reading from the database.constraintTable
- The table containing a column named id defining the list of
entities to be returned.
createResultSet
protected java.sql.ResultSet createResultSet(DatabaseContext queryDbCtx)
- Builds the result set that the reader will iterate over.
- Specified by:
createResultSet
in class BaseTableReader<DBWayNode>
- Parameters:
queryDbCtx
- The database context to query against.
- Returns:
- A result set positioned before the first record.
createNextValue
protected BaseTableReader.ReadResult<DBWayNode> createNextValue(java.sql.ResultSet resultSet)
- Builds an entity object from the current recordset row.
- Specified by:
createNextValue
in class BaseTableReader<DBWayNode>
- Parameters:
resultSet
- The record set to retrieve the data from.
- Returns:
- The result of the read.