Class ClearCollectionCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<T>
-
- de.caluga.morphium.driver.commands.WriteMongoCommand<ClearCollectionCommand>
-
- de.caluga.morphium.driver.commands.ClearCollectionCommand
-
public class ClearCollectionCommand extends WriteMongoCommand<ClearCollectionCommand>
-
-
Constructor Summary
Constructors Constructor Description ClearCollectionCommand(MongoConnection d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoClear()Map<String,Object>execute()intexecuteAsync()StringgetCommandName()-
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
-
ClearCollectionCommand
public ClearCollectionCommand(MongoConnection d)
-
-
Method Detail
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<ClearCollectionCommand>
-
execute
public Map<String,Object> execute() throws MorphiumDriverException
- Overrides:
executein classWriteMongoCommand<ClearCollectionCommand>- Throws:
MorphiumDriverException
-
doClear
public int doClear() throws MorphiumDriverException- Throws:
MorphiumDriverException
-
executeAsync
public int executeAsync() throws MorphiumDriverException- Overrides:
executeAsyncin classMongoCommand<ClearCollectionCommand>- Throws:
MorphiumDriverException
-
-