|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.v0_6.impl.EntityMapper<Way>
org.openstreetmap.osmosis.core.pgsql.v0_6.impl.WayMapper
public class WayMapper
Reads and writes way attributes to jdbc classes.
| Constructor Summary | |
|---|---|
WayMapper()
Creates a new instance. |
|
WayMapper(boolean supportBboxColumn,
boolean supportLinestringColumn)
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.lang.Class<Way> |
getEntityClass()
Returns the class type for the entity. |
java.lang.String |
getEntityName()
Returns the name of the entity to substitute into SQL statements. |
ActionDataType |
getEntityType()
Returns the action data type of the entity. |
protected java.lang.String[] |
getTypeSpecificFieldNames()
Produces an array of additional column names specific to this entity type to be returned by entity queries. |
Way |
parseRecord(java.sql.ResultSet resultSet)
Creates a new entity based upon the current row in the result set. |
int |
populateEntityParameters(java.sql.PreparedStatement statement,
int initialIndex,
Way way)
Sets entity values as bind variable parameters to an entity insert query. |
int |
populateEntityParameters(java.sql.PreparedStatement statement,
int initialIndex,
Way way,
java.util.List<org.postgis.Geometry> geometries)
Sets entity values as bind variable parameters to an entity insert query. |
| Methods inherited from class org.openstreetmap.osmosis.core.pgsql.v0_6.impl.EntityMapper |
|---|
buildUser, getSqlDelete, getSqlInsert, getSqlSelect, getSqlSelectCount, getSqlUpdate, populateCommonEntityParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WayMapper()
public WayMapper(boolean supportBboxColumn,
boolean supportLinestringColumn)
supportBboxColumn - If true, the bounding box column will be included in updates.supportLinestringColumn - If true, the linestring column will be included in updates.| Method Detail |
|---|
public java.lang.String getEntityName()
getEntityName in class EntityMapper<Way>public ActionDataType getEntityType()
getEntityType in class EntityMapper<Way>public java.lang.Class<Way> getEntityClass()
getEntityClass in class EntityMapper<Way>protected java.lang.String[] getTypeSpecificFieldNames()
getTypeSpecificFieldNames in class EntityMapper<Way>public Way parseRecord(java.sql.ResultSet resultSet)
parseRecord in class EntityMapper<Way>resultSet - The result set to read from.
public int populateEntityParameters(java.sql.PreparedStatement statement,
int initialIndex,
Way way)
populateEntityParameters in class EntityMapper<Way>statement - The prepared statement to add the values to.initialIndex - The offset index of the first variable to set.way - The entity containing the data to be inserted.
public int populateEntityParameters(java.sql.PreparedStatement statement,
int initialIndex,
Way way,
java.util.List<org.postgis.Geometry> geometries)
statement - The prepared statement to add the values to.initialIndex - The offset index of the first variable to set.way - The entity containing the data to be inserted.geometries - The geometries to store against the way.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||