クラス ImportDataFromFileCommand
java.lang.Object
com.sqlapp.data.db.command.AbstractCommand
com.sqlapp.data.db.command.AbstractDataSourceCommand
com.sqlapp.data.db.command.AbstractSchemaDataSourceCommand
com.sqlapp.data.db.command.AbstractTableCommand
com.sqlapp.data.db.command.export.AbstractExportCommand
com.sqlapp.data.db.command.export.ImportDataFromFileCommand
- すべての実装されたインタフェース:
CommitPerTableProperty,ConsoleOutputLevelProperty,ConvertersProperty,CsvEncodingProperty,DataSourceProperty,DirectoryProperty,FileDirectoryProperty,FilesProperty,JsonConverterProperty,OnlyCurrentCatalogProperty,OnlyCurrentSchemaProperty,PlaceholderProperty,QueryCommitIntervalProperty,SchemaOptionProperty,SchemaTargetProperty,SqlTypeProperty,TableOptionProperty,TableTargetProperty,UseSchemaNameDirectoryProperty,YamlConverterProperty,Runnable
public class ImportDataFromFileCommand
extends AbstractExportCommand
implements PlaceholderProperty, TableOptionProperty, SqlTypeProperty, FileDirectoryProperty, FilesProperty, QueryCommitIntervalProperty, DirectoryProperty, CommitPerTableProperty
-
フィールドの概要
クラスから継承されたフィールド com.sqlapp.data.db.command.AbstractCommand
logger -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明protected voidapplyFromFileByRow(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, List<File> files) protected voidapplyFromFileByTable(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, List<File> files) protected voiddoRun()protected voidexecuteImport(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, List<File> files) protected com.sqlapp.jdbc.sql.SqlConverterprotected voidreadFileAsXml(com.sqlapp.data.schemas.Table table, File file, com.sqlapp.data.schemas.rowiterator.WorkbookFileType workbookFileType) voidsetCommitPerTable(boolean bool) voidsetDmlBatchSize(int batchSize) JDBCのバッチ実行のサイズを設定しますvoidクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractTableCommand
getMetadataReaderFilter, getSchemaReader, getSqlFactoryRegistry, getTables, setExcludeSchemas, setExcludeTables, setIncludeSchemas, setIncludeTablesクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractSchemaDataSourceCommand
getSchemasクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractDataSourceCommand
commit, createOutputTextBuilder, execute, getCurrentCatalogName, getCurrentSchemaName, getDataSource, getDialect, isCloseDataSource, newConverters, rollback, setCloseDataSource, setCommitHandler, setDataSource, setLastCommitHandler, setReleaseConnectionAndCloseDataSourceHandler, setReleaseConnectionHandler, setRollbackHandlerクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractCommand
debug, debug, error, error, execute, getErr, getExceptionHandler, info, info, initialize, initializeContext, runクラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.ConsoleOutputLevelProperty
getConsoleOutputLevel, setConsoleOutputLevel, setConsoleOutputLevelインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.ConvertersProperty
getConverters, setConvertersインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.CsvEncodingProperty
getCsvEncoding, setCsvEncodingインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.DirectoryProperty
getDirectory, setDirectory, setDirectoryインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.FileDirectoryProperty
getFileDirectory, setFileDirectoryインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.FilesProperty
getFiles, setFilesインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.JsonConverterProperty
createJsonConverter, getJsonConverter, setJsonConverterインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.OnlyCurrentCatalogProperty
isOnlyCurrentCatalog, setOnlyCurrentCatalogインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.OnlyCurrentSchemaProperty
isOnlyCurrentSchema, setOnlyCurrentSchemaインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.PlaceholderProperty
getPlaceholderPrefix, getPlaceholderSuffix, isPlaceholders, setPlaceholderPrefix, setPlaceholders, setPlaceholderSuffixインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.QueryCommitIntervalProperty
getQueryCommitInterval, setQueryCommitIntervalインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.SchemaOptionProperty
getSchemaOptions, setSchemaOptionsインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.SchemaTargetProperty
getExcludeSchemas, getIncludeSchemas, setSchemaNameインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.SqlTypeProperty
getSqlType, setSqlType, setSqlTypeインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.TableOptionProperty
getTableOptions, setTableOptionsインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.TableTargetProperty
getExcludeTables, getIncludeTables, setTableNameインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.UseSchemaNameDirectoryProperty
isUseSchemaNameDirectory, setUseSchemaNameDirectoryインタフェースから継承されたメソッド com.sqlapp.data.db.command.properties.YamlConverterProperty
createYamlConverter, getYamlConverter, setYamlConverter
-
コンストラクタの詳細
-
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, org.apache.poi.EncryptedDocumentException, org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException, XMLStreamException - 例外:
SQLExceptionorg.apache.poi.EncryptedDocumentExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionIOExceptionXMLStreamException
-
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.EncryptedDocumentExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionIOExceptionXMLStreamExceptionSQLException
-
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.EncryptedDocumentExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionIOExceptionXMLStreamExceptionSQLException
-
readFileAsXml
protected void readFileAsXml(com.sqlapp.data.schemas.Table table, File file, com.sqlapp.data.schemas.rowiterator.WorkbookFileType workbookFileType) throws XMLStreamException, FileNotFoundException -
setFiles
- 定義:
setFilesインタフェース内FilesProperty
-
setDmlBatchSize
public void setDmlBatchSize(int batchSize) JDBCのバッチ実行のサイズを設定します- パラメータ:
batchSize- JDBCのバッチ実行のサイズ
-
setCommitPerTable
public void setCommitPerTable(boolean bool) - 定義:
setCommitPerTableインタフェース内CommitPerTableProperty
-