`
li.feixiang
  • 浏览: 120585 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

Solution for searching the latest revision object

 
阅读更多
        // Implement your query specification 
        QuerySpec spec = new QuerySpec(WTDocument.class);
        spec.appendWhere(new SearchCondition(WTDocument.class, WTDocument.NAME, SearchCondition.EQUAL,"JUN_DOC2"));
        
        // Set latest configspec
        LatestConfigSpec configspec = new LatestConfigSpec();
        
        // Search latest object. Do not use PersistenceHelper.manager.find().
        QueryResult result = ConfigHelper.service.queryIterations(spec, configspec);
        
        Enumeration resultEnum = result.getEnumeration();
        while( resultEnum.hasMoreElements() ) {
            WTDocument part = (WTDocument)resultEnum.nextElement();
            System.out.println("--------------------------");
            System.out.println("NAME="+part.getName());
            //System.out.println("VIEW="+part.getViewName());
            System.out.println(part.getVersionIdentifier().getValue());
            System.out.println(part.getIterationIdentifier().getValue());
            //System.out.println(((WTDocument)lObject.getLatest()).getViewName());
        }
 
分享到:
评论

相关推荐

    solving solution by searching

    在IT领域,尤其是在人工智能与算法研究中,“通过搜索解决问题”是一个核心且广泛讨论的主题。这一概念不仅涵盖了基础知识,还深入到了复杂的问题解决策略和技术。以下是对该主题的深入解析,旨在提炼并阐述从标题、...

    Multidimensional Binary Search Trees Used for Associative Searching

    1975年,来自斯坦福大学的Jon Louis Bentley在ACM杂志上发表的一篇论文:Multidimensional Binary Search Trees Used for Associative Searching 中正式提出和阐述的了把空间划分为多个部分的k-d树。

    A Hybrid Approach for Searching in the Semantic

    对XML文档检索的一篇较经典的文献,将结构和内容联合搜索

    searching the workplace web 论文PPT

    信息检索课论文 searching the workplace web

    R-trees a dynamic index structure for spatial searching

    权威又详细的空间树rtree论文 paper by Guttman

    Java邮件开发Fundamentals of the JavaMail API

    A general familiarity with object-oriented programming concepts and the Java programming language is necessary. The Java language essentials tutorial can help. copyright 1996-2000 Magelang ...

    Searching for Controllable Image Restoration Networks.pdf

    为了克服这一问题,"Searching for Controllable Image Restoration Networks" 提出了一种基于神经架构搜索(Neural Architecture Search, NAS)的新框架,该框架通过两阶段的剪枝技术——任务无关(Task-Agnostic)...

    Searching for Solutions in Games and Arti?cial Intelligence

    证明五子棋带禁手时黑棋必胜Sp eculations and AI 1.2 Identifying the obstacles 1.3 Uncovering hidden obstacles 1.4 The problem statement : 1.5 1.6 Solving games 1.7 Thesis outline

    Web Searching and Mining

    In today’s world, searching data from the World Wide Web is a common phenomenon for virtually everyone. It is also a fact that searching the tremendous amount of data from the Internet is a mammoth ...

    Searching for MobileNetV3

    MobileNetV3是深度学习领域中针对移动设备优化的轻量级神经网络模型,由Google研究团队提出。该模型的设计目标是在保持高精度的同时,显著提高运行效率,以适应资源有限的移动平台。MobileNetV3的主要创新点包括: ...

    Searching_the_web.pdf

    《Searching_the_web.pdf》这份文档主要探讨了网络搜索引擎的设计与实现技术。随着互联网的快速发展,网页数量呈指数级增长,如何有效地组织这些海量信息并提供精准的搜索结果成为了当前信息技术领域的一个重要课题...

    Reliable peers and useful resources Searching

    ### 可靠同伴与有用资源:寻找个性化学习路径 #### 概述 本文探讨了如何在信任和推荐意识环境中寻找最合适的个性化学习路径。随着Web 2.0的发展和对等网络(P2P)的广泛应用,我们能够从分散的数据源获取越来越多...

    The Art of Computer Programming Volume 3 Sorting and Searching, 2nd Edition

    《计算机程序设计艺术 第3卷 排序与搜索(第二版)》是计算机科学领域的一本经典著作,由Donald Knuth撰写。这本书深入探讨了排序和搜索算法的理论与实践,是计算机科学家和软件工程师的重要参考书籍。...

    华南理工大学计算机全英班算法设计实验

    We can search this tree to get the solution for this problem. 2.Experimental Purpose (1)Understand the Tree Search algorithm. (2)Learn the solution expression of some problems by A Tree data ...

    Ulam’s searching game with.pdf

    The mathematical analysis presented in Sections 2 and 3 provides a solid foundation for understanding the dynamics between Paul and Carole and the conditions required for Paul to succeed in finding ...

    Linux for Developers

    ** This book is part of the Developer’s Library series from Addison-Wesley, designed to provide practicing programmers with unique, high-quality references and tutorials on the latest programming ...

    Coding Interview _ Solution Manual

    The solution uses a `for` loop to iterate from 1 to 100, checking each number against the conditions specified in the problem statement. The `if-else` chain ensures that the correct output is ...

Global site tag (gtag.js) - Google Analytics