it
.
agilelab
.
bigdata
.
wasp
.
repository
.
mongo
WaspMongoDB
Related Docs:
object WaspMongoDB
|
package mongo
trait
WaspMongoDB
extends
MongoDBHelper
with
WaspDB
Linear Supertypes
WaspDB
,
MongoDBHelper
,
Logging
,
AnyRef
,
Any
Known Subclasses
WaspDBMongoImp
Ordering
Alphabetic
By Inheritance
Inherited
WaspMongoDB
WaspDB
MongoDBHelper
Logging
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Abstract Value Members
abstract
def
close
()
:
Unit
Definition Classes
WaspMongoDB
→ WaspDB
abstract
def
deleteByName
[
T <:
Model
]
(
name:
String
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Unit
abstract
def
deleteByQuery
[
T <:
Model
]
(
query:
Map
[
String
,
BsonValue
]
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Unit
abstract
def
deleteFileById
(
id:
BsonObjectId
)
:
Unit
abstract
def
getAll
[
T <:
Model
]
()
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Seq
[
T
]
abstract
def
getAllDocumentsByField
[
T <:
Model
]
(
field:
String
,
value:
BsonValue
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Seq
[
T
]
abstract
def
getAllDocumentsByFieldRaw
[
T <:
Model
]
(
field:
String
,
value:
BsonValue
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Seq
[
BsonDocument
]
abstract
def
getAllRaw
[
T <:
Model
]
()
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Seq
[
BsonDocument
]
abstract
def
getDocumentByField
[
T <:
Model
]
(
field:
String
,
value:
BsonValue
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Option
[
T
]
abstract
def
getDocumentByFieldRaw
[
T <:
Model
]
(
field:
String
,
value:
BsonValue
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Option
[
BsonDocument
]
abstract
def
getDocumentByQueryParams
[
T <:
Model
]
(
query:
Map
[
String
,
BsonValue
]
,
sort:
Option
[
BsonDocument
]
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Option
[
T
]
abstract
def
getDocumentByQueryParamsRaw
[
T <:
Model
]
(
query:
Map
[
String
,
BsonValue
]
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Option
[
BsonDocument
]
abstract
def
getFileByID
(
id:
BsonObjectId
)
:
Array
[
Byte
]
abstract
def
insert
[
T <:
Model
]
(
doc:
T
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Unit
abstract
def
insertIfNotExists
[
T <:
Model
]
(
doc:
T
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Unit
abstract
def
insertRaw
[
T <:
Model
]
(
doc:
BsonDocument
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Unit
abstract
def
mongoDatabase
:
MongoDatabase
Definition Classes
MongoDBHelper
abstract
def
saveFile
(
arrayBytes:
Array
[
Byte
]
,
file:
String
,
metadata:
BsonDocument
)
:
BsonObjectId
abstract
def
updateByName
[
T <:
Model
]
(
name:
String
,
doc:
T
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
UpdateResult
abstract
def
updateByNameRaw
[
T <:
Model
]
(
name:
String
,
doc:
BsonDocument
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
UpdateResult
abstract
def
upsert
[
T <:
Model
]
(
doc:
T
)
(
implicit
ct:
ClassTag
[
T
]
,
typeTag:
scala.reflect.api.JavaUniverse.TypeTag
[
T
]
)
:
Unit
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
def
addDocumentToCollection
[
T
]
(
collection:
String
,
doc:
T
)
(
implicit
ct:
ClassTag
[
T
]
)
:
Unit
Attributes
protected
Definition Classes
MongoDBHelper
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
createCollection
(
collection:
String
)
:
Unit
Attributes
protected
Definition Classes
MongoDBHelper
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
exitsDocumentByKey
(
key:
String
,
value:
BsonValue
,
collection:
String
)
:
Boolean
Attributes
protected
Definition Classes
MongoDBHelper
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
getAllDocuments
[
T
]
(
collection:
String
)
(
implicit
ct:
ClassTag
[
T
]
)
:
Seq
[
T
]
Attributes
protected
Definition Classes
MongoDBHelper
def
getAllDocumentsByKey
[
T
]
(
key:
String
,
value:
BsonValue
,
collection:
String
)
(
implicit
ct:
ClassTag
[
T
]
)
:
Seq
[
T
]
Attributes
protected
Definition Classes
MongoDBHelper
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getCollection
(
collection:
String
)
:
MongoCollection
[
Document
]
Attributes
protected
Definition Classes
MongoDBHelper
def
getDocumentByKey
[
T
]
(
key:
String
,
value:
BsonValue
,
collection:
String
)
(
implicit
ct:
ClassTag
[
T
]
)
:
Option
[
T
]
Attributes
protected
Definition Classes
MongoDBHelper
def
getDocumentByQueryParams
[
T
]
(
queryParams:
Map
[
String
,
BsonValue
]
,
sort:
Option
[
BsonDocument
]
,
collection:
String
)
(
implicit
ct:
ClassTag
[
T
]
)
:
Option
[
T
]
Attributes
protected
Definition Classes
MongoDBHelper
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
val
logger
:
WaspLogger
Attributes
protected
Definition Classes
Logging
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
removeDocumentFromCollection
[
T
]
(
key:
String
,
value:
BsonValue
,
collection:
String
)
(
implicit
ct:
ClassTag
[
T
]
)
:
Unit
Attributes
protected
Definition Classes
MongoDBHelper
def
removeDocumentFromCollectionByQuery
[
T
]
(
query:
BsonDocument
,
collection:
String
)
(
implicit
ct:
ClassTag
[
T
]
)
:
Unit
Attributes
protected
Definition Classes
MongoDBHelper
def
replaceDocumentToCollection
[
T
]
(
key:
String
,
value:
BsonValue
,
updateValue:
T
,
collection:
String
,
upsert:
Boolean
=
false
)
(
implicit
ct:
ClassTag
[
T
]
)
:
UpdateResult
Attributes
protected
Definition Classes
MongoDBHelper
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
WaspDB
Inherited from
MongoDBHelper
Inherited from
Logging
Inherited from
AnyRef
Inherited from
Any
Ungrouped