public class CopyToPDSRecord extends Record
Modifier and Type | Class and Description |
---|---|
static class |
CopyToPDSRecord.OutputInfo |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_COMMAND |
static java.lang.String |
PROP_DATASET |
static java.lang.String |
PROP_DEPLOY_TYPE |
static java.lang.String |
PROP_DESTINATION |
static java.lang.String |
PROP_FILE |
static java.lang.String |
PROP_MODE |
static java.lang.String |
PROP_OUTPUTS |
static java.lang.String |
PROP_RC |
static java.lang.String |
PROP_SOURCE |
Constructor and Description |
---|
CopyToPDSRecord()
Construct a record with a default ID
|
CopyToPDSRecord(java.lang.String id)
Construct a record with the supplied ID.
|
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.
|
public static final java.lang.String PROP_SOURCE
public static final java.lang.String PROP_DESTINATION
public static final java.lang.String PROP_MODE
public static final java.lang.String PROP_OUTPUTS
public static final java.lang.String PROP_DEPLOY_TYPE
public static final java.lang.String PROP_FILE
public static final java.lang.String PROP_COMMAND
public static final java.lang.String PROP_RC
public static final java.lang.String PROP_DATASET
public CopyToPDSRecord()
public CopyToPDSRecord(java.lang.String id)
id
- the id of the record.public java.io.File getSource()
public void setSource(java.io.File source)
source
- the USS file to copy from.public java.lang.String getDestination()
public void setDestination(java.lang.String destination)
destination
- the data set to copy the file to.public DBBConstants.CopyMode getMode()
TEXT, BINARY,
LOAD
.public void setMode(DBBConstants.CopyMode mode)
TEXT, BINARY,
LOAD
.mode
- the copy modepublic boolean getOutput()
public void setOutput(boolean output)
output.
- public java.lang.String getDeployType()
public void setDeployType(java.lang.String deployType)
deployType
- type.public java.lang.String getDataset()
public void setDataset(java.lang.String dataset)
dataset.
- public void setFile(java.lang.String file)
file
- the file associated with the command.public java.lang.String getFile()
public java.lang.String getCommand()
public void setCommand(java.lang.String command)
command
- the command "DBBCOPY" to be stored in the build report.public int getRc()
public void setRc(int rc)
rc
- the RC associated with the command.public void addOutput(java.lang.String dataset, java.lang.String deployType)
dataset
- the output to be stored in the build report.deployType
- the output to be stored in the build report.public java.util.List<CopyToPDSRecord.OutputInfo> getOutputs()
public com.ibm.json.java.JSONObject toJSON()
public CopyToPDSRecord parse(com.ibm.json.java.JSONObject jsonObj)
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.