Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.bugbase.domain
Class VersionManager  view VersionManager download VersionManager.java

java.lang.Object
  extended byopenfuture.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.3 $

Field Summary
private  Persistency persistency
           
private  openfuture.bugbase.model.VersionLabel persistencyVersionLabel
           
private  java.util.Hashtable updates
           
private  java.util.LinkedList versions
           
 
Constructor Summary
VersionManager(Persistency persistency)
           
 
Method Summary
private  void addUpdate(openfuture.bugbase.model.VersionUpdate update)
          Adds update transactions to the available list, if its version label greater than the version label of the persistency.
 java.util.LinkedList getVersions()
          Returns a list of openfuture.bugbase.model.Version sorted in ascending order.
 java.util.LinkedList getVersions(openfuture.bugbase.model.Version maxVersion)
          Returns a list of openfuture.bugbase.model.Version sorted in ascending order less or equal than maxVersion.
private  void refresh()
          refreshes the attributes versions and updates.
 openfuture.bugbase.model.TransactionResult update(openfuture.bugbase.model.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
 

Field Detail

updates

private java.util.Hashtable updates

versions

private java.util.LinkedList versions

persistency

private Persistency persistency

persistencyVersionLabel

private openfuture.bugbase.model.VersionLabel persistencyVersionLabel
Constructor Detail

VersionManager

public VersionManager(Persistency persistency)
Method Detail

getVersions

public java.util.LinkedList getVersions()
Returns a list of openfuture.bugbase.model.Version sorted in ascending order. For all these versions an update is available.


getVersions

public java.util.LinkedList getVersions(openfuture.bugbase.model.Version maxVersion)
Returns a list of openfuture.bugbase.model.Version sorted in ascending order less or equal than maxVersion. For all these versions an update is available.


update

public openfuture.bugbase.model.TransactionResult update(openfuture.bugbase.model.Version toVersion)
Performs the update of the persistency.


addUpdate

private void addUpdate(openfuture.bugbase.model.VersionUpdate update)
Adds update transactions to the available list, if its version label greater than the version label of the persistency.


refresh

private void refresh()
refreshes the attributes versions and updates.