Class SQLExportConfigurationSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dex.configuration.SQLExportConfigurationSpec
-
- All Implemented Interfaces:
ConfigurationSpec<EBXTable>,ExportConfigurationSpec<EBXTable>
public final class SQLExportConfigurationSpec extends java.lang.Object implements ExportConfigurationSpec<EBXTable>
Defines the configuration used to export data to an external database.- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description SQLExportConfigurationSpec(com.onwbp.adaptation.Adaptation recordOrDataset, java.util.List<EBXTable> sourceTables, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session)Exports multiple tables withJNDIDataSourceoutside of aUIService.SQLExportConfigurationSpec(com.onwbp.adaptation.Adaptation recordOrDataset, java.util.List<EBXTable> sourceTables, java.lang.String sqlDataSourceName, com.orchestranetworks.service.Session session)Exports multiple tables outside of aUIService.SQLExportConfigurationSpec(com.onwbp.adaptation.Adaptation dataset, java.util.List<EBXTable> sourceTables, java.util.Map<EBXTable,TableFilter> tableFilters, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session)Exports multiple tables with a filter andJNDIDataSourceoutside of aUIService.SQLExportConfigurationSpec(com.onwbp.adaptation.Adaptation dataset, java.util.List<EBXTable> sourceTables, java.util.Map<EBXTable,TableFilter> tableFilters, java.lang.String sqlDataSourceName, com.orchestranetworks.service.Session session)Exports multiple tables with a filter outside of aUIService.SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session)Exports a table withJNDIDataSourceoutside of aUIService.SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, TableFilter tableFilter, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session)Exports a table with filter andJNDIDataSourceoutside of aUIService.SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, TableFilter tableFilter, java.lang.String sqlDataSourceName, com.orchestranetworks.service.Session session)Exports a table with filter outside of aUIService.SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, java.lang.String sqlDataSourceName, com.orchestranetworks.service.Session session)Exports a table outside of aUIService.SQLExportConfigurationSpec(com.orchestranetworks.service.ServiceContext serviceContext, JNDIDataSource jndiDataSource)Exports a table withJNDIDataSourcewithin aUIService.SQLExportConfigurationSpec(com.orchestranetworks.service.ServiceContext serviceContext, java.lang.String sqlDataSourceName)Exports a table within aUIService.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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 and aTableMappinginstance as the key parameter.JNDIDataSourcegetJNDIDataSource()Returns the specified JNDI data source for SQL export.java.lang.StringgetSchemaName()Returns the the specified schema name.ServiceTypegetServiceType()Returns the service type.com.orchestranetworks.service.SessiongetSession()Returns the current session.java.util.Map<EBXTable,TableFilter>getSourceTableFilters()Returns a map of table filters and an instance ofEBXTableas the key parameter.java.util.List<EBXTable>getSourceTables()Returns the list of source tables.java.lang.StringgetSQLDataSourceName()Returns the SQL data source name.ImportModegetSQLImportMode()Returns the import mode.java.lang.StringgetTablePattern()Returns the specified table naming pattern.booleanisComputedValueIncluded()Returnstrueif the exported data contains computed values.booleanisWriteAccessLockDisabled()Deprecated.Since 3.0.0, the 'Disable write access lock' option was removed from the add-on.voidsetComputedValueIncluded(boolean computedValueIncluded)Sets whether to include computed values in the exported data.voidsetFieldMapperDefinitions(java.util.Map<TableMapping,FieldMapperDefinition> fieldMapperDefinitions)Sets a map of theFieldMapperDefinitionimplementations and aTableMappinginstance as the key parameter.voidsetSchemaName(java.lang.String schemaName)Sets the the specified schema name.voidsetSQLImportMode(ImportMode sqlImportMode)Sets the import mode.voidsetTablePattern(java.lang.String tablePattern)Sets a table naming pattern.voidsetWriteAccessLockDisabled(boolean writeAccessLockDisabled)Deprecated.Since 3.0.0, the 'Disable write access lock' option was removed from the add-on.
-
-
-
Constructor Detail
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.orchestranetworks.service.ServiceContext serviceContext, java.lang.String sqlDataSourceName) throws DataExchangeExceptionExports a table within aUIService.- Throws:
DataExchangeException
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.orchestranetworks.service.ServiceContext serviceContext, JNDIDataSource jndiDataSource) throws DataExchangeExceptionExports a table withJNDIDataSourcewithin aUIService.- Throws:
DataExchangeException- Since:
- 2.5.0
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, java.lang.String sqlDataSourceName, com.orchestranetworks.service.Session session) throws DataExchangeExceptionExports a table outside of aUIService.- Throws:
DataExchangeException
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session) throws DataExchangeExceptionExports a table withJNDIDataSourceoutside of aUIService.- Throws:
DataExchangeException- Since:
- 2.5.0
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, TableFilter tableFilter, java.lang.String sqlDataSourceName, com.orchestranetworks.service.Session session) throws DataExchangeExceptionExports a table with filter outside of aUIService.- Throws:
DataExchangeException
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, TableFilter tableFilter, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session) throws DataExchangeExceptionExports a table with filter andJNDIDataSourceoutside of aUIService.- Throws:
DataExchangeException- Since:
- 2.5.0
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.onwbp.adaptation.Adaptation recordOrDataset, java.util.List<EBXTable> sourceTables, java.lang.String sqlDataSourceName, com.orchestranetworks.service.Session session) throws DataExchangeExceptionExports multiple tables outside of aUIService.- Throws:
DataExchangeException
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.onwbp.adaptation.Adaptation recordOrDataset, java.util.List<EBXTable> sourceTables, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session) throws DataExchangeExceptionExports multiple tables withJNDIDataSourceoutside of aUIService.- Throws:
DataExchangeException- Since:
- 2.5.0
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.onwbp.adaptation.Adaptation dataset, java.util.List<EBXTable> sourceTables, java.util.Map<EBXTable,TableFilter> tableFilters, java.lang.String sqlDataSourceName, com.orchestranetworks.service.Session session) throws DataExchangeExceptionExports multiple tables with a filter outside of aUIService.- Throws:
DataExchangeException
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.onwbp.adaptation.Adaptation dataset, java.util.List<EBXTable> sourceTables, java.util.Map<EBXTable,TableFilter> tableFilters, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session) throws DataExchangeExceptionExports multiple tables with a filter andJNDIDataSourceoutside of aUIService.- Throws:
DataExchangeException- Since:
- 2.5.0
-
-
Method Detail
-
isComputedValueIncluded
public boolean isComputedValueIncluded()
Returnstrueif the exported data contains computed values.- Specified by:
isComputedValueIncludedin interfaceExportConfigurationSpec<EBXTable>
-
setComputedValueIncluded
public void setComputedValueIncluded(boolean computedValueIncluded)
Sets whether to include computed values in the exported data.
-
getServiceType
public ServiceType getServiceType()
Returns the service type.- Specified by:
getServiceTypein interfaceConfigurationSpec<EBXTable>
-
isWriteAccessLockDisabled
public boolean isWriteAccessLockDisabled()
Deprecated.Since 3.0.0, the 'Disable write access lock' option was removed from the add-on.Always throws exception.- Specified by:
isWriteAccessLockDisabledin interfaceExportConfigurationSpec<EBXTable>
-
setWriteAccessLockDisabled
public void setWriteAccessLockDisabled(boolean writeAccessLockDisabled)
Deprecated.Since 3.0.0, the 'Disable write access lock' option was removed from the add-on.Always throws exception.
-
getSQLImportMode
public ImportMode getSQLImportMode()
Returns the import mode.
-
setSQLImportMode
public void setSQLImportMode(ImportMode sqlImportMode)
Sets the import mode.
-
getCurrentDataset
public com.onwbp.adaptation.Adaptation getCurrentDataset()
Returns the current dataset.- Specified by:
getCurrentDatasetin interfaceConfigurationSpec<EBXTable>
-
getCurrentTable
public com.onwbp.adaptation.AdaptationTable getCurrentTable()
Returns the current table.- Specified by:
getCurrentTablein interfaceConfigurationSpec<EBXTable>
-
getSession
public com.orchestranetworks.service.Session getSession()
Returns the current session.- Specified by:
getSessionin interfaceConfigurationSpec<EBXTable>
-
getSourceTables
public java.util.List<EBXTable> getSourceTables()
Returns the list of source tables.- Specified by:
getSourceTablesin interfaceConfigurationSpec<EBXTable>
-
getSourceTableFilters
public java.util.Map<EBXTable,TableFilter> getSourceTableFilters()
Returns a map of table filters and an instance ofEBXTableas the key parameter. Returnsnullwhen importing CSV, Excel and XML.- Specified by:
getSourceTableFiltersin interfaceConfigurationSpec<EBXTable>
-
getSQLDataSourceName
public java.lang.String getSQLDataSourceName()
Returns the SQL data source name.
-
getFieldMapperDefinitions
public java.util.Map<TableMapping,FieldMapperDefinition> getFieldMapperDefinitions()
Returns the map of theFieldMapperDefinitionimplementations and aTableMappinginstance as the key parameter.
-
setFieldMapperDefinitions
public void setFieldMapperDefinitions(java.util.Map<TableMapping,FieldMapperDefinition> fieldMapperDefinitions)
Sets a map of theFieldMapperDefinitionimplementations and aTableMappinginstance 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 the specified schema name.
-
setSchemaName
public void setSchemaName(java.lang.String schemaName)
Sets the the specified schema name.
-
getJNDIDataSource
public JNDIDataSource getJNDIDataSource()
Returns the specified JNDI data source for SQL export.- Since:
- 2.5.0
-
-