com.ibm.dbb.build.report.records

Class CopyToHFSRecord



  • public class CopyToHFSRecord
    extends Record
    The record to store information about the command copying files to HFS.
    • Constructor Detail

      • CopyToHFSRecord

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

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

      • getSource

        public java.lang.String getSource()
        Returns the data set to copy from.
        Returns:
        the data set to copy from.
      • setSource

        public void setSource(java.lang.String source)
        Set the data set to copy from.
        Parameters:
        source - the data set to copy from.
      • getDestination

        public java.io.File getDestination()
        The USS file to copy the data set to.
        Returns:
        the USS file to copy the data set to.
      • setDestination

        public void setDestination(java.io.File destination)
        Set the USS file to copy the data set to.
        Parameters:
        destination - the USS file to copy the data set 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
      • 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 CopyToHFSRecord 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.