当前位置: 首页>>代码示例>>Java>>正文


Java DumpDTO类代码示例

本文整理汇总了Java中org.kuali.rice.edl.framework.extract.DumpDTO的典型用法代码示例。如果您正苦于以下问题:Java DumpDTO类的具体用法?Java DumpDTO怎么用?Java DumpDTO使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DumpDTO类属于org.kuali.rice.edl.framework.extract包,在下文中一共展示了DumpDTO类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: to

import org.kuali.rice.edl.framework.extract.DumpDTO; //导入依赖的package包/类
/**
 * Converts a {@link Dump} to a {@link DumpDTO}
 * @param dump the {@link Dump} to convert.
 * @return a {@link DumpDTO}
 */
public static DumpDTO to(Dump dump) {
    if (dump == null) {
        return null;
    }
    DumpDTO dumpDTO = new DumpDTO();
    dumpDTO.setDocCreationDate(dump.getDocCreationDate());
    dumpDTO.setDocCurrentNodeName(dump.getDocCurrentNodeName());
    dumpDTO.setDocDescription(dump.getDocDescription());
    dumpDTO.setDocId(dump.getDocId());
    dumpDTO.setDocInitiatorId(dump.getDocInitiatorId());
    dumpDTO.setDocModificationDate(dump.getDocModificationDate());
    dumpDTO.setDocRouteStatusCode(dump.getDocRouteStatusCode());
    dumpDTO.setDocTypeName(dump.getDocTypeName());
    dumpDTO.setLockVerNbr(dump.getLockVerNbr());
    List<FieldDTO> fields = new ArrayList<FieldDTO>();
    for (Fields field : dump.getFields()) {
        fields.add(Fields.to(field));
    }
    dumpDTO.setFields(fields);
    return dumpDTO;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:27,代码来源:Dump.java

示例2: from

import org.kuali.rice.edl.framework.extract.DumpDTO; //导入依赖的package包/类
/**
 * Converts a {@link DumpDTO} to a {@link Dump}
 * @param dumpDTO the {@link DumpDTO} to convert
 * @return a {@link Dump}
 */
public static Dump from(DumpDTO dumpDTO) {
    if (dumpDTO == null) {
        return null;
    }
    Dump dump = new Dump();
    dump.setDocCreationDate(dumpDTO.getDocCreationDate());
    dump.setDocCurrentNodeName(dumpDTO.getDocCurrentNodeName());
    dump.setDocDescription(dumpDTO.getDocDescription());
    dump.setDocId(dumpDTO.getDocId());
    dump.setDocInitiatorId(dumpDTO.getDocInitiatorId());
    dump.setDocModificationDate(dumpDTO.getDocModificationDate());
    dump.setDocRouteStatusCode(dumpDTO.getDocRouteStatusCode());
    dump.setDocTypeName(dumpDTO.getDocTypeName());
    dump.setLockVerNbr(dumpDTO.getLockVerNbr());
    List<Fields> fields = new ArrayList<Fields>();
    for (FieldDTO fieldDTO : dumpDTO.getFields()) {
        fields.add(Fields.from(fieldDTO, dump));
    }
    dump.setFields(fields);
    return dump;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:27,代码来源:Dump.java

示例3: to

import org.kuali.rice.edl.framework.extract.DumpDTO; //导入依赖的package包/类
public static DumpDTO to(Dump dump) {
	if (dump == null) {
		return null;
	}
	DumpDTO dumpDTO = new DumpDTO();
	dumpDTO.setDocCreationDate(dump.getDocCreationDate());
	dumpDTO.setDocCurrentNodeName(dump.getDocCurrentNodeName());
	dumpDTO.setDocDescription(dump.getDocDescription());
	dumpDTO.setDocId(dump.getDocId());
	dumpDTO.setDocInitiatorId(dump.getDocInitiatorId());
	dumpDTO.setDocModificationDate(dump.getDocModificationDate());
	dumpDTO.setDocRouteStatusCode(dump.getDocRouteStatusCode());
	dumpDTO.setDocTypeName(dump.getDocTypeName());
	dumpDTO.setLockVerNbr(dump.getLockVerNbr());
	List<FieldDTO> fields = new ArrayList<FieldDTO>();
	for (Fields field : dump.getFields()) {
		fields.add(Fields.to(field));
	}
	dumpDTO.setFields(fields);
	return dumpDTO;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:22,代码来源:Dump.java

示例4: from

import org.kuali.rice.edl.framework.extract.DumpDTO; //导入依赖的package包/类
public static Dump from(DumpDTO dumpDTO) {
	if (dumpDTO == null) {
		return null;
	}
	Dump dump = new Dump();
	dump.setDocCreationDate(dumpDTO.getDocCreationDate());
	dump.setDocCurrentNodeName(dumpDTO.getDocCurrentNodeName());
	dump.setDocDescription(dumpDTO.getDocDescription());
	dump.setDocId(dumpDTO.getDocId());
	dump.setDocInitiatorId(dumpDTO.getDocInitiatorId());
	dump.setDocModificationDate(dumpDTO.getDocModificationDate());
	dump.setDocRouteStatusCode(dumpDTO.getDocRouteStatusCode());
	dump.setDocTypeName(dumpDTO.getDocTypeName());
	dump.setLockVerNbr(dumpDTO.getLockVerNbr());
	List<Fields> fields = new ArrayList<Fields>();
	for (FieldDTO fieldDTO : dumpDTO.getFields()) {
		fields.add(Fields.from(fieldDTO, dump));
	}
	dump.setFields(fields);
	return dump;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:22,代码来源:Dump.java

示例5: saveDump

import org.kuali.rice.edl.framework.extract.DumpDTO; //导入依赖的package包/类
public void saveDump(DumpDTO dumpDTO) {
	try {
		Dump dump = Dump.from(dumpDTO);
		getExtractDAO().saveDump(dump);
		if (! dump.getFields().isEmpty()){
			for (Iterator iter = dump.getFields().iterator(); iter.hasNext();) {
				Fields field = (Fields) iter.next();
				getExtractDAO().saveField(field);
			}
		}
	} catch (Exception e) {
		throw new RuntimeException(e);
	}
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:ExtractServiceImpl.java

示例6: getDumpByDocumentId

import org.kuali.rice.edl.framework.extract.DumpDTO; //导入依赖的package包/类
public DumpDTO getDumpByDocumentId(String documentId) {
	return Dump.to(getExtractDAO().getDumpByDocumentId(documentId));
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:ExtractServiceImpl.java


注:本文中的org.kuali.rice.edl.framework.extract.DumpDTO类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。