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 withJNDIDataSource
outside 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 andJNDIDataSource
outside 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 withJNDIDataSource
outside of aUIService
.SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, TableFilter tableFilter, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session)
Exports a table with filter andJNDIDataSource
outside 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 withJNDIDataSource
within 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.Adaptation
getCurrentDataset()
Returns the current dataset.com.onwbp.adaptation.AdaptationTable
getCurrentTable()
Returns the current table.java.util.Map<TableMapping,FieldMapperDefinition>
getFieldMapperDefinitions()
Returns the map of theFieldMapperDefinition
implementations and aTableMapping
instance as the key parameter.JNDIDataSource
getJNDIDataSource()
Returns the specified JNDI data source for SQL export.java.lang.String
getSchemaName()
Returns the the specified schema name.ServiceType
getServiceType()
Returns the service type.com.orchestranetworks.service.Session
getSession()
Returns the current session.java.util.Map<EBXTable,TableFilter>
getSourceTableFilters()
Returns a map of table filters and an instance ofEBXTable
as the key parameter.java.util.List<EBXTable>
getSourceTables()
Returns the list of source tables.java.lang.String
getSQLDataSourceName()
Returns the SQL data source name.ImportMode
getSQLImportMode()
Returns the import mode.java.lang.String
getTablePattern()
Returns the specified table naming pattern.boolean
isComputedValueIncluded()
Returnstrue
if the exported data contains computed values.boolean
isWriteAccessLockDisabled()
Deprecated.Since 3.0.0, the 'Disable write access lock' option was removed from the add-on.void
setComputedValueIncluded(boolean computedValueIncluded)
Sets whether to include computed values in the exported data.void
setFieldMapperDefinitions(java.util.Map<TableMapping,FieldMapperDefinition> fieldMapperDefinitions)
Sets a map of theFieldMapperDefinition
implementations and aTableMapping
instance as the key parameter.void
setSchemaName(java.lang.String schemaName)
Sets the the specified schema name.void
setSQLImportMode(ImportMode sqlImportMode)
Sets the import mode.void
setTablePattern(java.lang.String tablePattern)
Sets a table naming pattern.void
setWriteAccessLockDisabled(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 DataExchangeException
Exports a table within aUIService
.- Throws:
DataExchangeException
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.orchestranetworks.service.ServiceContext serviceContext, JNDIDataSource jndiDataSource) throws DataExchangeException
Exports a table withJNDIDataSource
within 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 DataExchangeException
Exports a table outside of aUIService
.- Throws:
DataExchangeException
-
SQLExportConfigurationSpec
public SQLExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, JNDIDataSource jndiDataSource, com.orchestranetworks.service.Session session) throws DataExchangeException
Exports a table withJNDIDataSource
outside 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 DataExchangeException
Exports 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 DataExchangeException
Exports a table with filter andJNDIDataSource
outside 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 DataExchangeException
Exports 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 DataExchangeException
Exports multiple tables withJNDIDataSource
outside 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 DataExchangeException
Exports 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 DataExchangeException
Exports multiple tables with a filter andJNDIDataSource
outside of aUIService
.- Throws:
DataExchangeException
- Since:
- 2.5.0
-
-
Method Detail
-
isComputedValueIncluded
public boolean isComputedValueIncluded()
Returnstrue
if the exported data contains computed values.- Specified by:
isComputedValueIncluded
in 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:
getServiceType
in 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:
isWriteAccessLockDisabled
in 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:
getCurrentDataset
in interfaceConfigurationSpec<EBXTable>
-
getCurrentTable
public com.onwbp.adaptation.AdaptationTable getCurrentTable()
Returns the current table.- Specified by:
getCurrentTable
in interfaceConfigurationSpec<EBXTable>
-
getSession
public com.orchestranetworks.service.Session getSession()
Returns the current session.- Specified by:
getSession
in interfaceConfigurationSpec<EBXTable>
-
getSourceTables
public java.util.List<EBXTable> getSourceTables()
Returns the list of source tables.- Specified by:
getSourceTables
in interfaceConfigurationSpec<EBXTable>
-
getSourceTableFilters
public java.util.Map<EBXTable,TableFilter> getSourceTableFilters()
Returns a map of table filters and an instance ofEBXTable
as the key parameter. Returnsnull
when importing CSV, Excel and XML.- Specified by:
getSourceTableFilters
in 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 theFieldMapperDefinition
implementations and aTableMapping
instance as the key parameter.
-
setFieldMapperDefinitions
public void setFieldMapperDefinitions(java.util.Map<TableMapping,FieldMapperDefinition> fieldMapperDefinitions)
Sets a map of theFieldMapperDefinition
implementations and aTableMapping
instance 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
-
-