Package com.ibm.dbb.build.report.records
Class CopyToPDSRecord
- java.lang.Object
-
- com.ibm.dbb.build.report.records.Record
-
- com.ibm.dbb.build.report.records.CopyToPDSRecord
-
public class CopyToPDSRecord extends Record
Create a record to store information about the command copying files to data set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCopyToPDSRecord.OutputInfo
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROP_COMMANDstatic java.lang.StringPROP_DATASETstatic java.lang.StringPROP_DEPLOY_TYPEstatic java.lang.StringPROP_DESTINATIONstatic java.lang.StringPROP_FILEstatic java.lang.StringPROP_MODEstatic java.lang.StringPROP_OUTPUTSstatic java.lang.StringPROP_RCstatic java.lang.StringPROP_SOURCE
-
Constructor Summary
Constructors Constructor Description CopyToPDSRecord()Construct a record with a default IDCopyToPDSRecord(java.lang.String id)Construct a record with the supplied ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOutput(java.lang.String dataset, java.lang.String deployType)Add the output to be stored in the build report.java.lang.StringgetCommand()Return the command "DBBCOPY" to be stored in the build report.java.lang.StringgetDataset()Return the dataset.java.lang.StringgetDeployType()Return the deploy type.java.lang.StringgetDestination()Return the data set to copy the file to.java.lang.StringgetFile()Return the file associated with the command.DBBConstants.CopyModegetMode()Return the copy mode.booleangetOutput()Return the output.java.util.List<CopyToPDSRecord.OutputInfo>getOutputs()Return the list of outputs being stored in the build report.intgetRc()Return the RC associated with the command.java.io.FilegetSource()Return the USS file to copy from.CopyToPDSRecordparse(com.google.gson.JsonObject jsonObj)Create the record from JSON.voidsetCommand(java.lang.String command)Set the command "DBBCOPY" to be stored in the build report.voidsetDataset(java.lang.String dataset)Set the dataset.voidsetDeployType(java.lang.String deployType)Set the deploy type.voidsetDestination(java.lang.String destination)Set the data set to copy the file to.voidsetFile(java.lang.String file)Set the file associated with the command to be stored in the build report.voidsetMode(DBBConstants.CopyMode mode)Set the copy mode.voidsetOutput(boolean output)Set the output.voidsetRc(int rc)Set the RC associated with the command.voidsetSource(java.io.File source)Set the USS file to copy from.com.google.gson.JsonObjecttoJSON()Returns the record in JSON format.
-
-
-
Field Detail
-
PROP_SOURCE
public static final java.lang.String PROP_SOURCE
- See Also:
- Constant Field Values
-
PROP_DESTINATION
public static final java.lang.String PROP_DESTINATION
- See Also:
- Constant Field Values
-
PROP_MODE
public static final java.lang.String PROP_MODE
- See Also:
- Constant Field Values
-
PROP_OUTPUTS
public static final java.lang.String PROP_OUTPUTS
- See Also:
- Constant Field Values
-
PROP_DEPLOY_TYPE
public static final java.lang.String PROP_DEPLOY_TYPE
- See Also:
- Constant Field Values
-
PROP_FILE
public static final java.lang.String PROP_FILE
- See Also:
- Constant Field Values
-
PROP_COMMAND
public static final java.lang.String PROP_COMMAND
- See Also:
- Constant Field Values
-
PROP_RC
public static final java.lang.String PROP_RC
- See Also:
- Constant Field Values
-
PROP_DATASET
public static final java.lang.String PROP_DATASET
- See Also:
- Constant Field Values
-
-
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.google.gson.JsonObject toJSON()
Returns the record in JSON format.
-
parse
public CopyToPDSRecord parse(com.google.gson.JsonObject jsonObj)
Create the record from JSON.
-
-