Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Fixed setter/getter of option on cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan W. McAdams committed Jan 29, 2011
1 parent 6c8b76a commit e16b205
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions casbah-core/src/main/scala/MongoCursor.scala
Expand Up @@ -133,7 +133,17 @@ trait MongoCursorBase[T <: DBObject] extends Iterator[T] with Logging {
* @see com.mongodb.Mongo
* @see com.mongodb.Bytes
*/
def option_=(option: Int) = underlying.addOption(option)
def option_=(option: Int): Unit = underlying.addOption(option)

/**
* Manipulate Query Options
*
* Gets current option settings - see Bytes.QUERYOPTION_* for list
*
* @see com.mongodb.Mongo
* @see com.mongodb.Bytes
*/
def option = underlying.getOptions

/**
* Manipulate Query Options
Expand Down Expand Up @@ -163,7 +173,7 @@ trait MongoCursorBase[T <: DBObject] extends Iterator[T] with Logging {
* @see com.mongodb.Mongo
* @see com.mongodb.Bytes
*/
def options_=(opts: Int) = underlying.setOptions(opts)
def options_=(opts: Int): Unit = underlying.setOptions(opts)

/**
* hint
Expand Down

0 comments on commit e16b205

Please sign in to comment.