Class DefaultQueryFactory

    • Constructor Detail

      • DefaultQueryFactory

        public DefaultQueryFactory()
    • Method Detail

      • createQuery

        public <T> Query<T> createQuery​(Datastore datastore,
                                        com.mongodb.DBCollection collection,
                                        java.lang.Class<T> type,
                                        com.mongodb.DBObject query)
        Description copied from interface: QueryFactory
        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