com.enioka.jqm.model.Node.select()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(220)

本文整理了Java中com.enioka.jqm.model.Node.select()方法的一些代码示例,展示了Node.select()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.select()方法的具体详情如下:
包路径:com.enioka.jqm.model.Node
类名称:Node
方法名:select

Node.select介绍

暂无

代码示例

代码示例来源:origin: com.enioka.jqm/jqm-model

  1. public static Node select_single(DbConn cnx, String query_key, Object... args)
  2. {
  3. List<Node> nn = select(cnx, query_key, args);
  4. if (nn.size() == 0)
  5. {
  6. throw new NoResultException("No node with this ID");
  7. }
  8. if (nn.size() > 1)
  9. {
  10. throw new NonUniqueResultException("COnfiguration is broken: multiple nodes with the same ID");
  11. }
  12. return nn.get(0);
  13. }
  14. }

代码示例来源:origin: enioka/jqm

  1. public static Node select_single(DbConn cnx, String query_key, Object... args)
  2. {
  3. List<Node> nn = select(cnx, query_key, args);
  4. if (nn.size() == 0)
  5. {
  6. throw new NoResultException("No node with this ID");
  7. }
  8. if (nn.size() > 1)
  9. {
  10. throw new NonUniqueResultException("COnfiguration is broken: multiple nodes with the same ID");
  11. }
  12. return nn.get(0);
  13. }
  14. }

代码示例来源:origin: com.enioka.jqm/jqm-engine

  1. static void checkConfiguration(String nodeName, DbConn cnx)
  2. List<Node> nodes = Node.select(cnx, "node_select_by_key", nodeName);
  3. if (nodes.size() == 0)

代码示例来源:origin: enioka/jqm

  1. static void checkConfiguration(String nodeName, DbConn cnx)
  2. List<Node> nodes = Node.select(cnx, "node_select_by_key", nodeName);
  3. if (nodes.size() == 0)

相关文章