public class ExportOptions extends Object implements Serializable
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
DEFAULT_FETCH_SIZE
fetch sizeのデフォルト値
|
static String |
fileName
ファイル名
|
コンストラクタと説明 |
---|
ExportOptions()
新しいエクスポートオプションオブジェクトを生成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addTargetFieldName(String tableName,
String targetFieldName)
エクスポートするフィールド名を追加します。
|
Map<String,List<String>> |
getAllTargetFieldNames()
エクスポートするテーブルとフィールドの情報を取得します。
|
SimpleDateFormat |
getDateFormat()
日付型データ用のフォーマットオブジェクトを取得します。
|
DecimalFormat |
getDecimalFormat()
数値型データ用のフォーマットオブジェクトを取得します。
|
String |
getDefaultZipFileName()
Zip圧縮してエクスポートするときのデフォルトファイル名を取得します。
|
String |
getDestFileName(String tableName)
エクスポートファイル名を取得します。
|
String |
getExportEncoding()
エクスポートファイルのエンコーディングを取得します。
|
ExporterModel |
getExporterModel()
エクスポーターの設定情報を取得します。
|
int |
getExportMaxRow()
最大出力件数を取得します。
|
int |
getExportStartIndex()
出力を開始するレコード位置を取得します。
|
int |
getFetchSize()
prepared statementに設定するfetchSizeを取得します。
|
String |
getNewLineCode()
改行コードを取得します。
|
String |
getNullValue()
null値に対する代替文字列を取得します。
|
Document |
getOptionsDocument()
エクスポートオプション設定をXMLドキュメントで取得します。
|
int |
getSleepRecordCount()
処理を一時休止するレコード件数を取得します。
|
int |
getSleepTime()
処理を一時休止する場合の休止時間(ミリ秒)を取得します。
|
String[] |
getTargetFieldNames(String tableName)
出力フィールドの一覧を取得します。
|
String[] |
getTargetTableNames()
エクスポートするテーブル名の配列を取得します。
|
String |
getXmlString()
エクスポートオプション設定をXML文字列で取得します。
|
boolean |
isIncludeBinary()
エクスポートデータの中に、バイナリのデータがあった場合
出力ファイル中に含めるかどうかを取得します。 |
boolean |
isOutputFooter()
フッタを出力するかどうかを取得します。
|
boolean |
isOutputHeader()
ヘッダを出力するかどうかを取得します。
|
boolean |
isZipFile()
出力ファイルが1ファイルの場合、zipで圧縮するかどうかを取得します。
|
void |
removeTargetFieldNames(String tableName)
指定されたテーブルの出力フィールド一覧を削除します。
|
void |
setAlias(boolean alias)
エクスポート実行時にデータベース上の別名を利用するかどうかをセットします。
|
void |
setDateFormat(String pattern)
日付型データ用のフォーマットを設定します。
|
void |
setDecimalFormat(String pattern)
数値型データ用のフォーマットを設定します。
|
void |
setDefaultZipFileName(String defaultZipFileName)
Zip圧縮してエクスポートするときのデフォルトファイル名を設定します。
|
void |
setDestFileName(String tableName,
String fileName)
出力対象テーブルと、エクスポート時のファイル名を設定します。
|
void |
setExportEncoding(String encoding)
エクスポートファイルのエンコーディングを設定します。
|
void |
setExporterModel(ExporterModel exporterModel)
エクスポーター情報を設定します。
|
void |
setExportMaxRow(int maxRow)
最大出力件数を設定します。
|
void |
setExportStartIndex(int startIndex)
出力を開始するレコード位置を設定します。
|
void |
setFetchSize(int fetchSize)
prepared statementに設定するfetchSizeを設定します。
|
void |
setIncludeBinary(boolean includeBinary)
エクスポートデータの中に、バイナリのデータがあった場合
出力ファイル中に含めるかどうかを設定します。 |
void |
setNewLineCode(String newlineCode)
改行コードを設定します。
|
void |
setNullValue(String nullValue)
null値に対する代替出力文字列を設定します。
|
void |
setOptionsDocument(Document doc)
エクスポートオプション設定をXMLドキュメントで設定します。
|
void |
setOutputFooter(boolean outputFooter)
フッタを出力するかどうかを設定します。
|
void |
setOutputHeader(boolean outputHeader)
ヘッダを出力するかどうかを設定します。
|
void |
setSleepInterval(int sleepRecordCount,
int sleepTime)
エクスポート処理中に、一定のレコード件数ごとに処理を休止するようにします。
|
void |
setTargetFieldNames(Map<String,List<String>> targetFieldNames)
出力対象のテーブルとフィールドの一覧を設定します。
|
void |
setUseBOM(boolean useBOM)
エクスポートするファイルにBOMを追加するかどうかをセットします。
|
void |
setXmlString(String src)
エクスポートオプションをXML文字列で設定します。
|
void |
setZipFile(boolean zipFile)
出力ファイルが1ファイルの場合、zipで圧縮するかどうかを設定します。
|
boolean |
useAlias()
エクスポート実行時にデータベース上の別名を利用するかどうかを取得します。
|
boolean |
useBOM()
エクスポートするファイルにBOMを追加するかどうかを取得します。
|
public static final int DEFAULT_FETCH_SIZE
public ExportOptions()
PreparedStatement
に指定するフェッチサイズ:0public void addTargetFieldName(String tableName, String targetFieldName)
tableName
- テーブル名targetFieldName
- フィールド名public Map<String,List<String>> getAllTargetFieldNames()
public SimpleDateFormat getDateFormat()
public DecimalFormat getDecimalFormat()
public String getDefaultZipFileName()
public String getDestFileName(String tableName)
tableName
- テーブル名public String getExportEncoding()
public ExporterModel getExporterModel()
public int getExportMaxRow()
public int getExportStartIndex()
public int getFetchSize()
public String getNewLineCode()
public String getNullValue()
public Document getOptionsDocument()
public int getSleepRecordCount()
public int getSleepTime()
public String[] getTargetFieldNames(String tableName)
tableName
- public String[] getTargetTableNames()
public String getXmlString()
public boolean isIncludeBinary()
public boolean isOutputFooter()
public boolean isOutputHeader()
public boolean isZipFile()
public void removeTargetFieldNames(String tableName)
tableName
- テーブル名public void setAlias(boolean alias)
alias
- true:別名を使用する false:別名を使用しないpublic void setDateFormat(String pattern)
pattern
- フォーマット文字列public void setDecimalFormat(String pattern)
pattern
- フォーマット文字列public void setDefaultZipFileName(String defaultZipFileName)
defaultZipFileName
- デフォルトzipファイル名public void setDestFileName(String tableName, String fileName)
tableName
- テーブル名fileName
- ファイル名public void setExportEncoding(String encoding)
encoding
- public void setExporterModel(ExporterModel exporterModel)
exporterModel
- エクスポーター設定情報public void setExportMaxRow(int maxRow)
maxRow
- public void setExportStartIndex(int startIndex)
startIndex
- public void setFetchSize(int fetchSize)
fetchSize
- public void setIncludeBinary(boolean includeBinary)
includeBinary
- public void setNewLineCode(String newlineCode)
newlineCode
- public void setNullValue(String nullValue)
nullValue
- 代替出力文字列public void setOptionsDocument(Document doc)
doc
- XMLドキュメントpublic void setOutputFooter(boolean outputFooter)
outputFooter
- public void setOutputHeader(boolean outputHeader)
outputHeader
- public void setSleepInterval(int sleepRecordCount, int sleepTime)
sleepRecordCount
- 処理を休止するレコード件数sleepTime
- 休止する時間(ミ秒)public void setTargetFieldNames(Map<String,List<String>> targetFieldNames)
targetFieldNames
- public void setUseBOM(boolean useBOM)
useBOM
- true:BOMを生成する false:BOMを生成しないpublic void setXmlString(String src) throws ParserConfigurationException, SAXException, IOException
src
- XML文字列ParserConfigurationException
IOException
SAXException
public void setZipFile(boolean zipFile)
zipFile
- public boolean useAlias()
public boolean useBOM()
Copyright © 2012 NTT DATA INTRAMART CORPORATION