public final class SQLImportConfigurationSpec extends Object implements ImportConfigurationSpec<SQLTable>
| Constructor and Description |
|---|
SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable,
JNDIDataSource jndiDataSource,
SQLTable sqlTableOrView,
com.orchestranetworks.service.Session session)
Imports data with
JNDIDataSource outside of a
UIService. |
SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable,
JNDIDataSource jndiDataSource,
SQLTable sqlTableOrView,
TableFilter tableFilter,
com.orchestranetworks.service.Session session)
Imports data with a filter and
JNDIDataSource outside of a
UIService. |
SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable,
String sqlDataSourceName,
SQLTable sqlTableOrView,
com.orchestranetworks.service.Session session)
Imports data outside of a
UIService. |
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 a
UIService. |
| Modifier and Type | Method and Description |
|---|---|
com.onwbp.adaptation.Adaptation |
getCurrentDataset()
Returns the current dataset.
|
com.onwbp.adaptation.AdaptationTable |
getCurrentTable()
Returns the current table.
|
Map<TableMapping,FieldMapperDefinition> |
getFieldMapperDefinitions()
Returns the map of the
FieldMapperDefinition implementations and
TableMapping instance as the key parameter. |
ImportMode |
getImportMode()
Returns the specified import mode.
|
JNDIDataSource |
getJNDIDataSource()
Returns the specified JNDI data source for SQL import.
|
String |
getSchemaName()
Returns the specified schema name.
|
ServiceType |
getServiceType()
Returns the service type.
|
com.orchestranetworks.service.Session |
getSession()
Returns the current session.
|
Map<SQLTable,TableFilter> |
getSourceTableFilters()
Returns a map of table filters and an
SQLTable instance as the
key parameter. |
List<SQLTable> |
getSourceTables()
Returns the list of source tables.
|
String |
getSQLDataSourceName()
Returns the SQL data source name.
|
String |
getTablePattern()
Returns the specified table naming pattern.
|
boolean |
isEmptyOrNullPrimaryKeyChecked()
Returns
true if all empty or null primary keys
were checked before data import and false if this
verification was not performed. |
boolean |
isEmptyOrNullValueIgnored()
Returns
true if all empty or null values are
ignored in the process of importing data. |
boolean |
isImportForced()
Returns
true if all triggers and constraints are disabled in
the process of importing data. |
void |
setEmptyOrNullPrimaryKeyChecked(boolean emptyOrNullPrimaryKeyChecked)
Sets whether all empty or
null primary keys were checked
before data import and false if this verification was not
performed. |
void |
setEmptyOrNullValueIgnored(boolean emptyOrNullValueIgnored)
Sets whether all empty or
null values are ignored in the
process of importing data. |
void |
setFieldMapperDefinitions(Map<TableMapping,FieldMapperDefinition> fieldMapperDefinitions)
Sets a map of the
FieldMapperDefinition implementations and
TableMapping instance as the key parameter. |
void |
setImportForced(boolean importForced)
Sets whether all triggers and constraints are disabled in the process of
importing data.
|
void |
setImportMode(ImportMode importMode)
Sets the import mode.
|
void |
setTablePattern(String tablePattern)
Sets a table naming pattern.
|
public SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable,
String sqlDataSourceName,
SQLTable sqlTableOrView,
com.orchestranetworks.service.Session session)
throws DataExchangeException
UIService.DataExchangeExceptionpublic SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable,
JNDIDataSource jndiDataSource,
SQLTable sqlTableOrView,
com.orchestranetworks.service.Session session)
throws DataExchangeException
JNDIDataSource outside of a
UIService.DataExchangeExceptionpublic SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable,
String sqlDataSourceName,
SQLTable sqlTableOrView,
TableFilter tableFilter,
com.orchestranetworks.service.Session session)
throws DataExchangeException
UIService.DataExchangeExceptionpublic SQLImportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable,
JNDIDataSource jndiDataSource,
SQLTable sqlTableOrView,
TableFilter tableFilter,
com.orchestranetworks.service.Session session)
throws DataExchangeException
JNDIDataSource outside of a
UIService.DataExchangeExceptionpublic ServiceType getServiceType()
getServiceType in interface ConfigurationSpec<SQLTable>public boolean isImportForced()
true if all triggers and constraints are disabled in
the process of importing data.isImportForced in interface ImportConfigurationSpec<SQLTable>public void setImportForced(boolean importForced)
public ImportMode getImportMode()
getImportMode in interface ImportConfigurationSpec<SQLTable>public void setImportMode(ImportMode importMode)
public boolean isEmptyOrNullValueIgnored()
true if all empty or null values are
ignored in the process of importing data.isEmptyOrNullValueIgnored in interface ImportConfigurationSpec<SQLTable>public void setEmptyOrNullValueIgnored(boolean emptyOrNullValueIgnored)
null values are ignored in the
process of importing data.public boolean isEmptyOrNullPrimaryKeyChecked()
true if all empty or null primary keys
were checked before data import and false if this
verification was not performed.isEmptyOrNullPrimaryKeyChecked in interface ImportConfigurationSpec<SQLTable>public void setEmptyOrNullPrimaryKeyChecked(boolean emptyOrNullPrimaryKeyChecked)
null primary keys were checked
before data import and false if this verification was not
performed.public String getSQLDataSourceName()
public com.onwbp.adaptation.Adaptation getCurrentDataset()
getCurrentDataset in interface ConfigurationSpec<SQLTable>public com.onwbp.adaptation.AdaptationTable getCurrentTable()
getCurrentTable in interface ConfigurationSpec<SQLTable>public com.orchestranetworks.service.Session getSession()
getSession in interface ConfigurationSpec<SQLTable>public List<SQLTable> getSourceTables()
getSourceTables in interface ConfigurationSpec<SQLTable>public Map<SQLTable,TableFilter> getSourceTableFilters()
SQLTable instance as the
key parameter. Returns null when importing CSV, Excel and
XML.getSourceTableFilters in interface ConfigurationSpec<SQLTable>public Map<TableMapping,FieldMapperDefinition> getFieldMapperDefinitions()
FieldMapperDefinition implementations and
TableMapping instance as the key parameter.public void setFieldMapperDefinitions(Map<TableMapping,FieldMapperDefinition> fieldMapperDefinitions)
FieldMapperDefinition implementations and
TableMapping instance as the key parameter.public String getTablePattern()
public void setTablePattern(String tablePattern)
public String getSchemaName()
public JNDIDataSource getJNDIDataSource()