public class DatabaseExport extends Object implements Serializable
コンストラクタと説明 |
---|
DatabaseExport()
エクスポートオブジェクトを作成します。
|
DatabaseExport(String workRoot)
新しいエクスポートオブジェクトを作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
add(String tableName)
エクスポートするテーブルを追加します。
|
void |
clean()
一時ファイル領域を削除します。
|
byte[] |
execute(Connection con)
非推奨です。
|
void |
execute(Connection con,
File dest)
エクスポートを実行します。
|
void |
execute(Connection con,
OutputStream out)
エクスポートを実行して、結果をストリームに出力します。
|
void |
executeByStream(Connection con,
OutputStream out)
エクスポートを実行し、指定したストリームに対して出力します。
|
String |
getDefaultExportFileName()
エクスポートファイルのデフォルト名を取得します。
|
ExportConfig |
getExportConfig()
エクスポート・サーバ設定を取得します。
|
ExportOptions |
getExportOptions()
エクスポートオプションパラメータを取得します。
|
static Monitor |
getMonitor(String uniqueKey)
実行状況を取得します。
|
void |
includeImportOptions(ImportOptions importOptions)
エクスポートファイル内に、インポート用の設定ファイルを含めます。
|
void |
setExportConfig(ExportConfig config)
エクスポート・サーバ設定をセットします。
|
void |
setExporter(Exporter exporter)
エクスポートに使用するエクスポーターを指定します。
|
void |
setExportFileEncordingSetting(boolean flg)
エクスポートファイル内に、エクスポート時に利用したファイルエンコーディングの情報を含めるかどうかを設定します。
|
void |
setExportOptions(ExportOptions options)
エクスポート・オプションを設定します。
|
void |
setMonitor(String uniqueKey)
実行状況をモニタリングするためのキーをセットします。
|
public DatabaseExport()
public DatabaseExport(String workRoot)
workRoot
- 作業用一時ディレクトリパスpublic static Monitor getMonitor(String uniqueKey)
uniqueKey
- ユニークキーpublic void add(String tableName)
tableName
- テーブル名public void clean()
@Deprecated public byte[] execute(Connection con) throws SQLException, IOException
con
- DB接続オブジェクトSQLException
IOException
public void execute(Connection con, File dest) throws SQLException, IOException
con
- DB接続オブジェクトdest
- エクスポート先を示すファイルオブジェクトSQLException
IOException
public void execute(Connection con, OutputStream out) throws SQLException, IOException
con
- DB接続オブジェクトout
- 出力ストリームSQLException
IOException
public void executeByStream(Connection con, OutputStream out) throws SQLException, IOException
con
- DB接続オブジェクトout
- 出力ストリームSQLException
IOException
public String getDefaultExportFileName()
public ExportConfig getExportConfig()
config
- public ExportOptions getExportOptions()
public void includeImportOptions(ImportOptions importOptions)
importOptions
- インポートオプションpublic void setExportConfig(ExportConfig config)
config
- public void setExporter(Exporter exporter)
exporter
- エクスポーターpublic void setExportFileEncordingSetting(boolean flg)
flg
- true:エンコーディング情報をエクスポートファイルに含める false:エンコーディング情報をエクスポートファイルに含めないpublic void setExportOptions(ExportOptions options)
options
- エクスポートオプションpublic void setMonitor(String uniqueKey)
uniqueKey
- ユニークキーCopyright © 2012 NTT DATA INTRAMART CORPORATION