クラス ImportDataFromFileCommand

すべての実装されたインタフェース:
Placeholders, Runnable

public class ImportDataFromFileCommand extends AbstractExportCommand implements Placeholders
  • コンストラクタの詳細

    • ImportDataFromFileCommand

      public ImportDataFromFileCommand()
  • メソッドの詳細

    • doRun

      protected void doRun()
      定義:
      doRun クラス内 AbstractCommand
    • executeImport

      protected void executeImport(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, List<File> files) throws SQLException
      例外:
      SQLException
    • applyFromFileByRow

      protected void applyFromFileByRow(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, List<File> files) throws org.apache.poi.EncryptedDocumentException, org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException, XMLStreamException, SQLException
      例外:
      org.apache.poi.EncryptedDocumentException
      org.apache.poi.openxml4j.exceptions.InvalidFormatException
      IOException
      XMLStreamException
      SQLException
    • getSqlConverter

      protected com.sqlapp.jdbc.sql.SqlConverter getSqlConverter()
    • applyFromFileByTable

      protected void applyFromFileByTable(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, List<File> files) throws org.apache.poi.EncryptedDocumentException, org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException, XMLStreamException, SQLException
      例外:
      org.apache.poi.EncryptedDocumentException
      org.apache.poi.openxml4j.exceptions.InvalidFormatException
      IOException
      XMLStreamException
      SQLException
    • readFileAsXml

      protected void readFileAsXml(com.sqlapp.data.schemas.Table table, File file, com.sqlapp.data.schemas.rowiterator.WorkbookFileType workbookFileType) throws XMLStreamException, FileNotFoundException
      例外:
      XMLStreamException
      FileNotFoundException
    • isUseTableNameDirectory

      public boolean isUseTableNameDirectory()
      戻り値:
      the useTableNameDirectory
    • setUseTableNameDirectory

      public void setUseTableNameDirectory(boolean useTableNameDirectory)
      パラメータ:
      useTableNameDirectory - the useTableNameDirectory to set
    • getQueryCommitInterval

      public long getQueryCommitInterval()
      戻り値:
      the queryCommitInterval
    • setQueryCommitInterval

      public void setQueryCommitInterval(long queryCommitInterval)
      パラメータ:
      queryCommitInterval - the queryCommitInterval to set
    • getFileDirectory

      public File getFileDirectory()
      戻り値:
      the fileDirectory
    • setFileDirectory

      public void setFileDirectory(File fileDirectory)
      パラメータ:
      fileDirectory - the fileDirectory to set
    • getFile

      public File getFile()
    • setFile

      public void setFile(File file)
    • getSqlType

      public com.sqlapp.data.db.sql.SqlType getSqlType()
      戻り値:
      the sqlType
    • setSqlType

      public void setSqlType(com.sqlapp.data.db.sql.SqlType sqlType)
      パラメータ:
      sqlType - the sqlType to set
    • getFileFilter

      public Predicate<File> getFileFilter()
      戻り値:
      the fileFilter
    • setFileFilter

      public void setFileFilter(Predicate<File> fileFilter)
      パラメータ:
      fileFilter - the fileFilter to set
    • getPlaceholderPrefix

      public String getPlaceholderPrefix()
      定義:
      getPlaceholderPrefix インタフェース内 Placeholders
      戻り値:
      the placeholderPrefix
    • setPlaceholderPrefix

      public void setPlaceholderPrefix(String placeholderPrefix)
      定義:
      setPlaceholderPrefix インタフェース内 Placeholders
      パラメータ:
      placeholderPrefix - the placeholderPrefix to set
    • getPlaceholderSuffix

      public String getPlaceholderSuffix()
      定義:
      getPlaceholderSuffix インタフェース内 Placeholders
      戻り値:
      the placeholderSuffix
    • setPlaceholderSuffix

      public void setPlaceholderSuffix(String placeholderSuffix)
      定義:
      setPlaceholderSuffix インタフェース内 Placeholders
      パラメータ:
      placeholderSuffix - the placeholderSuffix to set
    • isPlaceholders

      public boolean isPlaceholders()
      定義:
      isPlaceholders インタフェース内 Placeholders
      戻り値:
      the placeholders
    • setPlaceholders

      public void setPlaceholders(boolean placeholders)
      定義:
      setPlaceholders インタフェース内 Placeholders
      パラメータ:
      placeholders - the placeholders to set
    • getCsvSkipHeaderRowsSize

      public int getCsvSkipHeaderRowsSize()
    • setCsvSkipHeaderRowsSize

      public void setCsvSkipHeaderRowsSize(int csvSkipHeaderRowsSize)
    • getExcelSkipHeaderRowsSize

      public int getExcelSkipHeaderRowsSize()
    • setExcelSkipHeaderRowsSize

      public void setExcelSkipHeaderRowsSize(int excelSkipHeaderRowsSize)
    • setRowValueConverter

      public void setRowValueConverter(com.sqlapp.data.schemas.function.RowValueConverter rowValueConverter)
    • getRowValueConverter

      public com.sqlapp.data.schemas.function.RowValueConverter getRowValueConverter()