クラス構成
importer
class (親が下, 子が上) | modelType | dataSize | basePath | resourcePattern | format | optional |
---|---|---|---|---|---|---|
ItemInfoFromCsv | LARGE | “master” | “item_info.csv” | |||
AbstractItemInfoCsvInputDescription | ItemInfo.class (デフォルト値) | ItemInfoCsvFormat.class (デフォルト値) | ||||
DirectFileInputDescription | UNKNOWN (デフォルト値) | (宣言) | (宣言) | (宣言) | false (デフォルト値) | |
ImporterDescription | (宣言) | (宣言) |
class (親が下, 子が上) | supportedType | preferredFragmentSize | minimumFragmentSize | createInput | createOutput |
---|---|---|---|---|---|
ItemInfoCsvFormat | ItemInfo.class | -1L | Long.MAX_VALUE | (実装) | (実装) |
BinaryStreamFormat<ItemInfo> | (宣言) | (宣言) | |||
FragmentableDataFormat<ItemInfo> | (宣言) | (宣言) | |||
DataFormat<ItemInfo> | (宣言) |
ItemInfoCsvFormat#createInput の返り値
ItemInfoCsvFormat$Reader
CsvParser
DelimiterRangeInputStream
- origin: stream
- delimiter: \n
- remaining: fragmentSize
- skipFirst: offset > 0L
path
CsvConfiguration
charset: “UTF-8”
headerCells: headers
offset == 0L のときのみ
- “商品コード”
- “商品名”
- “部門コード”
- “部門名”
- “カテゴリコード”
- “カテゴリ名”
- “単価”
- “登録日”
- “適用開始日”
- “適用終了日”
trueFormat: “true”
falseFormat: “false”
dateFormat: “yyyy-MM-dd”
dateTimeFormat: “yyyy-MM-dd HH:mm:ss”
lineBreakInValue: false
なぜかこれだけ setter を使って設定している
asakusa-example には無いが, WindGate の注釈を付けてコンパイルして AbstractItemInfoCsvInputDescription を得る.
@windgate.jdbc.table(name = "ITEM_INFO")
item_info = {
...
class (親が下, 子が上) | modelType | dataSize | profileName | jdbcSupport | tableName | columnNames | condition | driverScript |
---|---|---|---|---|---|---|---|---|
AbstractItemInfoJdbcImporterDescription | ItemInfo.class (デフォルト値) | ItemInfoJdbcSupport.class (デフォルト値) | “ITEM_INFO” (デフォルト値) | List<String> object (デフォルト値) | ||||
JdbcImporterDescription | (宣言) | (宣言) | (宣言) | null (デフォルト値) | DriverScript object (デフォルト値) | |||
WindGateImporterDescription | UNKNOWN (デフォルト値) | |||||||
ImporterDescription | (宣言) | (宣言) | ||||||
WindGateProcessDescription | (宣言) | (宣言) |
class (親が下, 子が上) | supportedType | supported | createResultSetSupport | createPreparedStatementSupport |
---|---|---|---|---|
ItemInfoJdbcSupport | ItemInfo.class | (実装) | (実装) | (実装) |
DataModelJdbcSupport<ItemInfo> | (宣言) | (宣言) | (宣言) | (宣言) |