2015年7月19日日曜日

[メタデータエディタ]TextConvertLineDto

テキスト変換行のDTOクラス。

package dto;

import util.CopyUtil;
import entity.TextConvertDef;

/**
 * テキスト変換行DTO
 */
public class TextConvertLineDto {

    /** テキスト変換行ID(主キー、サロゲートキー) */
    private Integer textConvertLineId = null;

    public Integer getTextConvertLineId() {
        return textConvertLineId;
    }

    public void setTextConvertLineId(Integer textConvertLineId) {
        this.textConvertLineId = textConvertLineId;
    }

    /** 行番号 */
    private Integer lineNo = null;

    public Integer getLineNo() {
        return lineNo;
    }

    public void setLineNo(Integer lineNo) {
        this.lineNo = lineNo;
    }

    /** 行データ */
    private String line = null;

    public String getLine() {
        return line;
    }

    public void setLine(String line) {
        this.line = line;
    }

    /** テキスト変換定義ID(外部キー) */
    private Integer textConvertDefId = null;

    public Integer getTextConvertDefId() {
        return textConvertDefId;
    }

    public void setTextConvertDefId(Integer textConvertDefId) {
        this.textConvertDefId = textConvertDefId;
    }

    /** テキスト変換定義DTO */
    private TextConvertDefDto textConvertDefDto = null;

    public TextConvertDefDto getTextConvertDefDto() {
        return textConvertDefDto;
    }

    public void setTextConvertDefDto(TextConvertDefDto textConvertDefDto) {
        this.textConvertDefDto = textConvertDefDto;
        if (textConvertDefDto != null) {
            textConvertDefId = textConvertDefDto.getTextConvertDefId();
        }
    }

    public void setTextConvertDef(TextConvertDef textConvertDef) {
        textConvertDefDto = new TextConvertDefDto();
        CopyUtil.copy(textConvertDef, textConvertDefDto);
    }
}

0 件のコメント:

コメントを投稿