openfuture.bugbase.domain
Class VersionManager

java.lang.Object
  |
  +--openfuture.bugbase.domain.VersionManager

public class VersionManager
extends java.lang.Object

Manages versions of domain objects. Created: Tue Apr 25 20:39:54 2000

Version:
$Revision: 1.4 $
Author:
Wolfgang Reissenberger

Constructor Summary
VersionManager(Persistency persistency)
           
 
Method Summary
 VersionLabel getVersionLabel()
          Get the current persistency version.
 java.util.LinkedList getVersions()
          Returns a list of Version sorted in ascending order.
 java.util.LinkedList getVersions(Version maxVersion)
          Returns a list of Version sorted in ascending order less or equal than maxVersion.
 TransactionResult update(Version toVersion)
          Performs the update of the persistency.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionManager

public VersionManager(Persistency persistency)
Method Detail

getVersions

public java.util.LinkedList getVersions()
Returns a list of Version sorted in ascending order. For all these versions an update is available.
Returns:
list of available version updates (version after update)

getVersions

public java.util.LinkedList getVersions(Version maxVersion)
Returns a list of Version sorted in ascending order less or equal than maxVersion. For all these versions an update is available.
Parameters:
maxVersion - maximal Version
Returns:
list of available version updates (version after update)

update

public TransactionResult update(Version toVersion)
Performs the update of the persistency.
Parameters:
toVersion - version number to reach
Returns:
result of the update

getVersionLabel

public VersionLabel getVersionLabel()
                             throws I18NException
Get the current persistency version.
Returns:
the current persistency version.


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.