com.ptc.windchill.upgrade.history
Class IUHPersistenceDelegate

java.lang.Object
  extended bycom.ptc.windchill.upgrade.history.IUHPersistenceDelegate
Direct Known Subclasses:
JdbcIUHPersistenceDelegate, XmlIUHPersistenceDelegate

public abstract class IUHPersistenceDelegate
extends Object


Field Summary
private  LinkedList invalidateables_
           
 
Constructor Summary
IUHPersistenceDelegate()
           
 
Method Summary
protected  void addInvalidateable(Invalidateable invalidateable)
           
protected abstract  boolean areAssembliesDirty(Installation installation)
           
protected abstract  boolean areInstallationsDirty()
           
protected abstract  boolean areIUApplicationsDirty(UpgradePhase upgrade_phase)
           
protected abstract  boolean areUpgradePhasesDirty(Installation installation)
           
protected abstract  void clear()
          Removes all contents from the history.
protected abstract  Assembly createAssembly(Installation installation, ReleaseId release_identifier)
           
protected abstract  Installation createInstallation(Date timestamp)
           
protected abstract  IUApplication createIUApplication(UpgradePhase upgrade_phase, UUID uuid, String name)
           
protected abstract  UpgradePhase createUpgradePhase(Installation installation, UpgradePhaseType phase_type)
           
protected  void flush()
          Force any pending stores for this history.
protected abstract  ArrayList getAssemblies(Installation installation)
           
protected abstract  ArrayList getInstallations()
           
protected abstract  ArrayList getIUApplications(UpgradePhase upgrade_phase)
           
protected abstract  ArrayList getUpgradePhases(Installation installation)
           
(package private)  void invalidate()
           
protected abstract  boolean isComplete(Installation installation)
           
protected abstract  boolean isComplete(UpgradePhase upgrade_phase)
           
protected abstract  void markComplete(Installation installation, boolean complete)
           
protected abstract  void markComplete(UpgradePhase upgrade_phase, boolean complete)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invalidateables_

private LinkedList invalidateables_
Constructor Detail

IUHPersistenceDelegate

public IUHPersistenceDelegate()
Method Detail

areInstallationsDirty

protected abstract boolean areInstallationsDirty()

getInstallations

protected abstract ArrayList getInstallations()
                                       throws IUHException
Throws:
IUHException

createInstallation

protected abstract Installation createInstallation(Date timestamp)
                                            throws IUHException
Throws:
IUHException

markComplete

protected abstract void markComplete(Installation installation,
                                     boolean complete)
                              throws IUHException
Throws:
IUHException

areAssembliesDirty

protected abstract boolean areAssembliesDirty(Installation installation)

getAssemblies

protected abstract ArrayList getAssemblies(Installation installation)
                                    throws IUHException
Throws:
IUHException

createAssembly

protected abstract Assembly createAssembly(Installation installation,
                                           ReleaseId release_identifier)
                                    throws IUHException
Throws:
IUHException

areUpgradePhasesDirty

protected abstract boolean areUpgradePhasesDirty(Installation installation)

getUpgradePhases

protected abstract ArrayList getUpgradePhases(Installation installation)
                                       throws IUHException
Throws:
IUHException

isComplete

protected abstract boolean isComplete(Installation installation)
                               throws IUHException
Throws:
IUHException

createUpgradePhase

protected abstract UpgradePhase createUpgradePhase(Installation installation,
                                                   UpgradePhaseType phase_type)
                                            throws IUHException
Throws:
IUHException

markComplete

protected abstract void markComplete(UpgradePhase upgrade_phase,
                                     boolean complete)
                              throws IUHException
Throws:
IUHException

areIUApplicationsDirty

protected abstract boolean areIUApplicationsDirty(UpgradePhase upgrade_phase)

isComplete

protected abstract boolean isComplete(UpgradePhase upgrade_phase)
                               throws IUHException
Throws:
IUHException

getIUApplications

protected abstract ArrayList getIUApplications(UpgradePhase upgrade_phase)
                                        throws IUHException
Throws:
IUHException

createIUApplication

protected abstract IUApplication createIUApplication(UpgradePhase upgrade_phase,
                                                     UUID uuid,
                                                     String name)
                                              throws IUHException
Throws:
IUHException

addInvalidateable

protected final void addInvalidateable(Invalidateable invalidateable)

clear

protected abstract void clear()
                       throws IUHException
Removes all contents from the history.

Throws:
IUHException

flush

protected void flush()
              throws IUHException
Force any pending stores for this history.

Throws:
IUHException

invalidate

final void invalidate()