|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.mysql.common.BaseTableReader<T>
org.openstreetmap.osmosis.core.mysql.v0_5.impl.BaseEntityReader<EntityHistory<Relation>>
org.openstreetmap.osmosis.core.mysql.v0_5.impl.RelationTableReader
public class RelationTableReader
Reads all relations from a database ordered by their identifier. These relations won't be populated with members and tags.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.openstreetmap.osmosis.core.mysql.common.BaseTableReader |
|---|
BaseTableReader.ReadResult<T> |
| Constructor Summary | |
|---|---|
RelationTableReader(DatabaseLoginCredentials loginCredentials,
boolean readAllUsers)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected BaseTableReader.ReadResult<EntityHistory<Relation>> |
createNextValue(java.sql.ResultSet resultSet)
Builds an entity object from the current recordset row. |
protected java.sql.ResultSet |
createResultSet(DatabaseContext queryDbCtx)
Builds the result set that the reader will iterate over. |
| Methods inherited from class org.openstreetmap.osmosis.core.mysql.v0_5.impl.BaseEntityReader |
|---|
readUserField |
| Methods inherited from class org.openstreetmap.osmosis.core.mysql.common.BaseTableReader |
|---|
createLastValue, hasNext, next, release, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelationTableReader(DatabaseLoginCredentials loginCredentials,
boolean readAllUsers)
loginCredentials - Contains all information required to connect to the database.readAllUsers - If this flag is true, all users will be read from the database
regardless of their public edits flag.| Method Detail |
|---|
protected java.sql.ResultSet createResultSet(DatabaseContext queryDbCtx)
createResultSet in class BaseTableReader<EntityHistory<Relation>>queryDbCtx - The database context to query against.
protected BaseTableReader.ReadResult<EntityHistory<Relation>> createNextValue(java.sql.ResultSet resultSet)
createNextValue in class BaseTableReader<EntityHistory<Relation>>resultSet - The record set to retrieve the data from.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||