uk.ac.kcl.cch.jb.pliny
Class DbVersionManager

java.lang.Object
  extended byuk.ac.kcl.cch.jb.pliny.DbVersionManager

public class DbVersionManager
extends Object

This class provides a mechanism to update the structure of the backing Pliny database whenever a new version of the Pliny software is installed.

Author:
John Bradley

Constructor Summary
DbVersionManager(PlinyPlugin plugin)
          creates an instance of the manager for the current plugin.
 
Method Summary
 void run()
          checks the backing database for its version, and updates it as necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbVersionManager

public DbVersionManager(PlinyPlugin plugin)
creates an instance of the manager for the current plugin. The plugin code will run this manager as a part of its startup processing.

Parameters:
plugin -
Method Detail

run

public void run()
checks the backing database for its version, and updates it as necessary.