Class CountMongoCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<CountMongoCommand>
-
- de.caluga.morphium.driver.commands.CountMongoCommand
-
- All Implemented Interfaces:
SingleResultCommand
public class CountMongoCommand extends MongoCommand<CountMongoCommand> implements SingleResultCommand
-
-
Constructor Summary
Constructors Constructor Description CountMongoCommand(MongoConnection d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>execute()intexecuteAsync()Map<String,Object>getCollation()StringgetCommandName()intgetCount()ObjectgetHint()IntegergetLimit()Map<String,Object>getQuery()Map<String,Object>getReadConcern()IntegergetSkip()CountMongoCommandsetCollation(Map<String,Object> collation)CountMongoCommandsetHint(Object hint)CountMongoCommandsetLimit(Integer limit)CountMongoCommandsetQuery(Map<String,Object> query)CountMongoCommandsetReadConcern(Map<String,Object> readConcern)CountMongoCommandsetSkip(Integer skip)-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.caluga.morphium.driver.commands.SingleResultCommand
asMap, getMetaData
-
-
-
-
Constructor Detail
-
CountMongoCommand
public CountMongoCommand(MongoConnection d)
-
-
Method Detail
-
setQuery
public CountMongoCommand setQuery(Map<String,Object> query)
-
getLimit
public Integer getLimit()
-
setLimit
public CountMongoCommand setLimit(Integer limit)
-
getSkip
public Integer getSkip()
-
setSkip
public CountMongoCommand setSkip(Integer skip)
-
getHint
public Object getHint()
-
setHint
public CountMongoCommand setHint(Object hint)
-
setReadConcern
public CountMongoCommand setReadConcern(Map<String,Object> readConcern)
-
setCollation
public CountMongoCommand setCollation(Map<String,Object> collation)
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<CountMongoCommand>
-
execute
public Map<String,Object> execute() throws MorphiumDriverException
- Specified by:
executein interfaceSingleResultCommand- Throws:
MorphiumDriverException
-
getCount
public int getCount() throws MorphiumDriverException- Throws:
MorphiumDriverException
-
executeAsync
public int executeAsync() throws MorphiumDriverException- Overrides:
executeAsyncin classMongoCommand<CountMongoCommand>- Throws:
MorphiumDriverException
-
-