org.openstreetmap.osmosis.core.pgsql.v0_6.impl
Class NodeDao

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pgsql.common.BaseDao
      extended by org.openstreetmap.osmosis.core.pgsql.v0_6.impl.EntityDao<Node>
          extended by org.openstreetmap.osmosis.core.pgsql.v0_6.impl.NodeDao
All Implemented Interfaces:
Releasable

public class NodeDao
extends EntityDao<Node>

Performs all node-specific db operations.

Author:
Brett Henderson

Constructor Summary
NodeDao(DatabaseContext dbCtx, ActionDao actionDao)
          Creates a new instance.
 
Method Summary
 ReleasableIterator<Node> iterate()
          Returns an iterator providing access to all entities in the database.
protected  void loadFeatures(long entityId, Node entity)
          Adds the type specific features to the entity.
 void modifyEntity(Node entity)
          Updates the specified entity details in the database.
 
Methods inherited from class org.openstreetmap.osmosis.core.pgsql.v0_6.impl.EntityDao
addEntity, exists, getEntity, removeEntity
 
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

NodeDao

public NodeDao(DatabaseContext dbCtx,
               ActionDao actionDao)
Creates a new instance.

Parameters:
dbCtx - The database context to use for accessing the database.
actionDao - The dao to use for adding action records to the database.
Method Detail

loadFeatures

protected void loadFeatures(long entityId,
                            Node entity)
Adds the type specific features to the entity.

Specified by:
loadFeatures in class EntityDao<Node>
Parameters:
entityId - The entity id.
entity - The entity requiring features to be added.

modifyEntity

public void modifyEntity(Node entity)
Updates the specified entity details in the database.

Overrides:
modifyEntity in class EntityDao<Node>
Parameters:
entity - The entity to update.

iterate

public ReleasableIterator<Node> iterate()
Returns an iterator providing access to all entities in the database.

Specified by:
iterate in class EntityDao<Node>
Returns:
The entity iterator.