org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class ActiveChangeset

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.ActiveChangeset

public class ActiveChangeset
extends java.lang.Object

Holds information about a changeset currently being used during entity writing to the database.

Author:
Brett Henderson

Constructor Summary
ActiveChangeset(long changesetId)
          Creates a new instance.
 
Method Summary
 long getChangesetId()
          Gets the database identifier of the changeset.
 int getEntityCount()
          Gets the number of entities that have been added using this changeset.
 void incrementEntityCount()
          Adds 1 to the current entity count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveChangeset

public ActiveChangeset(long changesetId)
Creates a new instance.

Parameters:
changesetId - The id of the changeset.
Method Detail

getChangesetId

public long getChangesetId()
Gets the database identifier of the changeset.

Returns:
The changeset id.

getEntityCount

public int getEntityCount()
Gets the number of entities that have been added using this changeset.

Returns:
The entity count.

incrementEntityCount

public void incrementEntityCount()
Adds 1 to the current entity count.