com.ibm.as400.access

Class PTF

  • java.lang.Object
    • com.ibm.as400.access.PTF


  • public class PTF
    extends java.lang.Object
    Represents a Program Temporary Fix (PTF) for a licensed program product. Call refresh() to reload all of the values from the system. Individual getters will only refresh their own necessary information.
    See Also:
    Product.getPTFs(boolean)
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String ACTION_NOT_REQUIRED
      Constant indicating that no action is required.
      static java.lang.String ACTION_REQUIRED_CANNOT_VERIFY
      Constant indicating that the PTF contains activation instructions in the cover letter, but no exit program exists to verify the activation instructions were performed.
      static java.lang.String ACTION_REQUIRED_EXIT_PROGRAM
      Constant indicating that the PTF contains activation instructions in the cover letter.
      static int IPL_ACTION_APPLY_PERMANENT
      Constant indicating the PTF will be permanently applied at the next IPL.
      static int IPL_ACTION_APPLY_TEMPORARY
      Constant indicating the PTF will be temporarily applied at the next IPL.
      static int IPL_ACTION_NONE
      Constant indicating no action will occur at the next IPL.
      static int IPL_ACTION_REMOVE_PERMANENT
      Constant indicating the PTF will be permanently removed at the next IPL.
      static int IPL_ACTION_REMOVE_TEMPORARY
      Constant indicating the PTF will be temporarily removed at the next IPL.
      static java.lang.String IPL_SOURCE_A
      Constant indicating the system is currently operating on the A IPL source.
      static java.lang.String IPL_SOURCE_B
      Constant indicating the system is currently operating on the B IPL source.
      static java.lang.String IPL_SOURCE_UNKNOWN
      Constant indicating the current IPL source could not be determined.
      static java.lang.String PRODUCT_ID_ONLY
      Constant representing a product ID of *ONLY.
      static java.lang.String PRODUCT_RELEASE_ONLY
      Constant representing a release level of *ONLY.
      static java.lang.String PTF_TYPE_DELAYED
      Constant indicating that the PTF is delayed and must be applied at IPL time.
      static java.lang.String PTF_TYPE_IMMEDIATE
      Constant indicating that the PTF is immediate and can be applied immediately.
      static java.lang.String PTF_TYPE_UNKNOWN
      Constant indicating that the PTF type is not known.
      static java.lang.String RELATIONSHIP_COREQ
      Constant indicating that there is a co-requisite relationship between two PTFs.
      static java.lang.String RELATIONSHIP_DEPEND
      Constant indicating that there is a dependent (pre-requisite) relationship between two PTFs.
      static java.lang.String RELATIONSHIP_DSTREQ
      Constant indicating that there is a distribution requisite relationship between two PTFs.
      static java.lang.String RELATIONSHIP_NONE
      Constant indicating that there is no known relationship between two PTFs.
      static java.lang.String RELATIONSHIP_PREREQ
      Constant indicating that there is a pre-requisite relationship between two PTFs.
      static java.lang.String RELATIONSHIP_SAME
      Constant indicating that two PTFs are identical.
      static java.lang.String RELATIONSHIP_TRREQ
      Constant indicating that there is a technology refresh requisite relationship between two PTFs.
      static java.lang.String STATUS_APPLIED
      Constant indicating that a PTF is applied.
      static java.lang.String STATUS_APPLIED_PERMANENT
      Constant indicating that a PTF is permanently applied.
      static java.lang.String STATUS_DAMAGED
      Constant indicating that a PTF is damaged.
      static java.lang.String STATUS_LOADED
      Constant indicating that a PTF is loaded.
      static java.lang.String STATUS_NOT_LOADED
      Constant indicating that a PTF is not loaded.
      static java.lang.String STATUS_REMOVED_PERMANENT
      Constant indicating that a PTF is permanently removed.
      static java.lang.String STATUS_SUPERSEDED
      Constant indicating that a PTF is superseded.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PTF(AS400 system, java.lang.String ptfID)
      Constructs a PTF object.
      PTF(AS400 system, java.lang.String ptfID, java.lang.String productID, java.lang.String releaseLevel)
      Constructs a PTF object.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getActionRequired()
      Returns the action required to make this PTF active when it is applied.
      java.lang.String[] getAPARNumbers()
      Retrieves the list of APAR numbers that were fixed by this PTF.
      PTFCoverLetter getCoverLetter()
      Retrieves the cover letter for this PTF from the system.
      PTFCoverLetter getCoverLetter(java.util.Locale locale)
      Retrieves the cover letter for this PTF from the system based on the given locale.
      PTFCoverLetter[] getCoverLetters()
      Retrieves the cover letters for this PTF from the system, if they exist.
      java.util.Date getCreationDate()
      Returns the date and time that the PTF was created.
      java.lang.String getCurrentIPLSource()
      Returns the copy of Licensed Internal Code that the system is currently operating from.
      PTF[] getDependentPTFs()
      Retrieves the list of PTFs that are dependent upon this PTF.
      PTFExitProgram[] getExitPrograms()
      Retrieves the list of exit programs for this PTF.
      java.lang.String getID()
      Returns the ID number for this PTF.
      int getIPLAction()
      Returns the action to be taken on this PTF during the next IPL.
      java.lang.String getIPLRequired()
      Returns the type of PTF (delayed or immediate).
      java.lang.String getLICGroup()
      Returns the name of the Licensed Internal Code Group for this PTF.
      java.lang.String getLoadedStatus()
      Returns the current loaded status of this PTF.
      java.lang.String getLoadedStatusMessage(java.lang.String loadedStatus)
      Returns the translated description text for the specified status.
      java.lang.String getMaximumLevel()
      Returns the highest release level of the product on which this PTF can be installed.
      java.lang.String getMinimumLevel()
      Returns the lowest release level of the product on which this PTF can be installed.
      java.lang.String getOmitStatus()
      Return omit status for PTF getting by PTFGroup.getPTFs()
      java.lang.String getProductFeature()
      Returns the product feature to which this PTF applies.
      java.lang.String getProductID()
      Returns the product ID of this PTF.
      java.lang.String getProductOption()
      Returns the product option to which this PTF applies.
      java.lang.String getProductStatus()
      Return product status for PTF getting by PTFGroup.getPTFs()
      java.lang.String getRelationship(PTF ptf)
      Returns the relationship between this PTF and another PTF.
      java.lang.String getReleaseLevel()
      Returns the release level of this PTF.
      PTF[] getRequisitePTFs()
      Retrieves the list of pre- and co-requisite PTFs for this PTF.
      java.lang.String getSaveFile()
      Returns the full pathname of the save file for this PTF, if one exists.
      int getServerIPLRequired()
      Indicates whether a server IPL must be performed in order to activate the changes for the PTF.
      java.util.Date getStatusDate()
      Returns the date and time the PTF status last changed.
      java.lang.String getSupersedingPTF()
      Returns the PTF ID of the PTF that supersedes this PTF.
      java.lang.String[] getSymptomStrings()
      Returns the list of symptom strings for the problems fixed by this PTF.
      java.lang.String getTargetRelease()
      Returns the earliest release of the operating system on which you can load and apply this PTF.
      boolean getTechRefreshPTF()
      Deprecated. 
      Use isTechRefreshPTF() instead.
      boolean isActionPending()
      Indicates if a required action has yet to be performed to make this PTF active.
      boolean isConditional()
      Indicates if this PTF has a conditional relationship with any of its dependents or requisites.
      boolean isCoRequisite()
      Indicates if this PTF has a co-requisite relationship with another PTF.
      boolean isDependent()
      Indicates if this PTF has a dependent relationship with another PTF.
      boolean isDistRequisite() 
      boolean isOnOrder()
      Indicates if this PTF has been ordered.
      boolean isPreRequisite()
      Indicates if this PTF has a pre-requisite relationship with another PTF.
      boolean isReleased()
      Indicates if the PTF save file is available for distribution to other systems.
      boolean isRequired()
      Indicates if this PTF is required on the system because it is a pre-requisite for another PTF.
      boolean isTechRefreshPTF() 
      boolean isTechRefreshRequisite() 
      void refresh()
      Refreshes all the values for this PTF by retrieving them from the system.
      java.lang.String toString()
      Returns a String representation of this PTF in the format "PTF ID/release level/product ID".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait