Class ContentQuery<T>

java.lang.Object
com.atlassian.confluence.content.ContentQuery<T>

public class ContentQuery<T> extends Object
A query to be performed against the underlying database to retrieve some content. This class provides an abstraction layer between the queries that we might want to perform on content and the persistence-layer-specific code that performs the query.

In the back-end, the query will be matched with a HibernateContentQuery plugin module that will perform the query itself.

The type parameter is a convenience to allow you to specify the return type of the query.

  • Constructor Details

    • ContentQuery

      public ContentQuery(String name, Object... parameters)
  • Method Details

    • getName

      public String getName()
    • getParameters

      public Object[] getParameters()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object