Class StoreMongoCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<T>
-
- de.caluga.morphium.driver.commands.WriteMongoCommand<StoreMongoCommand>
-
- de.caluga.morphium.driver.commands.StoreMongoCommand
-
public class StoreMongoCommand extends WriteMongoCommand<StoreMongoCommand>
-
-
Constructor Summary
Constructors Constructor Description StoreMongoCommand(MongoConnection d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>execute()intexecuteAsync()StringgetCommandName()List<Map<String,Object>>getDocs()StoreMongoCommandsetDocuments(List<Map<String,Object>> docs)-
Methods inherited from class de.caluga.morphium.driver.commands.WriteMongoCommand
getBypassDocumentValidation, getWriteConcern, setBypassDocumentValidation, setWriteConcern
-
Methods inherited from class de.caluga.morphium.driver.commands.MongoCommand
asMap, clear, fromMap, getColl, getComment, getConnection, getDb, getMetaData, releaseConnection, setColl, setComment, setConnection, setDb, setMetaData, setMetaData
-
-
-
-
Constructor Detail
-
StoreMongoCommand
public StoreMongoCommand(MongoConnection d)
-
-
Method Detail
-
setDocuments
public StoreMongoCommand setDocuments(List<Map<String,Object>> docs)
-
execute
public Map<String,Object> execute() throws MorphiumDriverException
- Overrides:
executein classWriteMongoCommand<StoreMongoCommand>- Throws:
MorphiumDriverException
-
executeAsync
public int executeAsync() throws MorphiumDriverException- Overrides:
executeAsyncin classMongoCommand<StoreMongoCommand>- Throws:
MorphiumDriverException
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<StoreMongoCommand>
-
-