org.openstreetmap.osmosis.core.apidb.v0_6
Class ApidbTruncator

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.ApidbTruncator
All Implemented Interfaces:
java.lang.Runnable, RunnableTask, Task

public class ApidbTruncator
extends java.lang.Object
implements RunnableTask

A standalone OSM task with no inputs or outputs that truncates tables in a apidb database. This is used for removing all existing data from tables.

Author:
Brett Henderson

Constructor Summary
ApidbTruncator(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences)
          Creates a new instance.
 
Method Summary
 void run()
          Truncates all data from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApidbTruncator

public ApidbTruncator(DatabaseLoginCredentials loginCredentials,
                      DatabasePreferences preferences)
Creates a new instance.

Parameters:
loginCredentials - Contains all information required to connect to the database.
preferences - Contains preferences configuring database behaviour.
Method Detail

run

public void run()
Truncates all data from the database.

Specified by:
run in interface java.lang.Runnable