|
|||||||||
| 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.RelationDao
public class RelationDao
Performs all relation-specific db operations.
| Constructor Summary | |
|---|---|
RelationDao(DatabaseContext dbCtx)
Creates a new instance. |
|
| Method Summary | |
|---|---|
Relation |
getRelation(long relationId)
Loads the specified relation from the database. |
ReleasableIterator<Relation> |
iterate()
Returns an iterator providing access to all nodes in the database. |
ReleasableIterator<Relation> |
iterateBoundingBox(double left,
double right,
double top,
double bottom,
boolean completeRelations)
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 RelationDao(DatabaseContext dbCtx)
dbCtx - The database context to use for accessing the database.| Method Detail |
|---|
public Relation getRelation(long relationId)
relationId - The unique identifier of the relation.
public ReleasableIterator<Relation> iterate()
public ReleasableIterator<Relation> iterateBoundingBox(double left,
double right,
double top,
double bottom,
boolean completeRelations)
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.completeRelations - If true, all relations within the relations 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 | ||||||||