Package liquibase.ext.mongodb.statement
Class CountCollectionByNameStatement
java.lang.Object
liquibase.statement.AbstractSqlStatement
liquibase.nosql.statement.AbstractNoSqlStatement
liquibase.ext.mongodb.statement.AbstractMongoStatement
liquibase.ext.mongodb.statement.AbstractRunCommandStatement
liquibase.ext.mongodb.statement.ListCollectionNamesStatement
liquibase.ext.mongodb.statement.CountCollectionByNameStatement
- All Implemented Interfaces:
NoSqlExecuteStatement<MongoLiquibaseDatabase>,NoSqlQueryForListStatement<MongoLiquibaseDatabase,,String> NoSqlQueryForLongStatement<MongoLiquibaseDatabase>,liquibase.statement.SqlStatement
public class CountCollectionByNameStatement
extends ListCollectionNamesStatement
implements NoSqlQueryForLongStatement<MongoLiquibaseDatabase>
Queries the database for the number of collections that match the supplied collectionName
i.e returns 1 if the collection is present; else 0
-
Field Summary
Fields inherited from class liquibase.ext.mongodb.statement.ListCollectionNamesStatement
AUTHORIZED_COLLECTIONS, CURSOR, FILTER, FIRST_BATCH, NAME, NAME_ONLYFields inherited from class liquibase.ext.mongodb.statement.AbstractRunCommandStatement
command, COMMAND_NAME, OK, SHELL_DB_PREFIX, WRITE_ERRORSFields inherited from interface liquibase.statement.SqlStatement
EMPTY_SQL_STATEMENT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class liquibase.ext.mongodb.statement.ListCollectionNamesStatement
getRunCommandName, queryForListMethods inherited from class liquibase.ext.mongodb.statement.AbstractRunCommandStatement
checkResponse, execute, getCommandName, run, run, toJsMethods inherited from class liquibase.nosql.statement.AbstractNoSqlStatement
continueOnError, skipOnUnsupported, toStringMethods inherited from class liquibase.statement.AbstractSqlStatement
setContinueOnError
-
Constructor Details
-
CountCollectionByNameStatement
-
-
Method Details
-
queryForLong
- Specified by:
queryForLongin interfaceNoSqlQueryForLongStatement<MongoLiquibaseDatabase>
-