|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.v0_5.impl.WayDao
public class WayDao
Performs all way-specific db operations.
| Constructor Summary | |
|---|---|
WayDao(DatabaseContext dbCtx)
Creates a new instance. |
|
| Method Summary | |
|---|---|
Way |
getWay(long wayId)
Loads the specified way from the database. |
ReleasableIterator<Way> |
iterate()
Returns an iterator providing access to all ways in the database. |
ReleasableIterator<Way> |
iterateBoundingBox(double left,
double right,
double top,
double bottom,
boolean completeWays)
Allows all data within a bounding box to be iterated across. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WayDao(DatabaseContext dbCtx)
dbCtx - The database context to use for accessing the database.| Method Detail |
|---|
public Way getWay(long wayId)
wayId - The unique identifier of the way.
public ReleasableIterator<Way> iterate()
public ReleasableIterator<Way> iterateBoundingBox(double left,
double right,
double top,
double bottom,
boolean completeWays)
left - The longitude marking the left edge of the bounding box.right - The longitude marking the right edge of the bounding box.top - The latitude marking the top edge of the bounding box.bottom - The latitude marking the bottom edge of the bounding box.completeWays - If true, all ways within the ways will be returned even if
they lie outside the box.
public void release()
release in interface Releasable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||