本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例6: getDumpByDocumentId
import org.kuali.rice.edl.framework.extract.DumpDTO; //导入依赖的package包/类
public DumpDTO getDumpByDocumentId(String documentId) {
return Dump.to(getExtractDAO().getDumpByDocumentId(documentId));
}