it.openutils.migration
Interface DbVersionManager

All Known Implementing Classes:
DefaultDbVersionManagerImpl

public interface DbVersionManager

Version:
$Id: DbVersionManager.java 526 2008-01-14 12:00:28Z fgiust $
Author:
fgiust

Method Summary
 int getCurrentVersion()
          Returns the current version for the db, usually reading from a configuration table.
 void setNewVersion(int version)
          Saves a new version for the db.
 

Method Detail

getCurrentVersion

int getCurrentVersion()
Returns the current version for the db, usually reading from a configuration table. This should also handle table initialization.

Returns:
current db version

setNewVersion

void setNewVersion(int version)
Saves a new version for the db.

Parameters:
version - new version


Copyright © 2008 Openmind. All Rights Reserved.