com.ibm.dbb.build.report.records

Class CopyToPDSRecord



  • public class CopyToPDSRecord
    extends Record
    Create a record to store information about the command copying files to data set.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CopyToPDSRecord()
      Construct a record with a default ID
      CopyToPDSRecord(java.lang.String id)
      Construct a record with the supplied ID.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addOutput(java.lang.String dataset, java.lang.String deployType)
      Add the output to be stored in the build report.
      java.lang.String getCommand()
      Return the command "DBBCOPY" to be stored in the build report.
      java.lang.String getDataset()
      Return the dataset.
      java.lang.String getDeployType()
      Return the deploy type.
      java.lang.String getDestination()
      Return the data set to copy the file to.
      java.lang.String getFile()
      Return the file associated with the command.
      DBBConstants.CopyMode getMode()
      Return the copy mode.
      boolean getOutput()
      Return the output.
      java.util.List<CopyToPDSRecord.OutputInfo> getOutputs()
      Return the list of outputs being stored in the build report.
      int getRc()
      Return the RC associated with the command.
      java.io.File getSource()
      Return the USS file to copy from.
      CopyToPDSRecord parse(com.ibm.json.java.JSONObject jsonObj)
      Create the record from JSON.
      void setCommand(java.lang.String command)
      Set the command "DBBCOPY" to be stored in the build report.
      void setDataset(java.lang.String dataset)
      Set the dataset.
      void setDeployType(java.lang.String deployType)
      Set the deploy type.
      void setDestination(java.lang.String destination)
      Set the data set to copy the file to.
      void setFile(java.lang.String file)
      Set the file associated with the command to be stored in the build report.
      void setMode(DBBConstants.CopyMode mode)
      Set the copy mode.
      void setOutput(boolean output)
      Set the output.
      void setRc(int rc)
      Set the RC associated with the command.
      void setSource(java.io.File source)
      Set the USS file to copy from.
      com.ibm.json.java.JSONObject toJSON()
      Returns the record in JSON format.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CopyToPDSRecord

        public CopyToPDSRecord()
        Construct a record with a default ID
      • CopyToPDSRecord

        public CopyToPDSRecord(java.lang.String id)
        Construct a record with the supplied ID.
        Parameters:
        id - the id of the record.
    • Method Detail

      • getSource

        public java.io.File getSource()
        Return the USS file to copy from.
        Returns:
        the USS file to copy from.
      • setSource

        public void setSource(java.io.File source)
        Set the USS file to copy from.
        Parameters:
        source - the USS file to copy from.
      • getDestination

        public java.lang.String getDestination()
        Return the data set to copy the file to.
        Returns:
        the data set to copy the file to.
      • setDestination

        public void setDestination(java.lang.String destination)
        Set the data set to copy the file to.
        Parameters:
        destination - the data set to copy the file to.
      • getMode

        public DBBConstants.CopyMode getMode()
        Return the copy mode. Possible values are: TEXT, BINARY, LOAD.
        Returns:
        mode
      • setMode

        public void setMode(DBBConstants.CopyMode mode)
        Set the copy mode. Possible values are: TEXT, BINARY, LOAD.
        Parameters:
        mode - the copy mode
      • getOutput

        public boolean getOutput()
        Return the output.
        Returns:
        the output.
      • setOutput

        public void setOutput(boolean output)
        Set the output.
        Parameters:
        output. -
      • getDeployType

        public java.lang.String getDeployType()
        Return the deploy type.
        Returns:
        the deploy type.
      • setDeployType

        public void setDeployType(java.lang.String deployType)
        Set the deploy type.
        Parameters:
        deployType - type.
      • getDataset

        public java.lang.String getDataset()
        Return the dataset.
        Returns:
        the dataset.
      • setDataset

        public void setDataset(java.lang.String dataset)
        Set the dataset.
        Parameters:
        dataset. -
      • setFile

        public void setFile(java.lang.String file)
        Set the file associated with the command to be stored in the build report.
        Parameters:
        file - the file associated with the command.
      • getFile

        public java.lang.String getFile()
        Return the file associated with the command.
        Returns:
        the file associated with the command.
      • getCommand

        public java.lang.String getCommand()
        Return the command "DBBCOPY" to be stored in the build report.
        Returns:
        the command "DBBCOPY" to be stored in the build report.
      • setCommand

        public void setCommand(java.lang.String command)
        Set the command "DBBCOPY" to be stored in the build report.
        Parameters:
        command - the command "DBBCOPY" to be stored in the build report.
      • getRc

        public int getRc()
        Return the RC associated with the command.
        Returns:
        the RC associated with the command.
      • setRc

        public void setRc(int rc)
        Set the RC associated with the command.
        Parameters:
        rc - the RC associated with the command.
      • addOutput

        public void addOutput(java.lang.String dataset,
                              java.lang.String deployType)
        Add the output to be stored in the build report.
        Parameters:
        dataset - the output to be stored in the build report.
        deployType - the output to be stored in the build report.
      • getOutputs

        public java.util.List<CopyToPDSRecord.OutputInfo> getOutputs()
        Return the list of outputs being stored in the build report.
        Returns:
        the list of outputs being stored in the build report.
      • toJSON

        public com.ibm.json.java.JSONObject toJSON()
        Returns the record in JSON format.
        Overrides:
        toJSON in class Record
        Returns:
        the JSON format of this record.
      • parse

        public CopyToPDSRecord parse(com.ibm.json.java.JSONObject jsonObj)
        Create the record from JSON.
        Overrides:
        parse in class Record
        Parameters:
        jsonObj - The object in JSON to be parsed.
        Returns:
        the record representing by the supplied JSON contents.

<IBM Copyright © 2018 IBM Corp. All Rights Reserved.