Class FileImportRequest
Object
BaseImportRequest
FileImportRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ImportCsvInJobRequest
,ImportExcelInJobRequest
,ImportJsonInJobRequest
The properties for an import from a file.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Whether the import should continue if some of the import commands are invalid or failed to execute.protected boolean
Delete the file from the Collibra Platform if the import / synchronization job is successful.protected File
The file to upload.protected UUID
Theid
of uploaded file.protected String
The name of the file to upload.Fields inherited from class BaseImportRequest
batchSize, DEFAULT_BATCH_SIZE, requestSource, saveResult, sendNotification, simulation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getFile()
The file to upload.Theid
of uploaded file.The name of the file to upload.int
hashCode()
boolean
Whether the import should continue if some of the import commands are invalid or failed to execute.boolean
Delete the file from the Collibra Platform if the import / synchronization job is successful.void
setContinueOnError
(boolean continueOnError) Whether the import should continue if some of the import commands are invalid or failed to execute.void
setDeleteFile
(boolean deleteFile) Delete the file from the Collibra Platform if the import / synchronization job is successful.void
The file to upload.void
Theid
of uploaded file.void
setFileName
(String fileName) The name of the file to upload.toString()
Methods inherited from class BaseImportRequest
getBatchSize, getRequestSource, isSaveResult, isSendNotification, isSimulation, setBatchSize, setRequestSource, setSaveResult, setSendNotification, setSimulation
-
Field Details
-
fileId
Theid
of uploaded file.NOTE: if this field is used,
file
should not be set. -
file
-
fileName
-
deleteFile
@DefaultValue("false") protected boolean deleteFileDelete the file from the Collibra Platform if the import / synchronization job is successful. The default value isfalse
.NOTE: if the file corresponds to an attachment, the attachment will be deleted.
-
continueOnError
@DefaultValue("false") protected boolean continueOnErrorWhether the import should continue if some of the import commands are invalid or failed to execute. The default value isfalse
.If
true
, the valid commands are still committed to the database, which can lead to partial results being stored.
-
-
Constructor Details
-
FileImportRequest
protected FileImportRequest()
-
-
Method Details
-
getFileId
Theid
of uploaded file.NOTE: if this field is used,
file
should not be set. -
getFile
-
getFileName
-
isDeleteFile
public boolean isDeleteFile()Delete the file from the Collibra Platform if the import / synchronization job is successful. The default value isfalse
.NOTE: if the file corresponds to an attachment, the attachment will be deleted.
-
isContinueOnError
public boolean isContinueOnError()Whether the import should continue if some of the import commands are invalid or failed to execute. The default value isfalse
.If
true
, the valid commands are still committed to the database, which can lead to partial results being stored. -
setFileId
Theid
of uploaded file.NOTE: if this field is used,
file
should not be set. -
setFile
-
setFileName
-
setDeleteFile
public void setDeleteFile(boolean deleteFile) Delete the file from the Collibra Platform if the import / synchronization job is successful. The default value isfalse
.NOTE: if the file corresponds to an attachment, the attachment will be deleted.
-
setContinueOnError
public void setContinueOnError(boolean continueOnError) Whether the import should continue if some of the import commands are invalid or failed to execute. The default value isfalse
.If
true
, the valid commands are still committed to the database, which can lead to partial results being stored. -
toString
- Overrides:
toString
in classBaseImportRequest
-
equals
- Overrides:
equals
in classBaseImportRequest
-
canEqual
- Overrides:
canEqual
in classBaseImportRequest
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseImportRequest
-