Tabnine Logo
QueryRootNode.needsSystemTree
Code IndexAdd Tabnine to your IDE (free)

How to use
needsSystemTree
method
in
org.apache.jackrabbit.spi.commons.query.QueryRootNode

Best Java code snippets using org.apache.jackrabbit.spi.commons.query.QueryRootNode.needsSystemTree (Showing top 4 results out of 315)

origin: org.apache.jackrabbit/jackrabbit-core

/**
 * Returns <code>true</code> if this query node needs items under
 * /jcr:system to be queried.
 *
 * @return <code>true</code> if this query node needs content under
 *         /jcr:system to be queried; <code>false</code> otherwise.
 */
public boolean needsSystemTree() {
  return this.root.needsSystemTree();
}
origin: apache/jackrabbit

/**
 * Returns <code>true</code> if this query node needs items under
 * /jcr:system to be queried.
 *
 * @return <code>true</code> if this query node needs content under
 *         /jcr:system to be queried; <code>false</code> otherwise.
 */
public boolean needsSystemTree() {
  return this.root.needsSystemTree();
}
origin: apache/jackrabbit

  public void testNeedsSystemTreeForAllNodesByNodeType() throws Exception {
    QueryRootNode queryRootNode = XPathQueryBuilder.createQuery("//element(*, nt:resource)", JCR_RESOLVER, QUERY_NODE_FACTORY);
    assertFalse(queryRootNode.needsSystemTree());

    queryRootNode = XPathQueryBuilder.createQuery("//element(*, nt:resource)[@jcr:test = 'foo']", JCR_RESOLVER, QUERY_NODE_FACTORY);
    assertFalse(queryRootNode.needsSystemTree());

    queryRootNode = XPathQueryBuilder.createQuery("//element(*, nt:nodeType)", JCR_RESOLVER, QUERY_NODE_FACTORY);
    assertTrue(queryRootNode.needsSystemTree());
  }
}
origin: apache/jackrabbit

public void testNeedsSystemTree() throws Exception {
  QueryRootNode queryRootNode = XPathQueryBuilder.createQuery("/jcr:root/*", JCR_RESOLVER, QUERY_NODE_FACTORY);
  assertTrue(queryRootNode.needsSystemTree());
  queryRootNode = XPathQueryBuilder.createQuery("/jcr:root/test/*", JCR_RESOLVER, QUERY_NODE_FACTORY);
  assertFalse(queryRootNode.needsSystemTree());
  queryRootNode = XPathQueryBuilder.createQuery("*", JCR_RESOLVER, QUERY_NODE_FACTORY);
  assertTrue(queryRootNode.needsSystemTree());
  queryRootNode = XPathQueryBuilder.createQuery("jcr:system/*", JCR_RESOLVER, QUERY_NODE_FACTORY);
  assertTrue(queryRootNode.needsSystemTree());
  queryRootNode = XPathQueryBuilder.createQuery("test//*", JCR_RESOLVER, QUERY_NODE_FACTORY);
  assertFalse(queryRootNode.needsSystemTree());
  queryRootNode = XPathQueryBuilder.createQuery("//test/*", JCR_RESOLVER, QUERY_NODE_FACTORY);
  assertTrue(queryRootNode.needsSystemTree());
}
org.apache.jackrabbit.spi.commons.queryQueryRootNodeneedsSystemTree

Popular methods of QueryRootNode

  • accept
  • getOrderNode
    Returns the order node or null if no order is specified.
  • dump
  • getLocationNode
    Returns the PathQueryNode or null if this query does not have a location node.
  • getSelectProperties
    Returns an array of select properties.
  • <init>
    Creates a new QueryRootNode instance.
  • addSelectProperty
    Adds a new select property to the query.
  • setLocationNode
    Sets the location node.
  • setOrderNode
    Sets a new order node.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now