クラス SqlQuery2FileCommand
java.lang.Object
com.sqlapp.data.db.command.AbstractCommand
com.sqlapp.data.db.command.AbstractDataSourceCommand
com.sqlapp.data.db.command.SqlQuery2FileCommand
- すべての実装されたインタフェース:
Runnable
クエリを実行して結果を標準出力に出力します。
-
フィールドの概要
クラスから継承されたフィールド com.sqlapp.data.db.command.AbstractCommand
logger -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明protected voiddoRun()com.sqlapp.data.schemas.function.ColumnFunction<String>com.sqlapp.data.schemas.function.RowValueConvertergetSql()protected voidoutputTableData(com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table) protected voidoutputTableData(com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, ResultSet resultSet) voidsetHeaderFunction(com.sqlapp.data.schemas.function.ColumnFunction<String> headerFunction) voidsetOutputFile(File outputFile) voidsetOutputFileCharset(String outputFileCharset) voidsetOutputFormatType(OutputFormatType outputFormatType) voidsetRowValueConverter(com.sqlapp.data.schemas.function.RowValueConverter rowValueConverter) voidvoidsetValueFunction(com.sqlapp.data.schemas.function.ColumnValueFunction<Object, String> valueFunction) クラスから継承されたメソッド com.sqlapp.data.db.command.AbstractDataSourceCommand
createOutputTextBuilder, getConnection, getConnectionHandler, getCurrentCatalogName, getCurrentSchemaName, getDataSource, getDialect, newConverters, releaseConnection, rollback, setConnection, setConnectionHandler, setDataSource, setDialectクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractCommand
createJsonConverter, createYamlConverter, debug, debug, error, error, getConsoleOutputLevel, getContext, getConvertHandler, getErr, getExceptionHandler, info, info, initialize, initializeContext, run, setConsoleOutputLevel, setConvertHandler, setExceptionHandler
-
コンストラクタの詳細
-
SqlQuery2FileCommand
public SqlQuery2FileCommand()
-
-
メソッドの詳細
-
outputTableData
protected void outputTableData(com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table) -
outputTableData
protected void outputTableData(com.sqlapp.data.db.dialect.Dialect dialect, com.sqlapp.data.schemas.Table table, ResultSet resultSet) throws IOException, Exception - 例外:
IOExceptionException
-
getOutputFile
-
setOutputFile
-
getOutputFileCharset
-
setOutputFileCharset
-
getHeaderFunction
-
setHeaderFunction
public void setHeaderFunction(com.sqlapp.data.schemas.function.ColumnFunction<String> headerFunction) -
getValueFunction
-
setValueFunction
-
getRowValueConverter
public com.sqlapp.data.schemas.function.RowValueConverter getRowValueConverter() -
setRowValueConverter
public void setRowValueConverter(com.sqlapp.data.schemas.function.RowValueConverter rowValueConverter) -
doRun
protected void doRun()- 定義:
doRunクラス内AbstractCommand
-
getSql
- 戻り値:
- the sql
-
setSql
- パラメータ:
sql- the sql to set
-
getOutputFormatType
- 戻り値:
- the outputFormatType
-
setOutputFormatType
- パラメータ:
outputFormatType- the outputFormatType to set
-