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 class
CopyToPDSRecord.OutputInfo
-
Field Summary
Fields Modifier and Type Field 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 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 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.google.gson.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.google.gson.JsonObject
toJSON()
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.
-
-