Class AbstractCollectionStatement

java.lang.Object
liquibase.statement.AbstractSqlStatement
All Implemented Interfaces:
liquibase.statement.SqlStatement
Direct Known Subclasses:
CountDocumentsInCollectionStatement, DeleteManyStatement, FindAllStatement, GetMaxChangeSetSequenceStatement, ReplaceChangeLogLockStatement, SelectChangeLogLockStatement, UpdateManyStatement

public abstract class AbstractCollectionStatement extends AbstractMongoStatement
  • Field Details

    • collectionName

      protected final String collectionName
  • Constructor Details

    • AbstractCollectionStatement

      public AbstractCollectionStatement()
  • Method Details

    • 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:
      toJs in class AbstractMongoStatement
      Returns:
      javascript version of the full command