reactivemongo
.
extensions
.
dao
Dao
abstract
class
Dao
[
C <:
Collection
,
Structure
,
Model
,
ID
,
Writer
[
_
]
]
extends
AnyRef
Linear Supertypes
AnyRef
,
Any
Known Subclasses
BsonDao
,
JsonDao
Ordering
Alphabetic
By inheritance
Inherited
Dao
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
Dao
(
db: () ⇒
DB
,
collectionName:
String
)
(
implicit
arg0:
CollectionProducer
[
C
]
)
Abstract Value Members
abstract
def
bulkInsert
(
models:
TraversableOnce
[
Model
]
,
bulkSize:
Int
,
bulkByteSize:
Int
)
:
Future
[
Int
]
abstract
def
count
(
selector:
Structure
)
:
Future
[
Int
]
abstract
def
drop
()
:
Future
[
Boolean
]
abstract
def
dropSync
(
timeout:
Duration
)
:
Boolean
abstract
def
ensureIndexes
()
:
Future
[
Traversable
[
Boolean
]]
abstract
def
find
(
selector:
Structure
,
sort:
Structure
,
page:
Int
,
pageSize:
Int
)
:
Future
[
List
[
Model
]]
page
1 based
abstract
def
findAll
(
selector:
Structure
,
sort:
Structure
)
:
Future
[
List
[
Model
]]
abstract
def
findById
(
id:
ID
)
:
Future
[
Option
[
Model
]]
abstract
def
findByIds
(
ids:
Traversable
[
ID
]
)
:
Future
[
List
[
Model
]]
abstract
def
findOne
(
selector:
Structure
)
:
Future
[
Option
[
Model
]]
abstract
def
findRandom
(
selector:
Structure
)
:
Future
[
Option
[
Model
]]
abstract
def
fold
[
A
]
(
selector:
Structure
,
sort:
Structure
,
state:
A
)
(
f: (
A
,
Model
) ⇒
A
)
:
Future
[
A
]
Iteratee.
Iteratee.fold
abstract
def
foreach
(
selector:
Structure
,
sort:
Structure
)
(
f: (
Model
) ⇒
Unit
)
:
Future
[
Unit
]
Iteratee.
Iteratee.foreach
abstract
def
insert
(
model:
Model
,
writeConcern:
GetLastError
)
:
Future
[
LastError
]
abstract
def
listIndexes
()
:
Future
[
List
[
Index
]]
abstract
def
remove
(
query:
Structure
,
writeConcern:
GetLastError
,
firstMatchOnly:
Boolean
)
:
Future
[
LastError
]
abstract
def
removeAll
(
writeConcern:
GetLastError
)
:
Future
[
LastError
]
abstract
def
removeById
(
id:
ID
,
writeConcern:
GetLastError
)
:
Future
[
LastError
]
abstract
def
save
(
model:
Model
,
writeConcern:
GetLastError
)
:
Future
[
LastError
]
abstract
def
update
[
U
]
(
selector:
Structure
,
update:
U
,
writeConcern:
GetLastError
,
upsert:
Boolean
,
multi:
Boolean
)
(
implicit
arg0:
Writer
[
U
]
)
:
Future
[
LastError
]
abstract
def
updateById
[
U
]
(
id:
ID
,
update:
U
,
writeConcern:
GetLastError
)
(
implicit
arg0:
Writer
[
U
]
)
:
Future
[
LastError
]
Concrete Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
autoIndexes
:
Traversable
[
Index
]
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
collection
:
C
def
defaultWriteConcern
:
GetLastError
implicit
def
ec
:
ExecutionContext
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
AnyRef
Inherited from
Any
Ungrouped