Package liquibase.ext.mongodb.database
Class MongoLiquibaseDatabase
- java.lang.Object
-
- liquibase.database.AbstractJdbcDatabase
-
- liquibase.nosql.database.AbstractNoSqlDatabase
-
- liquibase.ext.mongodb.database.MongoLiquibaseDatabase
-
- All Implemented Interfaces:
AutoCloseable,liquibase.database.Database,liquibase.servicelocator.PrioritizedService
public class MongoLiquibaseDatabase extends AbstractNoSqlDatabase
-
-
Field Summary
Fields Modifier and Type Field Description static StringADMIN_DATABSE_NAMEstatic StringMONGODB_PRODUCT_NAMEstatic StringMONGODB_PRODUCT_SHORT_NAME-
Fields inherited from class liquibase.database.AbstractJdbcDatabase
caseSensitive, currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, defaultCatalogName, defaultSchemaName, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercased
-
-
Constructor Summary
Constructors Constructor Description MongoLiquibaseDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddropDatabaseObjects(liquibase.CatalogAndSchema schemaToDrop)BooleangetAdjustTrackingTablesOnStartup()Custom ParametersStringgetDatabaseProductName()protected StringgetDefaultDatabaseProductName()StringgetDefaultDriver(String url)IntegergetDefaultPort()com.mongodb.client.MongoDatabasegetMongoDatabase()StringgetShortName()Returns an all-lower-case short name of the product.BooleangetSupportsValidator()StringgetSystemSchema()-
Methods inherited from class liquibase.nosql.database.AbstractNoSqlDatabase
createsIndexesForForeignKeys, dataTypeIsNotModifiable, disableForeignKeyChecks, enableForeignKeyChecks, escapeColumnName, escapeColumnNameList, escapeConstraintName, escapeDataTypeName, escapeIndexName, escapeObjectName, escapeObjectName, escapeSequenceName, escapeStringForDatabase, escapeTableName, escapeViewName, generateDatabaseFunctionValue, generatePrimaryKeyName, getAutoCommitMode, getAutoIncrementClause, getDataTypeMaxParameters, getDateFunctions, getLineComment, getPriority, getSchemaAndCatalogCase, getViewDefinition, isCaseSensitive, isCorrectDatabaseImplementation, isFunction, isLiquibaseObject, isReservedWord, isSystemObject, requiresExplicitNullForColumns, requiresPassword, requiresUsername, supportsAutoIncrement, supportsBatchUpdates, supportsCatalogInObjectName, supportsCatalogs, supportsDDLInTransaction, supportsDropTableCascadeConstraints, supportsForeignKeyDisable, supportsInitiallyDeferrableColumns, supportsNotNullConstraintNames, supportsPrimaryKeyNames, supportsRestrictForeignKeys, supportsSchemas, supportsSequences, supportsTablespaces, toString, unescapeDataTypeName, unescapeDataTypeString, validate
-
Methods inherited from class liquibase.database.AbstractJdbcDatabase
addReservedWords, canCreateChangeLogTable, close, commit, correctObjectName, correctSchema, correctSchema, doesTagExist, equals, escapeColumnName, execute, executeRollbackStatements, executeRollbackStatements, executeStatements, filterRollbackVisitors, generateAutoIncrementBy, generateAutoIncrementStartWith, get, getAutoIncrementByClause, getAutoIncrementClause, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConcatSql, getConnection, getConnectionCatalogName, getConnectionSchemaName, getConnectionSchemaNameCallStatement, getContainingObjects, getCurrentDateTimeFunction, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductVersion, getDateLiteral, getDateLiteral, getDateLiteral, getDateTimeLiteral, getDefaultCatalogName, getDefaultFractionalDigitsForTimestamp, getDefaultScaleForNativeDataType, getDefaultSchema, getDefaultSchemaName, getFetchSize, getJdbcCatalogName, getJdbcCatalogName, getJdbcSchemaName, getJdbcSchemaName, getLiquibaseCatalogName, getLiquibaseSchemaName, getLiquibaseTablespaceName, getMaxFractionalDigitsForTimestamp, getName, getObjectQuotingStrategy, getOutputDefaultCatalog, getOutputDefaultSchema, getQuotingEndCharacter, getQuotingEndReplacement, getQuotingStartCharacter, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getSchemaFromJdbcInfo, getSystemTables, getSystemViews, getTimeLiteral, hashCode, isAutoCommit, isCurrentTimeFunction, isDateOnly, isDateTime, isDefaultCatalog, isDefaultSchema, isSafeToRunUpdate, isSystemView, isTimeOnly, isTimestamp, jdbcCallsCatalogsSchemas, markChangeSetExecStatus, mustQuoteObjectName, parseDate, quoteObject, removeRanStatus, resetInternalState, rollback, saveRollbackStatement, saveStatements, set, setAutoCommit, setCanCacheLiquibaseTableInfo, setCaseSensitive, setConnection, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultCatalogName, setDefaultSchemaName, setLiquibaseCatalogName, setLiquibaseSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, setOutputDefaultCatalog, setOutputDefaultSchema, startsWithNumeric, tag
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface liquibase.database.Database
addReservedWords, close, commit, correctObjectName, correctSchema, doesTagExist, escapeColumnName, execute, executeRollbackStatements, executeRollbackStatements, executeStatements, getConcatSql, getConnection, getCurrentDateTimeFunction, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductVersion, getDateLiteral, getDateLiteral, getDateLiteral, getDateTimeLiteral, getDefaultCatalogName, getDefaultFractionalDigitsForTimestamp, getDefaultScaleForNativeDataType, getDefaultSchema, getDefaultSchemaName, getDisplayName, getFetchSize, getLiquibaseCatalogName, getLiquibaseSchemaName, getLiquibaseTablespaceName, getMaxFractionalDigitsForTimestamp, getObjectQuotingStrategy, getOutputDefaultCatalog, getOutputDefaultSchema, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getTimeLiteral, isAutoCommit, isDefaultCatalog, isDefaultSchema, isSafeToRunUpdate, markChangeSetExecStatus, parseDate, removeRanStatus, resetInternalState, rollback, saveRollbackStatement, saveStatements, setAutoCommit, setCanCacheLiquibaseTableInfo, setConnection, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultCatalogName, setDefaultSchemaName, setLiquibaseCatalogName, setLiquibaseSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, setOutputDefaultCatalog, setOutputDefaultSchema, tag
-
-
-
-
Field Detail
-
MONGODB_PRODUCT_NAME
public static final String MONGODB_PRODUCT_NAME
- See Also:
- Constant Field Values
-
MONGODB_PRODUCT_SHORT_NAME
public static final String MONGODB_PRODUCT_SHORT_NAME
- See Also:
- Constant Field Values
-
ADMIN_DATABSE_NAME
public static final String ADMIN_DATABSE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
dropDatabaseObjects
public void dropDatabaseObjects(liquibase.CatalogAndSchema schemaToDrop) throws liquibase.exception.LiquibaseException- Specified by:
dropDatabaseObjectsin interfaceliquibase.database.Database- Specified by:
dropDatabaseObjectsin classAbstractNoSqlDatabase- Throws:
liquibase.exception.LiquibaseException
-
getDefaultDriver
public String getDefaultDriver(String url)
- Specified by:
getDefaultDriverin interfaceliquibase.database.Database- Specified by:
getDefaultDriverin classAbstractNoSqlDatabase
-
getMongoDatabase
public com.mongodb.client.MongoDatabase getMongoDatabase()
-
getDatabaseProductName
public String getDatabaseProductName()
- Specified by:
getDatabaseProductNamein interfaceliquibase.database.Database- Specified by:
getDatabaseProductNamein classAbstractNoSqlDatabase
-
getShortName
public String getShortName()
Returns an all-lower-case short name of the product. Used for end-user selecting of database type such as the DBMS precondition.
-
getDefaultPort
public Integer getDefaultPort()
-
getDefaultDatabaseProductName
protected String getDefaultDatabaseProductName()
- Specified by:
getDefaultDatabaseProductNamein classliquibase.database.AbstractJdbcDatabase
-
getSystemSchema
public String getSystemSchema()
- Specified by:
getSystemSchemain interfaceliquibase.database.Database- Overrides:
getSystemSchemain classAbstractNoSqlDatabase
-
getAdjustTrackingTablesOnStartup
public Boolean getAdjustTrackingTablesOnStartup()
Custom Parameters
-
getSupportsValidator
public Boolean getSupportsValidator()
-
-