public abstract class AbstractExportExecuter extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
protected File |
baseDirectory
エクスポートターゲットディレクトリ
|
protected ExportConfig |
config
エクスポート設定
|
protected Exporter |
exporter |
protected String |
monitorkey
モニタリングキー.
|
protected ExportOptions |
options
エクスポートユーザオプション
|
protected String |
tableName
出力するSQL(テーブル名)
|
修飾子 | コンストラクタと説明 |
---|---|
protected |
AbstractExportExecuter(ExportOptions options,
String tableName,
File baseDir)
新しい実行インスタンスを生成します。
|
protected |
AbstractExportExecuter(ExportOptions options,
String tableName,
File baseDir,
ExportConfig config)
新しい実行インスタンスを生成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected String |
createFileName()
ファイル名を生成します.
|
protected static String |
createSql(String tableName)
テーブル検索用のSQLを生成します。
|
protected static String |
createSql(String tableName,
DatabaseColumn[] columns)
テーブル検索用のSQLを生成します。
|
protected static String |
createSqlForCount(String tableName)
レコード数検索用のSQLを生成します。
|
protected static DatabaseColumn[] |
getDatabaseColumns(ResultSet rs,
String[] targetFieldNames,
int dbtype)
データベースカラムの配列を取得します。
|
protected Map<String,Format> |
getFormats(DatabaseColumn[] columns) |
protected Line |
getLine(ResultSet rs,
DatabaseColumn[] columns)
結果セットから、1レコード分の出力データを取得します。
|
protected Line |
getLine(ResultSet rs,
DatabaseColumn[] columns,
Map<String,Format> formats)
結果セットから、1レコード分の出力データを取得します。
|
protected Line |
getLine(ResultSet rs,
DatabaseColumn[] columns,
Map<String,Format> formats,
Map<String,Object> record)
結果セットから、1レコード分の出力データを取得します。
|
protected static int |
getRecordCount(Connection con,
String tableName)
テーブルのレコード数を調べます
|
protected static boolean |
isSelectSql(String sql)
指定された文字列がSELECT文かどうかを判定します。
|
void |
setExporter(Exporter exporter)
エクスポートに使用するエクスポーターを指定します。
|
protected void |
setUpExporter() |
protected static int |
sleepExport(int exportCount,
ExportOptions options)
エクスポート処理を一時休止します。
|
protected transient Exporter exporter
protected String monitorkey
protected final ExportOptions options
protected final ExportConfig config
protected final String tableName
protected final File baseDirectory
protected AbstractExportExecuter(ExportOptions options, String tableName, File baseDir) throws IOException
options
- エクスポートオプションtableName
- 出力するSQL(テーブル名)baseDir
- ファイルを出力するディレクトリIOException
protected AbstractExportExecuter(ExportOptions options, String tableName, File baseDir, ExportConfig config) throws IOException
options
- エクスポートオプションtableName
- 出力するSQL(テーブル名)baseDir
- ファイルを出力するディレクトリconfig
- エクスポート設定IOException
protected static String createSql(String tableName)
tableName
- テーブル名protected static String createSql(String tableName, DatabaseColumn[] columns)
tableName
- テーブル名pkfieldNames
- プライマリキー配列protected static String createSqlForCount(String tableName)
tableName
- テーブル名protected static DatabaseColumn[] getDatabaseColumns(ResultSet rs, String[] targetFieldNames, int dbtype) throws SQLException
rs
- 結果セットtargetFieldNames
- フィールド名配列dbtype
- データベース製品の種類SQLException
protected static int getRecordCount(Connection con, String tableName)
con
- tableName
- テーブル名protected static boolean isSelectSql(String sql)
sql
- protected static int sleepExport(int exportCount, ExportOptions options)
exportCount
- 出力レコード数options
- 設定情報.public void setExporter(Exporter exporter)
exporter
- エクスポーターprotected String createFileName()
protected void setUpExporter()
protected Map<String,Format> getFormats(DatabaseColumn[] columns)
protected Line getLine(ResultSet rs, DatabaseColumn[] columns) throws SQLException, IOException
rs
- 結果セットcolumns
- テーブルのカラム情報の配列SQLException
IOException
protected Line getLine(ResultSet rs, DatabaseColumn[] columns, Map<String,Format> formats) throws SQLException, IOException
rs
- 結果セットcolumns
- テーブルのカラム情報の配列出力フォーマットのマップ配列
- <フィールド名、フォーマットインスタンス>SQLException
IOException
protected Line getLine(ResultSet rs, DatabaseColumn[] columns, Map<String,Format> formats, Map<String,Object> record) throws SQLException, IOException
rs
- 結果セットcolumns
- テーブルのカラム情報の配列出力フォーマットのマップ配列
- <フィールド名、フォーマットインスタンス>レコードの生データ
- SQLException
IOException
Copyright © 2012 NTT DATA INTRAMART CORPORATION