Package liquibase.ext.mongodb.statement
Class CountDocumentsInCollectionStatement
java.lang.Object
liquibase.statement.AbstractSqlStatement
liquibase.nosql.statement.AbstractNoSqlStatement
liquibase.ext.mongodb.statement.AbstractMongoStatement
liquibase.ext.mongodb.statement.AbstractCollectionStatement
liquibase.ext.mongodb.statement.CountDocumentsInCollectionStatement
- All Implemented Interfaces:
NoSqlQueryForLongStatement<MongoLiquibaseDatabase>,liquibase.statement.SqlStatement
public class CountDocumentsInCollectionStatement
extends AbstractCollectionStatement
implements NoSqlQueryForLongStatement<MongoLiquibaseDatabase>
-
Field Summary
FieldsFields inherited from class liquibase.ext.mongodb.statement.AbstractCollectionStatement
collectionNameFields inherited from interface liquibase.statement.SqlStatement
EMPTY_SQL_STATEMENT -
Constructor Summary
ConstructorsConstructorDescriptionCountDocumentsInCollectionStatement(String collectionName) CountDocumentsInCollectionStatement(String collectionName, org.bson.conversions.Bson filter) -
Method Summary
Modifier and TypeMethodDescriptionlongqueryForLong(MongoLiquibaseDatabase database) toJs()Provides a pseudo javascript representation of the collection related statement (for example that can be ran in the mongo shell.Methods inherited from class liquibase.nosql.statement.AbstractNoSqlStatement
continueOnError, skipOnUnsupported, toStringMethods inherited from class liquibase.statement.AbstractSqlStatement
setContinueOnError
-
Field Details
-
COMMAND_NAME
- See Also:
-
-
Constructor Details
-
CountDocumentsInCollectionStatement
-
CountDocumentsInCollectionStatement
-
-
Method Details
-
getCommandName
- Specified by:
getCommandNamein classAbstractNoSqlStatement
-
toJs
Description copied from class:AbstractCollectionStatementProvides a pseudo javascript representation of the collection related statement (for example that can be ran in the mongo shell. Exceptions examples are count which uses db.getCollectionNames however filters programmatically by name).- Overrides:
toJsin classAbstractCollectionStatement- Returns:
- javascript version of the full command
-
queryForLong
- Specified by:
queryForLongin interfaceNoSqlQueryForLongStatement<MongoLiquibaseDatabase>
-