Class SQLImportConfigurationSpec
java.lang.Object
com.orchestranetworks.addon.dex.configuration.SQLImportConfigurationSpec
- All Implemented Interfaces:
ConfigurationSpec<SQLTable>,ImportConfigurationSpec<SQLTable>
public final class SQLImportConfigurationSpec
extends Object
implements ImportConfigurationSpec<SQLTable>
Defines the configuration used for importing data from an external database.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionSQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, JNDIDataSource jndiDataSource, SQLTable sqlTableOrView, TableFilter tableFilter, com.orchestranetworks.service.Session session) Imports data with a filter andJNDIDataSourceoutside of aUIService.SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, JNDIDataSource jndiDataSource, SQLTable sqlTableOrView, com.orchestranetworks.service.Session session) Imports data withJNDIDataSourceoutside of aUIService.SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, String sqlDataSourceName, SQLTable sqlTableOrView, TableFilter tableFilter, com.orchestranetworks.service.Session session) Imports data from an SQL table with a filter outside of aUIService.SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, String sqlDataSourceName, SQLTable sqlTableOrView, com.orchestranetworks.service.Session session) Imports data outside of aUIService. -
Method Summary
Modifier and TypeMethodDescriptioncom.onwbp.adaptation.AdaptationReturns the current dataset.com.onwbp.adaptation.AdaptationTableReturns the current table.Returns the map of theFieldMapperDefinitionimplementations andTableMappinginstance as the key parameter.Returns the specified import mode.Returns the specified JNDI data source for SQL import.Returns the specified schema name.Returns the service type.com.orchestranetworks.service.SessionReturns the current session.Returns a map of table filters and anSQLTableinstance as the key parameter.Returns the list of source tables.Returns the SQL data source name.Returns the specified table naming pattern.booleanReturnstrueif all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.booleanReturnstrueif all empty ornullvalues are ignored in the process of importing data.booleanReturnstrueif all triggers and constraints are disabled in the process of importing data.voidsetEmptyOrNullPrimaryKeyChecked(boolean emptyOrNullPrimaryKeyChecked) Sets whether all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.voidsetEmptyOrNullValueIgnored(boolean emptyOrNullValueIgnored) Sets whether all empty ornullvalues are ignored in the process of importing data.voidsetFieldMapperDefinitions(Map<TableMapping, FieldMapperDefinition> fieldMapperDefinitions) Sets a map of theFieldMapperDefinitionimplementations andTableMappinginstance as the key parameter.voidsetImportForced(boolean importForced) Sets whether all triggers and constraints are disabled in the process of importing data.voidsetImportMode(ImportMode importMode) Sets the import mode.voidsetTablePattern(String tablePattern) Sets a table naming pattern.
-
Constructor Details
-
SQLImportConfigurationSpec
public SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, String sqlDataSourceName, SQLTable sqlTableOrView, com.orchestranetworks.service.Session session) throws DataExchangeException Imports data outside of aUIService.- Throws:
DataExchangeException
-
SQLImportConfigurationSpec
public SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, JNDIDataSource jndiDataSource, SQLTable sqlTableOrView, com.orchestranetworks.service.Session session) throws DataExchangeException Imports data withJNDIDataSourceoutside of aUIService.- Throws:
DataExchangeException- Since:
- 2.5.0
-
SQLImportConfigurationSpec
public SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, String sqlDataSourceName, SQLTable sqlTableOrView, TableFilter tableFilter, com.orchestranetworks.service.Session session) throws DataExchangeException Imports data from an SQL table with a filter outside of aUIService.- Throws:
DataExchangeException
-
SQLImportConfigurationSpec
public SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, JNDIDataSource jndiDataSource, SQLTable sqlTableOrView, TableFilter tableFilter, com.orchestranetworks.service.Session session) throws DataExchangeException Imports data with a filter andJNDIDataSourceoutside of aUIService.- Throws:
DataExchangeException- Since:
- 2.5.0
-
-
Method Details
-
getServiceType
Returns the service type.- Specified by:
getServiceTypein interfaceConfigurationSpec<SQLTable>
-
isImportForced
public boolean isImportForced()Returnstrueif all triggers and constraints are disabled in the process of importing data.- Specified by:
isImportForcedin interfaceImportConfigurationSpec<SQLTable>
-
setImportForced
public 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<SQLTable>
-
setImportMode
Sets the import mode. -
isEmptyOrNullValueIgnored
public boolean isEmptyOrNullValueIgnored()Returnstrueif all empty ornullvalues are ignored in the process of importing data.- Specified by:
isEmptyOrNullValueIgnoredin interfaceImportConfigurationSpec<SQLTable>
-
setEmptyOrNullValueIgnored
public void setEmptyOrNullValueIgnored(boolean emptyOrNullValueIgnored) Sets whether all empty ornullvalues are ignored in the process of importing data. -
isEmptyOrNullPrimaryKeyChecked
public boolean isEmptyOrNullPrimaryKeyChecked()Returnstrueif all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.- Specified by:
isEmptyOrNullPrimaryKeyCheckedin interfaceImportConfigurationSpec<SQLTable>
-
setEmptyOrNullPrimaryKeyChecked
public void setEmptyOrNullPrimaryKeyChecked(boolean emptyOrNullPrimaryKeyChecked) Sets whether all empty ornullprimary keys were checked before data import andfalseif this verification was not performed. -
getSQLDataSourceName
Returns the SQL data source name. -
getCurrentDataset
public com.onwbp.adaptation.Adaptation getCurrentDataset()Returns the current dataset.- Specified by:
getCurrentDatasetin interfaceConfigurationSpec<SQLTable>
-
getCurrentTable
public com.onwbp.adaptation.AdaptationTable getCurrentTable()Returns the current table.- Specified by:
getCurrentTablein interfaceConfigurationSpec<SQLTable>
-
getSession
public com.orchestranetworks.service.Session getSession()Returns the current session.- Specified by:
getSessionin interfaceConfigurationSpec<SQLTable>
-
getSourceTables
Returns the list of source tables.- Specified by:
getSourceTablesin interfaceConfigurationSpec<SQLTable>
-
getSourceTableFilters
Returns a map of table filters and anSQLTableinstance as the key parameter. Returnsnullwhen importing CSV, Excel and XML.- Specified by:
getSourceTableFiltersin interfaceConfigurationSpec<SQLTable>
-
getFieldMapperDefinitions
Returns the map of theFieldMapperDefinitionimplementations andTableMappinginstance as the key parameter. -
setFieldMapperDefinitions
public void setFieldMapperDefinitions(Map<TableMapping, FieldMapperDefinition> fieldMapperDefinitions) Sets a map of theFieldMapperDefinitionimplementations andTableMappinginstance as the key parameter. -
getTablePattern
Returns the specified table naming pattern. -
setTablePattern
Sets a table naming pattern. -
getSchemaName
Returns the specified schema name. -
getJNDIDataSource
Returns the specified JNDI data source for SQL import.- Since:
- 2.5.0
-