class WaspDBMongoImp extends WaspMongoDB
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WaspDBMongoImp
- WaspMongoDB
- WaspDB
- MongoDBHelper
- Logging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new WaspDBMongoImp(mongoDatabase: MongoDatabase)
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
close(): Unit
- Definition Classes
- WaspDBMongoImp → WaspMongoDB → WaspDB
-
def
createCollection(collection: String): Unit
- Attributes
- protected
- Definition Classes
- MongoDBHelper
- Annotations
- @silent( "deprecated" )
-
def
deleteByName[T <: Model](name: String)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Unit
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
deleteByQuery[T <: Model](query: Map[String, BsonValue])(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Unit
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
deleteFileById(id: BsonObjectId): Unit
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
- def enumerateFile(file: String): Array[Byte]
-
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAll[T <: Model]()(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[T]
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
getAllDocuments[T](collection: String)(implicit ct: ClassTag[T]): Seq[T]
- Attributes
- protected
- Definition Classes
- MongoDBHelper
-
def
getAllDocumentsByField[T <: Model](field: String, value: BsonValue)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[T]
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
getAllDocumentsByFieldRaw[T <: Model](field: String, value: BsonValue)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[BsonDocument]
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
getAllDocumentsByKey[T](key: String, value: BsonValue, collection: String)(implicit ct: ClassTag[T]): Seq[T]
- Attributes
- protected
- Definition Classes
- MongoDBHelper
-
def
getAllRaw[T <: Model]()(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[BsonDocument]
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getCollection(collection: String): MongoCollection[Document]
- Attributes
- protected
- Definition Classes
- MongoDBHelper
-
def
getDocumentByField[T <: Model](field: String, value: BsonValue)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Option[T]
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
getDocumentByFieldRaw[T <: Model](field: String, value: BsonValue)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Option[BsonDocument]
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
getDocumentByKey[T](key: String, value: BsonValue, collection: String)(implicit ct: ClassTag[T]): Option[T]
- Attributes
- protected
- Definition Classes
- MongoDBHelper
-
def
getDocumentByQueryParams[T <: Model](query: Map[String, BsonValue], sort: Option[BsonDocument])(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Option[T]
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
getDocumentByQueryParams[T](queryParams: Map[String, BsonValue], sort: Option[BsonDocument], collection: String)(implicit ct: ClassTag[T]): Option[T]
- Attributes
- protected
- Definition Classes
- MongoDBHelper
-
def
getDocumentByQueryParamsRaw[T <: Model](query: Map[String, BsonValue])(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Option[BsonDocument]
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
getFileByID(id: BsonObjectId): Array[Byte]
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initializeCollections(): Unit
initializes collections.
initializes collections.
Collections are initialized concurrently by different nodes so each node tries to create it and backs off if another node concurrently created the collections.
To force name as key of models an index with unique constraint is concurrently created, if another node concurrently created the index the current node backs off.
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
insert[T <: Model](doc: T)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Unit
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
insertIfNotExists[T <: Model](doc: T)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Unit
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
insertRaw[T <: Model](doc: BsonDocument)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Unit
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
logger: WaspLogger
- Attributes
- protected
- Definition Classes
- Logging
-
val
mongoDatabase: MongoDatabase
- Definition Classes
- WaspDBMongoImp → MongoDBHelper
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
removeDocumentFromCollection[T](key: String, value: BsonValue, collection: String)(implicit arg0: ClassTag[T]): Unit
- Attributes
- protected
- Definition Classes
- MongoDBHelper
-
def
removeDocumentFromCollectionByQuery[T](query: BsonDocument, collection: String)(implicit arg0: 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
-
def
saveFile(arrayBytes: Array[Byte], file: String, metadata: BsonDocument): BsonObjectId
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updateByName[T <: Model](name: String, doc: T)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): UpdateResult
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
updateByNameRaw[T <: Model](name: String, doc: BsonDocument)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): UpdateResult
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
def
upsert[T <: Model](doc: T)(implicit ct: ClassTag[T], typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Unit
- Definition Classes
- WaspDBMongoImp → WaspMongoDB
-
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( ... ) @native()