Class 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 Detail

      • ContentQuery

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

      • getName

        public String getName()
      • getParameters

        public Object[] getParameters()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object