Package javax.jcr.query

Examples of javax.jcr.query.Row


        String expectedPath = testRootNode.getNode(nodeName1).getPath();
        assertEquals("unexpected result node", expectedPath, r.getNode(SELECTOR_NAME).getPath());
    }

    public void testGetPath() throws RepositoryException {
        Row r = getRow();
        String expectedPath = testRootNode.getNode(nodeName1).getPath();
        assertEquals("unexpected result node", expectedPath, r.getPath());
    }
View Full Code Here


        String expectedPath = testRootNode.getNode(nodeName1).getPath();
        assertEquals("unexpected result node", expectedPath, r.getPath());
    }

    public void testGetPathWithSelector() throws RepositoryException {
        Row r = getRow();
        String expectedPath = testRootNode.getNode(nodeName1).getPath();
        assertEquals("unexpected result node", expectedPath, r.getPath(SELECTOR_NAME));
    }
View Full Code Here

        String expectedPath = testRootNode.getNode(nodeName1).getPath();
        assertEquals("unexpected result node", expectedPath, r.getPath(SELECTOR_NAME));
    }

    public void testGetScore() throws RepositoryException {
        Row r = getRow();
        // value is implementation dependent, simply call method...
        r.getScore();
    }
View Full Code Here

        // value is implementation dependent, simply call method...
        r.getScore();
    }

    public void testGetScoreWithSelector() throws RepositoryException {
        Row r = getRow();
        // value is implementation dependent, simply call method...
        r.getScore(SELECTOR_NAME);
    }
View Full Code Here

                qf.descendantNode(SELECTOR_NAME, testRoot),
                null,
                new Column[]{qf.column(SELECTOR_NAME, propertyName1, propertyName1)});
        RowIterator rows = qom.execute().getRows();
        assertTrue("empty result", rows.hasNext());
        Row r = rows.nextRow();
        assertFalse("result must not contain more than one row", rows.hasNext());
        return r;
    }
View Full Code Here

        checkResult(result, 1);

        // evaluate result
        RowIterator itr = result.getRows();
        while (itr.hasNext()) {
            Row row = itr.nextRow();
            Value value = row.getValue(propertyName1);
            if (value != null) {
                String fullText = value.getString();
                if (fullText.indexOf("cat") > 0) {
                    fail("Search Text: full text search not correct, returned prohibited text");
                }
View Full Code Here

            super(collection);
            this.size = size;
        }

        public Row nextRow() {
            Row next = super.nextRow();
            if (commonPathPrefix != null) {
                next = new RowAdapter(next, commonPathPrefix);
            } else {
                next = new RowAdapter(next, ".");
            }
View Full Code Here

         * Fetches the next {@link Row}.
         */
        private void fetchNext() {
            next = null;
            while (next == null && rows.hasNext()) {
                Row r = rows.nextRow();
                try {
                    if (filter.include(r)) {
                        next = r;
                        return;
                    }
View Full Code Here

        );
        forQOMandSQL2(qom, new Callable() {
            public Object call(Query query) throws RepositoryException {
                RowIterator rows = query.execute().getRows();
                assertTrue("empty result", rows.hasNext());
                Row r = rows.nextRow();
                assertEquals("unexpected value", TEST_VALUE, r.getValue(columnName1).getString());
                assertEquals("unexpected value", TEST_VALUE, r.getValue(columnName2).getString());
                return null;
            }
        });
    }
View Full Code Here

            super(collection);
            this.size = size;
        }

        public Row nextRow() {
            Row next = super.nextRow();
            if (commonPathPrefix != null) {
                next = new RowAdapter(next, commonPathPrefix);
            } else {
                next = new RowAdapter(next, ".");
            }
View Full Code Here

TOP

Related Classes of javax.jcr.query.Row

Copyright © 2018 www.massapicom. 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.