Package liquibase.ext.mongodb.statement
Class AbstractCollectionStatement
- java.lang.Object
-
- liquibase.statement.AbstractSqlStatement
-
- liquibase.nosql.statement.AbstractNoSqlStatement
-
- liquibase.ext.mongodb.statement.AbstractMongoStatement
-
- liquibase.ext.mongodb.statement.AbstractCollectionStatement
-
- All Implemented Interfaces:
liquibase.statement.SqlStatement
- Direct Known Subclasses:
CountDocumentsInCollectionStatement,DeleteManyStatement,FindAllStatement,GetMaxChangeSetSequenceStatement,ReplaceChangeLogLockStatement,SelectChangeLogLockStatement,UpdateManyStatement
public abstract class AbstractCollectionStatement extends AbstractMongoStatement
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcollectionName
-
Constructor Summary
Constructors Constructor Description AbstractCollectionStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, getCommandName, skipOnUnsupported, toString
-
-
-
-
Field Detail
-
collectionName
protected final String collectionName
-
-
Method Detail
-
toJs
public String toJs()
Provides 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 classAbstractMongoStatement- Returns:
- javascript version of the full command
-
-