com
.
github
.
durre
.
mongodb
MongoDao
Related Doc:
package mongodb
abstract
class
MongoDao
[
T
,
ID
]
extends
AnyRef
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
MongoDao
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
MongoDao
(
db:
DefaultDB
,
collectionName:
String
)
(
implicit
idWriter:
BSONWriter
[
ID
, _ <:
BSONValue
]
,
idReader:
BSONReader
[_ <:
BSONValue
,
ID
]
)
Abstract Value Members
implicit abstract
def
reader
:
BSONDocumentReader
[
T
]
Attributes
protected
implicit abstract
def
writer
:
BSONDocumentWriter
[
T
]
Attributes
protected
Concrete Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
lazy val
collection
:
BSONCollection
Attributes
protected
val
collectionName
:
String
implicit
val
ec
:
ExecutionContext
Attributes
protected
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]
)
def
findAll
(
query:
BSONDocument
=
BSONDocument()
,
sort:
BSONDocument
=
BSONDocument("_id" -> 1)
)
:
Future
[
List
[
T
]]
def
findById
(
id:
ID
)
:
Future
[
Option
[
T
]]
def
findOne
(
query:
BSONDocument
)
:
Future
[
Option
[
T
]]
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
improvedStacktrace
[
A
]
(
method: ⇒
String
)
:
PartialFunction
[
Throwable
,
A
]
Attributes
protected
def
insert
(
obj:
T
)
:
Future
[
T
]
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
listIndexes
:
Future
[
List
[
Index
]]
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
removeById
(
id:
ID
)
:
Future
[
WriteResult
]
def
requiredIndexes
:
Seq
[
Index
]
Attributes
protected
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
updateById
(
id:
ID
,
obj:
T
)
:
Future
[
T
]
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