本文整理汇总了Java中org.kuali.rice.edl.framework.extract.DumpDTO.setFields方法的典型用法代码示例。如果您正苦于以下问题:Java DumpDTO.setFields方法的具体用法?Java DumpDTO.setFields怎么用?Java DumpDTO.setFields使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.edl.framework.extract.DumpDTO
的用法示例。
在下文中一共展示了DumpDTO.setFields方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例2: 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;
}