Package org.mongojack
Class DBCursor<T>
java.lang.Object
org.mongojack.DBCursor<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<T>,Iterator<T>
@NotThreadSafe
@Deprecated
public class DBCursor<T>
extends Object
implements Closeable, Iterator<T>, Iterable<T>
Deprecated.
Compatibility layer to support existing code interacting with the Mongojack 2.x API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.intcount()Deprecated.org.bson.Documentexplain()Deprecated.booleanhasNext()Deprecated.iterator()Deprecated.limit(int limit) Deprecated.next()Deprecated.skip(int skip) Deprecated.sort(org.bson.conversions.Bson sort) Deprecated.toArray()Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
Method Details
-
sort
Deprecated. -
limit
Deprecated. -
skip
Deprecated. -
close
public void close()Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
toArray
Deprecated. -
hasNext
public boolean hasNext()Deprecated. -
next
Deprecated. -
count
public int count()Deprecated. -
iterator
Deprecated. -
explain
public org.bson.Document explain()Deprecated.
-
MongoCollectionsas an entrypoint for interacting with MongoDB.