Examples of Dto


Examples of honeycrm.client.dto.Dto

          final Iterable<Key> keys = (Iterable<Key>) entity.getProperty(field);

          if (null != keys) {
            for (final Map.Entry<Key, Entity> entry : db.get(keys).entrySet()) {
              final String kindOfChild = entry.getValue().getKind();
              final Dto child = entityToDto(kindOfChild, entry.getValue(), false);
              children.add(child);
            }
          }

          dto.set(field, children);
View Full Code Here

Examples of org.g4studio.core.metatype.Dto

*/
public class RunQueryListFromOracleWithCursor {
 
  public static void main(String[] args) {
    Dao g4Dao = (Dao)SpringBeanLoader.getSpringBean("g4Dao");
    Dto prcDto = new BaseDto();
    prcDto.put("prm_Xm", "李");
    g4Dao.callPrc("Demo.g4_prc_cursor_demo", prcDto);
    List list = prcDto.getAsList("cur_list");
    for (int i = 0; i < list.size(); i++) {
      Dto dto = (BaseDto)list.get(i);
      System.out.println(dto.getAsString("xm") + ":" + dto.getAsBigDecimal("fyze"));
    }
  }
View Full Code Here

Examples of org.zkybase.cmdb.dto.Dto

    log.info("Posting CI: ciPath={}, dto={}", ciPath, dtoStr);
   
    // Map the DTO string to a DTO. We have to do it ourselves since @RequestBody doesn't work for interfaces.
    String ciType = getCiType(ciPath);
    Class<Dto> dtoClass = getDtoClass(ciType);
    Dto dto = (Dto) objectMapper.readValue(dtoStr, dtoClass);
    Node node = getMapper(ciType).toEntity(dto);
    getRepo(ciType).save(node);
   
    // Node now has an ID, so we can set it on the DTO. (Why am I doing this at all?)
//    Long id = node.getId();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.