Class i5OSObject

  • All Implemented Interfaces:
    OSHostable, Referenceable

    public final class i5OSObject
    extends Action
    implements OSHostable
    Enables one or more objects in the same library to be restored to an i5/OS system. At build time, the Save Objects (SAVOBJ) command is called to save the objects from the i5/OS build system. At install time, the Restore Objects (RSTOBJ) command is called to restore the objects to the target system.
    • Constructor Detail

      • i5OSObject

        public i5OSObject()
    • Method Detail

      • getTargetRelease

        public java.lang.String getTargetRelease()
        Returns the minimum supported release level of the operating system on which you intend to restore the objects. Choose from *CURRENT, *PRV, or Other (type a six-character release value in the format VxRxMx, where x is a digit (0-9)). Default: *CURRENT.
      • setTargetRelease

        public void setTargetRelease​(java.lang.String targetRelease)
        Defines the minimum supported release level of the operating system on which you intend to restore the objects. Choose from *CURRENT, *PRV, or Other (type a six-character release value in the format VxRxMx, where x is a digit (0-9)). Default: *CURRENT.
      • getTargetLibrary

        public java.lang.String getTargetLibrary()
        Returns the name of the library to which the objects are restored on the target system. Use *SAVLIB to restore objects to the same library. Default: *SAVLIB.
      • setAdditionalRestoreParameters

        public void setAdditionalRestoreParameters​(java.lang.String additionalRestoreParameters)
        Defines the additional parameters to pass to the RSTLIB command at install time.
      • getAdditionalSaveParameters

        public java.lang.String getAdditionalSaveParameters()
        Returns the additional parameters to pass to the SAVLIB command at build time. Default: OPTION(*ALL) MBROPT(*MATCH).
      • setAdditionalSaveParameters

        public void setAdditionalSaveParameters​(java.lang.String additionalSaveParameters)
        Defines the additional parameters to pass to the SAVLIB command at build time. Default: OPTION(*ALL) MBROPT(*MATCH).
      • getAdditionalRestoreParameters

        public java.lang.String getAdditionalRestoreParameters()
        Returns the additional parameters to pass to the RSTLIB command at install time.
      • getSourceObjects

        public java.lang.String getSourceObjects()
        Returns the names of the objects to save from the source library. Both generic names and specific names can be used. Generic names are specified with an asterisk (for example, A*). In i5/OS, the Display Library (DSPLIB) command can be used to find the available objects in a library. Default: *ALL.
      • setSourceObjects

        public void setSourceObjects​(java.lang.String sourceObjects)
        Defines the names of the objects to save from the source library. Both generic names and specific names can be used. Generic names are specified with an asterisk (for example, A*). In i5/OS, the Display Library (DSPLIB) command can be used to find the available objects in a library. Default: *ALL.
      • getObjectType

        public java.lang.String getObjectType()
        Returns the types of objects to save. Use *ALL to save all object types, or enter the specific object type you want to save. In i5/OS, the Display Library (DSPLIB) command can be used to find the available object types in a library. Default: *ALL.
      • setObjectType

        public void setObjectType​(java.lang.String objectType)
        Defines the types of objects to save. Use *ALL to save all object types, or enter the specific object type you want to save. In i5/OS, the Display Library (DSPLIB) command can be used to find the available object types in a library. Default: *ALL.
      • getSourceLibrary

        public java.lang.String getSourceLibrary()
        Returns the name of the library from which the objects are saved on the i5/OS build system. Both generic names and specific names can be used. Generic names are specified with an asterisk (for example, A*). In i5/OS, the Display Library (DSPLIB) command can be used to find the available objects in a library.
      • setSourceLibrary

        public void setSourceLibrary​(java.lang.String sourceLibrary)
        Defines the name of the library from which the objects are saved on the i5/OS build system. Both generic names and specific names can be used. Generic names are specified with an asterisk (for example, A*). In i5/OS, the Display Library (DSPLIB) command can be used to find the available objects in a library.
      • setTargetLibrary

        public void setTargetLibrary​(java.lang.String targetLibrary)
        Defines the name of the library to which the objects are restored on the target system. Use *SAVLIB to restore objects to the same library. Default: *SAVLIB.