クラス SqlQueryCommand
java.lang.Object
com.sqlapp.data.db.command.AbstractCommand
com.sqlapp.data.db.command.AbstractDataSourceCommand
com.sqlapp.data.db.command.SqlQueryCommand
- すべての実装されたインタフェース:
Runnable
クエリを実行して結果を標準出力に出力します。
-
フィールドの概要
クラスから継承されたフィールド com.sqlapp.data.db.command.AbstractCommand
logger -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明protected voiddoRun()getSql()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) voidsetOutputFormatType(OutputFormatType outputFormatType) voidクラスから継承されたメソッド 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
-
コンストラクタの詳細
-
SqlQueryCommand
public SqlQueryCommand()
-
-
メソッドの詳細
-
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 SQLException - 例外:
SQLException
-
doRun
protected void doRun()- 定義:
doRunクラス内AbstractCommand
-
getSql
- 戻り値:
- the sql
-
setSql
- パラメータ:
sql- the sql to set
-
getOutputFormatType
- 戻り値:
- the outputFormatType
-
setOutputFormatType
- パラメータ:
outputFormatType- the outputFormatType to set
-