Class SQLImportConfigurationSpec

    • Constructor Detail

      • SQLImportConfigurationSpec

        public SQLImportConfigurationSpec​(com.onwbp.adaptation.AdaptationTable currentTable,
                                          java.lang.String sqlDataSourceName,
                                          SQLTable sqlTableOrView,
                                          com.orchestranetworks.service.Session session)
                                   throws DataExchangeException
        Imports data outside of a UIService.
        Throws:
        DataExchangeException
      • SQLImportConfigurationSpec

        public SQLImportConfigurationSpec​(com.onwbp.adaptation.AdaptationTable currentTable,
                                          java.lang.String sqlDataSourceName,
                                          SQLTable sqlTableOrView,
                                          TableFilter tableFilter,
                                          com.orchestranetworks.service.Session session)
                                   throws DataExchangeException
        Imports data from an SQL table with a filter outside of a UIService.
        Throws:
        DataExchangeException
    • Method Detail

      • setImportForced

        public void setImportForced​(boolean importForced)
        Sets whether all triggers and constraints are disabled in the process of importing data.
      • setImportMode

        public void setImportMode​(ImportMode importMode)
        Sets the import mode.
      • setEmptyOrNullValueIgnored

        public void setEmptyOrNullValueIgnored​(boolean emptyOrNullValueIgnored)
        Sets whether all empty or null values are ignored in the process of importing data.
      • isEmptyOrNullPrimaryKeyChecked

        public boolean isEmptyOrNullPrimaryKeyChecked()
        Returns true if all empty or null primary keys were checked before data import and false if this verification was not performed.
        Specified by:
        isEmptyOrNullPrimaryKeyChecked in interface ImportConfigurationSpec<SQLTable>
      • setEmptyOrNullPrimaryKeyChecked

        public 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.
      • getSQLDataSourceName

        public java.lang.String getSQLDataSourceName()
        Returns the SQL data source name.
      • 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