Class SQLImportConfigurationSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dex.configuration.SQLImportConfigurationSpec
-
- All Implemented Interfaces:
ConfigurationSpec<SQLTable>,ImportConfigurationSpec<SQLTable>
public final class SQLImportConfigurationSpec extends java.lang.Object implements ImportConfigurationSpec<SQLTable>
Defines the configuration used for importing data from an external database.- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description SQLImportConfigurationSpec(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, java.lang.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, java.lang.String sqlDataSourceName, SQLTable sqlTableOrView, com.orchestranetworks.service.Session session)Imports data outside of aUIService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.onwbp.adaptation.AdaptationgetCurrentDataset()Returns the current dataset.com.onwbp.adaptation.AdaptationTablegetCurrentTable()Returns the current table.java.util.Map<TableMapping,FieldMapperDefinition>getFieldMapperDefinitions()Returns the map of theFieldMapperDefinitionimplementations andTableMappinginstance as the key parameter.ImportModegetImportMode()Returns the specified import mode.JNDIDataSourcegetJNDIDataSource()Returns the specified JNDI data source for SQL import.java.lang.StringgetSchemaName()Returns the specified schema name.ServiceTypegetServiceType()Returns the service type.com.orchestranetworks.service.SessiongetSession()Returns the current session.java.util.Map<SQLTable,TableFilter>getSourceTableFilters()Returns a map of table filters and anSQLTableinstance as the key parameter.java.util.List<SQLTable>getSourceTables()Returns the list of source tables.java.lang.StringgetSQLDataSourceName()Returns the SQL data source name.java.lang.StringgetTablePattern()Returns the specified table naming pattern.booleanisEmptyOrNullPrimaryKeyChecked()Returnstrueif all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.booleanisEmptyOrNullValueIgnored()Returnstrueif all empty ornullvalues are ignored in the process of importing data.booleanisImportForced()Returnstrueif 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(java.util.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(java.lang.String tablePattern)Sets a table naming pattern.
-
-
-
Constructor Detail
-
SQLImportConfigurationSpec
public SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, java.lang.String sqlDataSourceName, SQLTable sqlTableOrView, com.orchestranetworks.service.Session session) throws DataExchangeExceptionImports data outside of aUIService.- Throws:
DataExchangeException
-
SQLImportConfigurationSpec
public SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, JNDIDataSource jndiDataSource, SQLTable sqlTableOrView, com.orchestranetworks.service.Session session) throws DataExchangeExceptionImports data withJNDIDataSourceoutside of aUIService.- Throws:
DataExchangeException- Since:
- 2.5.0
-
SQLImportConfigurationSpec
public SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, java.lang.String sqlDataSourceName, SQLTable sqlTableOrView, TableFilter tableFilter, com.orchestranetworks.service.Session session) throws DataExchangeExceptionImports 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 DataExchangeExceptionImports data with a filter andJNDIDataSourceoutside of aUIService.- Throws:
DataExchangeException- Since:
- 2.5.0
-
-
Method Detail
-
getServiceType
public ServiceType 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
public ImportMode getImportMode()
Returns the specified import mode.- Specified by:
getImportModein interfaceImportConfigurationSpec<SQLTable>
-
setImportMode
public void setImportMode(ImportMode importMode)
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
public java.lang.String 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
public java.util.List<SQLTable> getSourceTables()
Returns the list of source tables.- Specified by:
getSourceTablesin interfaceConfigurationSpec<SQLTable>
-
getSourceTableFilters
public java.util.Map<SQLTable,TableFilter> 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
public java.util.Map<TableMapping,FieldMapperDefinition> getFieldMapperDefinitions()
Returns the map of theFieldMapperDefinitionimplementations andTableMappinginstance as the key parameter.
-
setFieldMapperDefinitions
public void setFieldMapperDefinitions(java.util.Map<TableMapping,FieldMapperDefinition> fieldMapperDefinitions)
Sets a map of theFieldMapperDefinitionimplementations andTableMappinginstance as the key parameter.
-
getTablePattern
public java.lang.String getTablePattern()
Returns the specified table naming pattern.
-
setTablePattern
public void setTablePattern(java.lang.String tablePattern)
Sets a table naming pattern.
-
getSchemaName
public java.lang.String getSchemaName()
Returns the specified schema name.
-
getJNDIDataSource
public JNDIDataSource getJNDIDataSource()
Returns the specified JNDI data source for SQL import.- Since:
- 2.5.0
-
-