Package liquibase.ext.mongodb.statement
Class FindAllStatement
- java.lang.Object
-
- liquibase.statement.AbstractSqlStatement
-
- liquibase.nosql.statement.AbstractNoSqlStatement
-
- liquibase.ext.mongodb.statement.AbstractMongoStatement
-
- liquibase.ext.mongodb.statement.AbstractCollectionStatement
-
- liquibase.ext.mongodb.statement.FindAllStatement
-
- All Implemented Interfaces:
NoSqlQueryForListStatement<MongoLiquibaseDatabase,org.bson.Document>,liquibase.statement.SqlStatement
public class FindAllStatement extends AbstractCollectionStatement implements NoSqlQueryForListStatement<MongoLiquibaseDatabase,org.bson.Document>
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMAND_NAME-
Fields inherited from class liquibase.ext.mongodb.statement.AbstractCollectionStatement
collectionName
-
-
Constructor Summary
Constructors Constructor Description FindAllStatement(String collectionName)FindAllStatement(String collectionName, org.bson.conversions.Bson filter, org.bson.conversions.Bson sort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommandName()List<org.bson.Document>queryForList(MongoLiquibaseDatabase database)StringtoJs()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, toString
-
-
-
-
Field Detail
-
COMMAND_NAME
public static final String COMMAND_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classAbstractNoSqlStatement
-
toJs
public String 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
-
queryForList
public List<org.bson.Document> queryForList(MongoLiquibaseDatabase database)
- Specified by:
queryForListin interfaceNoSqlQueryForListStatement<MongoLiquibaseDatabase,org.bson.Document>
-
-