Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
param assignment in Repository trait
Browse files Browse the repository at this point in the history
  • Loading branch information
duncancrawford committed Jul 28, 2015
1 parent 5b6c92d commit fef464c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/scala/uk/gov/hmrc/mongo/Repository.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ trait Repository[A <: Any, ID <: Any] extends CurrentTime {

import reactivemongo.api.ReadPreference

def findAll(readPreference: ReadPreference)(implicit ec: ExecutionContext): Future[List[A]] = ???
def findAll(readPreference: ReadPreference = ReadPreference.secondaryPreferred)(implicit ec: ExecutionContext): Future[List[A]] = ???

def findById(id: ID, readPreference: ReadPreference)(implicit ec: ExecutionContext): Future[Option[A]] = ???
def findById(id: ID, readPreference: ReadPreference = ReadPreference.secondaryPreferred)(implicit ec: ExecutionContext): Future[Option[A]] = ???

def find(query: (scala.Predef.String, play.api.libs.json.Json.JsValueWrapper)*)(implicit ec: ExecutionContext): Future[List[A]] = ???

def count(implicit ec: ExecutionContext): Future[Int] = ???

def removeAll(writeConcern: WriteConcern)(implicit ec: ExecutionContext): Future[WriteResult] = ???
def removeAll(writeConcern: WriteConcern = WriteConcern.Default)(implicit ec: ExecutionContext): Future[WriteResult] = ???

def removeById(id: ID, writeConcern: WriteConcern)(implicit ec: ExecutionContext): Future[WriteResult] = ???
def removeById(id: ID, writeConcern: WriteConcern = WriteConcern.Default)(implicit ec: ExecutionContext): Future[WriteResult] = ???

def remove(query: (scala.Predef.String, play.api.libs.json.Json.JsValueWrapper)*)(implicit ec: ExecutionContext): Future[WriteResult] = ???

Expand Down

0 comments on commit fef464c

Please sign in to comment.