|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.common.BaseDao
org.openstreetmap.osmosis.core.pgsql.v0_6.impl.EntityDao<Way>
org.openstreetmap.osmosis.core.pgsql.v0_6.impl.WayDao
public class WayDao
Performs all way-specific db operations.
Constructor Summary | |
---|---|
WayDao(DatabaseContext dbCtx,
ActionDao actionDao)
Creates a new instance. |
Method Summary | |
---|---|
void |
addEntity(Way entity)
Adds the specified entity to the database. |
ReleasableIterator<Way> |
iterate()
Returns an iterator providing access to all entities in the database. |
protected void |
loadFeatures(long entityId,
Way entity)
Adds the type specific features to the entity. |
void |
modifyEntity(Way entity)
Updates the specified entity details in the database. |
void |
removeEntity(long entityId)
Removes the specified entity from the database. |
Methods inherited from class org.openstreetmap.osmosis.core.pgsql.v0_6.impl.EntityDao |
---|
exists, getEntity |
Methods inherited from class org.openstreetmap.osmosis.core.pgsql.common.BaseDao |
---|
getDatabaseContext, prepareStatement, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WayDao(DatabaseContext dbCtx, ActionDao actionDao)
dbCtx
- The database context to use for accessing the database.actionDao
- The dao to use for adding action records to the database.Method Detail |
---|
protected void loadFeatures(long entityId, Way entity)
loadFeatures
in class EntityDao<Way>
entityId
- The entity id.entity
- The entity requiring features to be added.public void addEntity(Way entity)
addEntity
in class EntityDao<Way>
entity
- The entity to add.public void modifyEntity(Way entity)
modifyEntity
in class EntityDao<Way>
entity
- The entity to update.public void removeEntity(long entityId)
removeEntity
in class EntityDao<Way>
entityId
- The id of the entity to remove.public ReleasableIterator<Way> iterate()
iterate
in class EntityDao<Way>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |