com.bretth.osmosis.core.pgsql.v0_6.impl
Class NodeDao

java.lang.Object
  extended by com.bretth.osmosis.core.pgsql.common.BaseDao
      extended by com.bretth.osmosis.core.pgsql.v0_6.impl.EntityDao<Node>
          extended by com.bretth.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.
 void modifyEntity(Node entity)
          Updates the specified entity details in the database.
 
Methods inherited from class com.bretth.osmosis.core.pgsql.v0_6.impl.EntityDao
addEntity, exists, getEntity, removeEntity
 
Methods inherited from class com.bretth.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

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.