Class FileImportConfigurationSpec<T extends Table>
java.lang.Object
com.orchestranetworks.addon.dex.configuration.FileImportConfigurationSpec<T>
- All Implemented Interfaces:
ConfigurationSpec<T>,ImportConfigurationSpec<T>
- Direct Known Subclasses:
CSVImportConfigurationSpec,SpreadsheetImportConfigurationSpec,XMLImportConfigurationSpec
public abstract class FileImportConfigurationSpec<T extends Table>
extends Object
implements ImportConfigurationSpec<T>
Specifies the configuration used when importing data from a file.
- Since:
- 2.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the path of exported file containing invalid data.final FileReturns the imported file.final ImportModeReturns the specified import mode.final booleanReturnstrueif all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.final booleanReturnstrueif all empty ornullvalues are ignored in the process of importing data.final booleanReturnstrueif the first row of every column in the file contains the column label in the Excel/CSV file, or the imported XML file contains the {addon.label} header.final booleanReturnstrueif all triggers and constraints are disabled in the process of importing data.final booleanReturnstrueif all records with errors in their data rows are exported to a downloadable file.final voidsetEmptyOrNullPrimaryKeyChecked(boolean emptyOrNullPrimaryKeyChecked) Sets whether all empty ornullprimary keys were checked before data import.final voidsetEmptyOrNullValueIgnored(boolean emptyOrNullValueIgnored) Sets whether all empty ornullvalues are ignored in the process of importing data.voidsetErrorFilePath(String errorFilePath) Sets the path of the exported file containing invalid data.final voidsetHeaderUsed(boolean headerUsed) Sets whether the first row of every column in the file contains the column label in the Excel/CSV file, or the imported XML file contains the {addon.label} header.final voidsetImportedFile(File importedFile) Sets an imported file to the specified value.final voidsetImportForced(boolean importForced) Sets whether all triggers and constraints are disabled in the process of importing data.final voidsetImportMode(ImportMode importMode) Sets the import mode.final voidsetInvalidDataDownloaded(boolean invalidDataDownloaded) Sets whether all records with errors in their data rows are exported to a downloadable file.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orchestranetworks.addon.dex.configuration.ConfigurationSpec
getCurrentDataset, getCurrentTable, getServiceType, getSession, getSourceTableFilters, getSourceTables
-
Constructor Details
-
FileImportConfigurationSpec
public FileImportConfigurationSpec()
-
-
Method Details
-
isImportForced
public final boolean isImportForced()Returnstrueif all triggers and constraints are disabled in the process of importing data.- Specified by:
isImportForcedin interfaceImportConfigurationSpec<T extends Table>
-
setImportForced
public final void setImportForced(boolean importForced) Sets whether all triggers and constraints are disabled in the process of importing data. -
getImportMode
Returns the specified import mode.- Specified by:
getImportModein interfaceImportConfigurationSpec<T extends Table>
-
setImportMode
Sets the import mode. -
isEmptyOrNullValueIgnored
public final boolean isEmptyOrNullValueIgnored()Returnstrueif all empty ornullvalues are ignored in the process of importing data.- Specified by:
isEmptyOrNullValueIgnoredin interfaceImportConfigurationSpec<T extends Table>
-
setEmptyOrNullValueIgnored
public final void setEmptyOrNullValueIgnored(boolean emptyOrNullValueIgnored) Sets whether all empty ornullvalues are ignored in the process of importing data. -
isEmptyOrNullPrimaryKeyChecked
public final boolean isEmptyOrNullPrimaryKeyChecked()Returnstrueif all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.- Specified by:
isEmptyOrNullPrimaryKeyCheckedin interfaceImportConfigurationSpec<T extends Table>
-
setEmptyOrNullPrimaryKeyChecked
public final void setEmptyOrNullPrimaryKeyChecked(boolean emptyOrNullPrimaryKeyChecked) Sets whether all empty ornullprimary keys were checked before data import. -
isHeaderUsed
public final boolean isHeaderUsed()Returnstrueif the first row of every column in the file contains the column label in the Excel/CSV file, or the imported XML file contains the {addon.label} header. -
setHeaderUsed
public final void setHeaderUsed(boolean headerUsed) Sets whether the first row of every column in the file contains the column label in the Excel/CSV file, or the imported XML file contains the {addon.label} header. -
getImportedFile
Returns the imported file. -
setImportedFile
Sets an imported file to the specified value. -
isInvalidDataDownloaded
public final boolean isInvalidDataDownloaded()Returnstrueif all records with errors in their data rows are exported to a downloadable file. -
setInvalidDataDownloaded
public final void setInvalidDataDownloaded(boolean invalidDataDownloaded) Sets whether all records with errors in their data rows are exported to a downloadable file. -
getErrorFilePath
Returns the path of exported file containing invalid data. -
setErrorFilePath
Sets the path of the exported file containing invalid data.
-