Interface QueryFactory

    • Method Detail

      • createQuery

        <T> Query<T> createQuery​(Datastore datastore,
                                 com.mongodb.DBCollection collection,
                                 java.lang.Class<T> type,
                                 com.mongodb.DBObject query)
        Creates and returns a Query for the given arguments. The last argument is optional and may be null.
        Type Parameters:
        T - the type of the result
        Parameters:
        datastore - the Datastore to use
        collection - the collection to query
        type - the type of the result
        query - the DBObject containing the query structure
        Returns:
        the query
      • createQuery

        <T> Query<T> createQuery​(Datastore datastore)
        Creates an unvalidated Query typically for use in aggregation pipelines.
        Type Parameters:
        T - the type of the result
        Parameters:
        datastore - the Datastore to use
        Returns:
        the query