Uses of Class
liquibase.exception.DatabaseException
Package
Description
Liquibase top level namespace package.
-
Uses of DatabaseException in liquibase
Modifier and TypeMethodDescriptionfinal void
Liquibase.dropAll()
Drops all database objects in the default schema.final void
Drops all database objects in the default schema.final void
Liquibase.dropAll
(Boolean dropDbclhistory, CatalogAndSchema... schemas) Drops all database objects in the passed schema(s).final void
Liquibase.dropAll
(CatalogAndSchema... schemas) Drops all database objects in the passed schema(s).final void
Liquibase.generateChangeLog
(CatalogAndSchema catalogAndSchema, DiffToChangeLog changeLogWriter, PrintStream outputStream, Class<? extends DatabaseObject>... snapshotTypes) final void
Liquibase.generateChangeLog
(CatalogAndSchema catalogAndSchema, DiffToChangeLog changeLogWriter, PrintStream outputStream, ChangeLogSerializer changeLogSerializer, Class<? extends DatabaseObject>... snapshotTypes) protected ChangeLogIterator
Liquibase.getStandardChangelogIterator
(Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) Return a ChangeLogIterator constructed with standard filters for processing the specified changelog.boolean
Liquibase.isSafeToRunUpdate()
Returns true if it is "save" to migrate the database.void
Liquibase.outputHeader
(String message) Deprecated.use {@link LoggingExecutorTextUtil#outputHeader(String, Database, String))} -
Uses of DatabaseException in liquibase.changelog
Modifier and TypeMethodDescriptionprotected void
OfflineChangeLogHistoryService.appendChangeSet
(ChangeSet changeSet, ChangeSet.ExecType execType) void
ChangeLogHistoryService.destroy()
void
MockChangeLogHistoryService.destroy()
void
OfflineChangeLogHistoryService.destroy()
void
StandardChangeLogHistoryService.destroy()
AbstractChangeLogHistoryService.getLastDeploymentId()
Returns the deployment ID of the last changeset that has been run, ornull
if no changesets have been run yet.AbstractChangeLogHistoryService.getRanChangeSet
(ChangeSet changeSet) ChangeLogHistoryService.getRanChangeSet
(ChangeSet changeSet) MockChangeLogHistoryService.getRanChangeSet
(ChangeSet changeSet) StandardChangeLogHistoryService.getRanChangeSet
(ChangeSet changeSet) ChangeLogHistoryService.getRanChangeSets()
default List<RanChangeSet>
ChangeLogHistoryService.getRanChangeSets
(boolean allowChecksumsUpgrade) Deprecated.useChangeLogHistoryService.getRanChangeSets()
insteadMockChangeLogHistoryService.getRanChangeSets()
MockChangeLogHistoryService.getRanChangeSets
(boolean a) OfflineChangeLogHistoryService.getRanChangeSets()
StandardChangeLogHistoryService.getRanChangeSets()
Returns the ChangeSets that have been run against the current getDatabase().AbstractChangeLogHistoryService.getRanDate
(ChangeSet changeSet) ChangeLogHistoryService.getRanDate
(ChangeSet changeSet) Returns the date the given changeSet was run.MockChangeLogHistoryService.getRanDate
(ChangeSet changeSet) AbstractChangeLogHistoryService.getRunStatus
(ChangeSet changeSet) ChangeLogHistoryService.getRunStatus
(ChangeSet changeSet) MockChangeLogHistoryService.getRunStatus
(ChangeSet changeSet) void
ChangeLogHistoryService.init()
Ensures the change log history container is correctly initialized for use.void
MockChangeLogHistoryService.init()
void
OfflineChangeLogHistoryService.init()
void
StandardChangeLogHistoryService.init()
StandardChangeLogHistoryService.queryDatabaseChangeLogTable
(Database database) void
ChangeLogHistoryService.removeFromHistory
(ChangeSet changeSet) void
MockChangeLogHistoryService.removeFromHistory
(ChangeSet changeSet) void
OfflineChangeLogHistoryService.removeFromHistory
(ChangeSet changeSet) void
StandardChangeLogHistoryService.removeFromHistory
(ChangeSet changeSet) protected void
OfflineChangeLogHistoryService.replaceChangeSet
(ChangeSet changeSet, liquibase.changelog.OfflineChangeLogHistoryService.ReplaceChangeSetLogic replaceLogic) void
AbstractChangeLogHistoryService.replaceChecksum
(ChangeSet changeSet) default void
ChangeLogHistoryService.replaceChecksum
(ChangeSet changeSet) By default does nothing to keep compatibility with older versions, but subclasses may like to implement this method to support checksum upgrades.void
OfflineChangeLogHistoryService.replaceChecksum
(ChangeSet changeSet) void
ChangeLogHistoryService.setExecType
(ChangeSet changeSet, ChangeSet.ExecType execType) void
MockChangeLogHistoryService.setExecType
(ChangeSet changeSet, ChangeSet.ExecType execType) void
OfflineChangeLogHistoryService.setExecType
(ChangeSet changeSet, ChangeSet.ExecType execType) void
StandardChangeLogHistoryService.setExecType
(ChangeSet changeSet, ChangeSet.ExecType execType) void
void
void
void
Tags the database changelog with the given string.boolean
boolean
boolean
boolean
void
AbstractChangeLogHistoryService.upgradeChecksums
(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) void
ChangeLogHistoryService.upgradeChecksums
(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) Updates null checksum valuesvoid
MockChangeLogHistoryService.upgradeChecksums
(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) void
StandardChangeLogHistoryService.upgradeChecksums
(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) -
Uses of DatabaseException in liquibase.changelog.filter
ModifierConstructorDescriptionShouldRunChangeSetFilter
(Database database) ShouldRunChangeSetFilter
(Database database, boolean ignoreClasspathPrefix) -
Uses of DatabaseException in liquibase.command.core
Modifier and TypeMethodDescriptionDiffCommandStep.createDiffResult
(CommandResultsBuilder resultsBuilder) protected DatabaseSnapshot
DiffCommandStep.createReferenceSnapshot
(CommandResultsBuilder resultsBuilder) protected ChangeLogIterator
StatusCommandStep.getStandardChangelogIterator
(Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog, Database database) UpdateCountCommandStep.getStandardChangelogIterator
(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog databaseChangeLog) UpdateCountCommandStep.getStatusChangelogIterator
(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog databaseChangeLog) UpdateToTagCommandStep.getStatusChangelogIterator
(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) protected DatabaseSnapshot
DiffCommandStep.getTargetSnapshot
(CommandResultsBuilder resultsBuilder) -
Uses of DatabaseException in liquibase.command.core.helpers
Modifier and TypeMethodDescriptionprotected Database
AbstractDatabaseConnectionCommandStep.createDatabaseObject
(String url, String username, String password, String defaultSchemaName, String defaultCatalogName, String driver, String driverPropertiesFile, String liquibaseCatalogName, String liquibaseSchemaName) DbUrlConnectionCommandStep.obtainDatabase
(CommandScope commandScope) Try to retrieve and set the database object from the command scope, otherwise creates a new one . -
Uses of DatabaseException in liquibase.database
Modifier and TypeMethodDescriptionprotected boolean
AbstractJdbcDatabase.canCreateChangeLogTable()
default void
Database.checkDatabaseConnection()
Some databases (such as MongoDB) require you to verify the connection to the database to ensure that the database is accessible.void
AbstractJdbcDatabase.close()
void
Database.close()
void
DatabaseConnection.close()
void
MockDatabaseConnection.close()
void
OfflineConnection.close()
void
AbstractJdbcDatabase.commit()
void
Database.commit()
void
DatabaseConnection.commit()
void
MockDatabaseConnection.commit()
void
OfflineConnection.commit()
ConnectionServiceFactory.create
(String url, Driver driverObject, Properties driverProperties) Creates aPreparedStatement
object for the specified SQL statement.void
void
void
boolean
AbstractJdbcDatabase.disableForeignKeyChecks()
boolean
Database.disableForeignKeyChecks()
boolean
AbstractJdbcDatabase.doesTagExist
(String tag) boolean
Database.doesTagExist
(String tag) Deprecated.UseChangeLogHistoryService.tagExists(String)
insteadvoid
AbstractJdbcDatabase.enableForeignKeyChecks()
void
Database.enableForeignKeyChecks()
DatabaseFactory.findCorrectDatabaseImplementation
(DatabaseConnection connection) boolean
DatabaseConnection.getAutoCommit()
boolean
MockDatabaseConnection.getAutoCommit()
boolean
OfflineConnection.getAutoCommit()
DatabaseConnection.getCatalog()
MockDatabaseConnection.getCatalog()
OfflineConnection.getCatalog()
protected String
AbstractJdbcDatabase.getConnectionCatalogName()
int
AbstractJdbcDatabase.getDatabaseMajorVersion()
int
Database.getDatabaseMajorVersion()
int
DatabaseConnection.getDatabaseMajorVersion()
int
MockDatabaseConnection.getDatabaseMajorVersion()
int
OfflineConnection.getDatabaseMajorVersion()
int
AbstractJdbcDatabase.getDatabaseMinorVersion()
int
Database.getDatabaseMinorVersion()
int
DatabaseConnection.getDatabaseMinorVersion()
int
MockDatabaseConnection.getDatabaseMinorVersion()
int
OfflineConnection.getDatabaseMinorVersion()
DatabaseConnection.getDatabaseProductName()
MockDatabaseConnection.getDatabaseProductName()
OfflineConnection.getDatabaseProductName()
AbstractJdbcDatabase.getDatabaseProductVersion()
Database.getDatabaseProductVersion()
DatabaseConnection.getDatabaseProductVersion()
MockDatabaseConnection.getDatabaseProductVersion()
OfflineConnection.getDatabaseProductVersion()
AbstractJdbcDatabase.getRanChangeSet
(ChangeSet changeSet) Database.getRanChangeSet
(ChangeSet changeSet) AbstractJdbcDatabase.getRanChangeSetList()
Database.getRanChangeSetList()
Returns the ChangeSets that have been run against the current database.AbstractJdbcDatabase.getRanDate
(ChangeSet changeSet) Database.getRanDate
(ChangeSet changeSet) AbstractJdbcDatabase.getRunStatus
(ChangeSet changeSet) Database.getRunStatus
(ChangeSet changeSet) Returns the run status for the given ChangeSetAbstractJdbcDatabase.getViewDefinition
(CatalogAndSchema schema, String viewName) Database.getViewDefinition
(CatalogAndSchema schema, String name) boolean
AbstractJdbcDatabase.isAutoCommit()
boolean
Database.isAutoCommit()
boolean
DatabaseConnection.isClosed()
boolean
MockDatabaseConnection.isClosed()
boolean
OfflineConnection.isClosed()
boolean
Database.isCorrectDatabaseImplementation
(DatabaseConnection conn) Is this AbstractDatabase subclass the correct one to use for the given connection.boolean
AbstractJdbcDatabase.isSafeToRunUpdate()
Default implementation of theAbstractJdbcDatabase.isSafeToRunUpdate()
method.boolean
Database.isSafeToRunUpdate()
void
AbstractJdbcDatabase.markChangeSetExecStatus
(ChangeSet changeSet, ChangeSet.ExecType execType) void
Database.markChangeSetExecStatus
(ChangeSet changeSet, ChangeSet.ExecType execType) After the changeset has been run against the database this method will update the change log table with the information.void
DatabaseConnection.open
(String url, Driver driverObject, Properties driverProperties) void
MockDatabaseConnection.open
(String url, Driver driverObject, Properties driverProperties) void
OfflineConnection.open
(String url, Driver driverObject, Properties driverProperties) DatabaseFactory.openConnection
(String url, String username, String password, String driver, String databaseClass, String driverPropertiesFile, String propertyProviderClass, ResourceAccessor resourceAccessor) DatabaseFactory.openConnection
(String url, String username, String driver, String databaseClass, Properties driverProperties, ResourceAccessor resourceAccessor) DatabaseFactory.openConnection
(String url, String username, String password, String propertyProvider, ResourceAccessor resourceAccessor) DatabaseFactory.openDatabase
(String url, String username, String password, String driver, String databaseClass, String driverPropertiesFile, String propertyProviderClass, ResourceAccessor resourceAccessor) DatabaseFactory.openDatabase
(String url, String username, String driver, String databaseClass, Properties driverProperties, ResourceAccessor resourceAccessor) DatabaseFactory.openDatabase
(String url, String username, String password, String propertyProviderClass, ResourceAccessor resourceAccessor) void
AbstractJdbcDatabase.removeRanStatus
(ChangeSet changeSet) void
Database.removeRanStatus
(ChangeSet changeSet) void
AbstractJdbcDatabase.rollback()
void
Database.rollback()
void
DatabaseConnection.rollback()
void
MockDatabaseConnection.rollback()
void
OfflineConnection.rollback()
void
AbstractJdbcDatabase.setAutoCommit
(boolean b) void
Database.setAutoCommit
(boolean b) void
DatabaseConnection.setAutoCommit
(boolean autoCommit) void
MockDatabaseConnection.setAutoCommit
(boolean autoCommit) void
OfflineConnection.setAutoCommit
(boolean autoCommit) void
Database.setDefaultCatalogName
(String catalogName) void
Database.setDefaultSchemaName
(String schemaName) boolean
AbstractJdbcDatabase.supportsBatchUpdates()
boolean
Database.supportsBatchUpdates()
Does the database support batched DML (INSERT/UPDATE/DELETE/MERGE/...) statements sent in a single call to the database?void
void
Deprecated.UseChangeLogHistoryService.tag(String)
instead -
Uses of DatabaseException in liquibase.database.core
Modifier and TypeMethodDescriptionvoid
DerbyDatabase.close()
boolean
MySQLDatabase.disableForeignKeyChecks()
void
MySQLDatabase.enableForeignKeyChecks()
static List<SqlStatement>
SQLiteDatabase.getAlterTableStatements
(SQLiteDatabase.AlterTableVisitor alterTableVisitor, Database database, String catalogName, String schemaName, String tableName) protected String
DerbyDatabase.getConnectionCatalogName()
protected String
HsqlDatabase.getConnectionCatalogName()
protected String
OracleDatabase.getConnectionCatalogName()
int
CockroachDatabase.getDatabaseMajorVersion()
int
OracleDatabase.getDatabaseMajorVersion()
int
SybaseDatabase.getDatabaseMajorVersion()
int
CockroachDatabase.getDatabaseMinorVersion()
int
OracleDatabase.getDatabaseMinorVersion()
int
SybaseDatabase.getDatabaseMinorVersion()
int
MySQLDatabase.getDatabasePatchVersion()
MockDatabase.getRanChangeSet
(ChangeSet changeSet) MockDatabase.getRanChangeSetList()
MockDatabase.getRanDate
(ChangeSet changeSet) MockDatabase.getRunStatus
(ChangeSet changeSet) boolean
MySQLDatabase.getUseAffectedRows()
AbstractDb2Database.getViewDefinition
(CatalogAndSchema schema, String viewName) DerbyDatabase.getViewDefinition
(CatalogAndSchema schema, String name) H2Database.getViewDefinition
(CatalogAndSchema schema, String name) InformixDatabase.getViewDefinition
(CatalogAndSchema schema, String viewName) Ingres9Database.getViewDefinition
(CatalogAndSchema schema, String viewName) MSSQLDatabase.getViewDefinition
(CatalogAndSchema schema, String viewName) SnowflakeDatabase.getViewDefinition
(CatalogAndSchema schema, String viewName) SQLiteDatabase.getViewDefinition
(CatalogAndSchema schema, String viewName) SybaseASADatabase.getViewDefinition
(CatalogAndSchema schema, String viewName) SybaseDatabase.getViewDefinition
(CatalogAndSchema schema, String viewName) static void
DatabaseUtils.initializeDatabase
(String defaultCatalogName, String defaultSchemaName, Database database) Executes RawParameterizedSqlStatement particular to each database engine to set the default schema for the given Databaseboolean
CockroachDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
DB2Database.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
Db2zDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
DerbyDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
EnterpriseDBDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
FirebirdDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
H2Database.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
HsqlDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
InformixDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
Ingres9Database.isCorrectDatabaseImplementation
(DatabaseConnection databaseConnection) boolean
MariaDBDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
MSSQLDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
MySQLDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
OracleDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
PostgresDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
SnowflakeDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
SQLiteDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
SybaseASADatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
SybaseDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
UnsupportedDatabase.isCorrectDatabaseImplementation
(DatabaseConnection conn) boolean
H2Database.isSafeToRunUpdate()
void
MockDatabase.markChangeSetExecStatus
(ChangeSet changeSet, ChangeSet.ExecType execType) void
MockDatabase.removeRanStatus
(ChangeSet changeSet) void
PostgresDatabase.rollback()
void
SnowflakeDatabase.rollback()
void
SybaseASADatabase.setAutoCommit
(boolean b) protected void
DerbyDatabase.shutdownDerby
(String url, String driverName) -
Uses of DatabaseException in liquibase.database.jvm
Modifier and TypeMethodDescriptionvoid
JdbcConnection.clearWarnings()
void
JdbcConnection.close()
void
DerbyConnection.commit()
void
HsqlConnection.commit()
void
JdbcConnection.commit()
void
SybaseConnection.commit()
JdbcConnection.createStatement()
JdbcConnection.createStatement
(int resultSetType, int resultSetConcurrency) JdbcConnection.createStatement
(int resultSetType, int resultSetConcurrency, int resultSetHoldability) boolean
JdbcConnection.getAutoCommit()
JdbcConnection.getCatalog()
int
JdbcConnection.getDatabaseMajorVersion()
int
JdbcConnection.getDatabaseMinorVersion()
JdbcConnection.getDatabaseProductName()
JdbcConnection.getDatabaseProductVersion()
int
JdbcConnection.getHoldability()
JdbcConnection.getMetaData()
int
JdbcConnection.getTransactionIsolation()
JdbcConnection.getTypeMap()
JdbcConnection.getWarnings()
boolean
JdbcConnection.isClosed()
boolean
JdbcConnection.isReadOnly()
void
JdbcConnection.open
(String url, Driver driverObject, Properties driverProperties) JdbcConnection.prepareCall
(String sql) JdbcConnection.prepareCall
(String sql, int resultSetType, int resultSetConcurrency) JdbcConnection.prepareCall
(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) JdbcConnection.prepareStatement
(String sql) JdbcConnection.prepareStatement
(String sql, int autoGeneratedKeys) JdbcConnection.prepareStatement
(String sql, int[] columnIndexes) JdbcConnection.prepareStatement
(String sql, int resultSetType, int resultSetConcurrency) JdbcConnection.prepareStatement
(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) JdbcConnection.prepareStatement
(String sql, String[] columnNames) void
JdbcConnection.releaseSavepoint
(Savepoint savepoint) void
DerbyConnection.rollback()
void
HsqlConnection.rollback()
void
JdbcConnection.rollback()
void
void
SybaseConnection.rollback()
void
void
JdbcConnection.setAutoCommit
(boolean autoCommit) void
JdbcConnection.setCatalog
(String catalog) void
JdbcConnection.setHoldability
(int holdability) void
JdbcConnection.setReadOnly
(boolean readOnly) JdbcConnection.setSavepoint()
JdbcConnection.setSavepoint
(String name) void
JdbcConnection.setTransactionIsolation
(int level) void
JdbcConnection.setTypeMap
(Map<String, Class<?>> map) boolean
JdbcConnection.supportsBatchUpdates()
-
Uses of DatabaseException in liquibase.dbdoc
Modifier and TypeMethodDescriptionprotected void
HTMLWriter.writeBody
(Writer fileWriter, Object object, List<Change> ranChanges, List<Change> changesToRun) protected void
PendingChangesWriter.writeBody
(Writer fileWriter, Object object, List<Change> ranChanges, List<Change> changesToRun) protected void
PendingSQLWriter.writeBody
(Writer fileWriter, Object object, List<Change> ranChanges, List<Change> changesToRun) protected void
RecentChangesWriter.writeBody
(Writer fileWriter, Object object, List<Change> ranChanges, List<Change> changesToRun) protected void
HTMLWriter.writeChanges
(String title, Writer fileWriter, List<Change> changes) void
HTMLWriter.writeHTML
(Object object, List<Change> ranChanges, List<Change> changesToRun, String changeLog) void
TableWriter.writeHTML
(Object object, List<Change> ranChanges, List<Change> changesToRun, String changeLog, String schema) -
Uses of DatabaseException in liquibase.diff
Modifier and TypeMethodDescriptionboolean
DiffResult.areEqual()
DiffGenerator.compare
(DatabaseSnapshot referenceSnapshot, DatabaseSnapshot comparisonSnapshot, CompareControl compareControl) DiffGeneratorFactory.compare
(DatabaseSnapshot referenceSnapshot, DatabaseSnapshot comparisonSnapshot, CompareControl compareControl) -
Uses of DatabaseException in liquibase.diff.core
Modifier and TypeMethodDescriptionprotected void
StandardDiffGenerator.checkVersionInfo
(DatabaseSnapshot referenceSnapshot, DatabaseSnapshot comparisonSnapshot, DiffResult diffResult) StandardDiffGenerator.compare
(DatabaseSnapshot referenceSnapshot, DatabaseSnapshot comparisonSnapshot, CompareControl compareControl) -
Uses of DatabaseException in liquibase.diff.output.changelog
Modifier and TypeMethodDescriptionprotected void
DiffToChangeLog.addDependencies
(DependencyUtil.DependencyGraph<String> graph, List<String> schemas, Database database) Adds dependencies to the graph as schema.object_name.void
DiffToChangeLog.print
(PrintStream out) void
DiffToChangeLog.print
(PrintStream out, ChangeLogSerializer changeLogSerializer) Prints changeLog that would bring the target database to be the same as the reference databasevoid
void
void
DiffToChangeLog.print
(String changeLogFile, ChangeLogSerializer changeLogSerializer) void
DiffToChangeLog.print
(String changeLogFile, ChangeLogSerializer changeLogSerializer, Boolean overwriteOutputFile) void
DiffToChangeLog.printNew
(ChangeLogSerializer changeLogSerializer, Resource file) Prints changeLog that would bring the target database to be the same as the reference database -
Uses of DatabaseException in liquibase.diff.output.report
-
Uses of DatabaseException in liquibase.exception
-
Uses of DatabaseException in liquibase.executor
Modifier and TypeMethodDescriptionprotected String[]
AbstractExecutor.applyVisitors
(SqlStatement statement, List<SqlVisitor> sqlVisitors) void
Adds a comment to the database.void
void
void
AbstractExecutor.execute
(Change change, List<SqlVisitor> sqlVisitors) void
Write methodsvoid
Executor.execute
(Change change, List<SqlVisitor> sqlVisitors) void
Executor.execute
(SqlStatement sql) void
Executor.execute
(SqlStatement sql, List<SqlVisitor> sqlVisitors) void
LoggingExecutor.execute
(SqlStatement sql) void
LoggingExecutor.execute
(SqlStatement sql, List<SqlVisitor> sqlVisitors) int
Executor.queryForInt
(SqlStatement sql) Executes a query that is expected to return a scalar (1 row, 1 column).int
Executor.queryForInt
(SqlStatement sql, List<SqlVisitor> sqlVisitors) Applies a number of SqlVisitors to the sql query.int
LoggingExecutor.queryForInt
(SqlStatement sql) int
LoggingExecutor.queryForInt
(SqlStatement sql, List<SqlVisitor> sqlVisitors) Executor.queryForList
(SqlStatement sql) Executes a given SQL statement and returns a List of rows.Executor.queryForList
(SqlStatement sql, Class elementType) Executor.queryForList
(SqlStatement sql, Class elementType, List<SqlVisitor> sqlVisitors) Executor.queryForList
(SqlStatement sql, List<SqlVisitor> sqlVisitors) Applies a list of SqlVisitors to the SQL query, then executes the (possibly modified) SQL query and lastly, returns the list of rows.LoggingExecutor.queryForList
(SqlStatement sql) LoggingExecutor.queryForList
(SqlStatement sql, Class elementType) LoggingExecutor.queryForList
(SqlStatement sql, Class elementType, List<SqlVisitor> sqlVisitors) LoggingExecutor.queryForList
(SqlStatement sql, List<SqlVisitor> sqlVisitors) long
Executor.queryForLong
(SqlStatement sql) Executes a query that is expected to return a scalar (1 row, 1 column).long
Executor.queryForLong
(SqlStatement sql, List<SqlVisitor> sqlVisitors) Applies a number of SqlVisitors to the sql query.long
LoggingExecutor.queryForLong
(SqlStatement sql) long
LoggingExecutor.queryForLong
(SqlStatement sql, List<SqlVisitor> sqlVisitors) <T> T
Executor.queryForObject
(SqlStatement sql, Class<T> requiredType) Execute a query that is expected to return a scalar (1 row, 1 column).<T> T
Executor.queryForObject
(SqlStatement sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors) Applies a number of SqlVisitors to the sql query.<T> T
LoggingExecutor.queryForObject
(SqlStatement sql, Class<T> requiredType) <T> T
LoggingExecutor.queryForObject
(SqlStatement sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors) int
Executor.update
(SqlStatement sql) int
Executor.update
(SqlStatement sql, List<SqlVisitor> sqlVisitors) int
LoggingExecutor.update
(SqlStatement sql) int
LoggingExecutor.update
(SqlStatement sql, List<SqlVisitor> sqlVisitors) -
Uses of DatabaseException in liquibase.executor.jvm
Modifier and TypeMethodDescriptionvoid
static void
ChangelogJdbcMdcListener.execute
(Database database, ChangelogJdbcMdcListener.ExecuteJdbc jdbcQuery) Execute the given statement via the jdbc executor.void
JdbcExecutor.execute
(liquibase.executor.jvm.CallableStatementCallback action, List<SqlVisitor> sqlVisitors) JdbcExecutor.execute
(liquibase.executor.jvm.StatementCallback action, List<SqlVisitor> sqlVisitors) void
JdbcExecutor.execute
(SqlStatement sql) void
JdbcExecutor.execute
(SqlStatement sql, List<SqlVisitor> sqlVisitors) void
SnowflakeJdbcExecutor.execute
(SqlStatement sql, List<SqlVisitor> sqlVisitors) static <T> T
ChangelogJdbcMdcListener.query
(Database database, ChangelogJdbcMdcListener.QueryJdbc<T> jdbcQuery) Execute the given statement via the jdbc executor.JdbcExecutor.query
(SqlStatement sql, liquibase.executor.jvm.ResultSetExtractor rse) JdbcExecutor.query
(SqlStatement sql, liquibase.executor.jvm.ResultSetExtractor rse, List<SqlVisitor> sqlVisitors) JdbcExecutor.query
(SqlStatement sql, RowMapper rowMapper) JdbcExecutor.query
(SqlStatement sql, RowMapper rowMapper, List<SqlVisitor> sqlVisitors) int
JdbcExecutor.queryForInt
(SqlStatement sql) int
JdbcExecutor.queryForInt
(SqlStatement sql, List<SqlVisitor> sqlVisitors) JdbcExecutor.queryForList
(SqlStatement sql) JdbcExecutor.queryForList
(SqlStatement sql, Class elementType) JdbcExecutor.queryForList
(SqlStatement sql, Class elementType, List<SqlVisitor> sqlVisitors) JdbcExecutor.queryForList
(SqlStatement sql, List<SqlVisitor> sqlVisitors) long
JdbcExecutor.queryForLong
(SqlStatement sql) long
JdbcExecutor.queryForLong
(SqlStatement sql, List<SqlVisitor> sqlVisitors) <T> T
JdbcExecutor.queryForObject
(SqlStatement sql, Class<T> requiredType) <T> T
JdbcExecutor.queryForObject
(SqlStatement sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors) JdbcExecutor.queryForObject
(SqlStatement sql, RowMapper rowMapper) JdbcExecutor.queryForObject
(SqlStatement sql, RowMapper rowMapper, List<SqlVisitor> sqlVisitors) int
JdbcExecutor.update
(SqlStatement sql) int
JdbcExecutor.update
(SqlStatement sql, List<SqlVisitor> sqlVisitors) -
Uses of DatabaseException in liquibase.extension.testing.testsystem
Modifier and TypeMethodDescriptionvoid
void
DatabaseTestSystem.execute
(SqlStatement sqlStatement) void
DatabaseTestSystem.executeInverses
(Change change) DatabaseTestSystem.getDatabaseFromFactory()
-
Uses of DatabaseException in liquibase.integration.cdi
Modifier and TypeMethodDescriptionprotected Database
CDILiquibase.createDatabase
(Connection c) Creates and returns aDatabase
object retrieved from theDatabaseFactory
. -
Uses of DatabaseException in liquibase.integration.commandline
Modifier and TypeMethodDescriptionstatic Database
CommandLineUtils.createDatabaseObject
(ClassLoader classLoader, String url, String username, String password, String driver, String defaultCatalogName, String defaultSchemaName, boolean outputDefaultCatalog, boolean outputDefaultSchema, String databaseClass, String driverPropertiesFile, String propertyProviderClass, String liquibaseCatalogName, String liquibaseSchemaName, String databaseChangeLogTableName, String databaseChangeLogLockTableName) Deprecated.Use ResourceAccessor versionstatic Database
CommandLineUtils.createDatabaseObject
(ResourceAccessor resourceAccessor, String url, String username, String password, String driver, String defaultCatalogName, String defaultSchemaName, boolean outputDefaultCatalog, boolean outputDefaultSchema, String databaseClass, String driverPropertiesFile, String propertyProviderClass, String liquibaseCatalogName, String liquibaseSchemaName, String databaseChangeLogTableName, String databaseChangeLogLockTableName) Deprecated. -
Uses of DatabaseException in liquibase.integration.jakarta.cdi
Modifier and TypeMethodDescriptionprotected Database
CDILiquibase.createDatabase
(Connection c) Subclasses may override this method add change some database settings such as default schema before returning the database object. -
Uses of DatabaseException in liquibase.integration.spring
Modifier and TypeMethodDescriptionprotected Database
SpringLiquibase.createDatabase
(Connection c, ResourceAccessor resourceAccessor) Subclasses may override this method to modify the database settings, such as the default schema, before returning the database object.SpringLiquibase.getDatabaseProductName()
-
Uses of DatabaseException in liquibase.lockservice
Modifier and TypeMethodDescriptionvoid
LockService.destroy()
void
MockLockService.destroy()
void
OfflineLockService.destroy()
void
StandardLockService.destroy()
void
LockService.forceReleaseLock()
Releases whatever locks are on the database change log tablevoid
MockLockService.forceReleaseLock()
void
OfflineLockService.forceReleaseLock()
void
StandardLockService.forceReleaseLock()
void
LockService.init()
void
MockLockService.init()
void
OfflineLockService.init()
void
StandardLockService.init()
protected boolean
StandardLockService.isDatabaseChangeLogLockTableCreated()
-
Uses of DatabaseException in liquibase.report
Modifier and TypeMethodDescriptionvoid
RollbackReportParameters.setupDatabaseInfo
(Database database) Setup database related info used in rollback report. -
Uses of DatabaseException in liquibase.snapshot
Modifier and TypeMethodDescriptionResultSetCache.ResultSetExtractor.bulkFetch()
ResultSetCache.SingleResultSetExtractor.bulkFetch()
ResultSetCache.SingleResultSetExtractor.bulkFetchQuery()
SnapshotGeneratorFactory.createSnapshot
(CatalogAndSchema[] examples, Database database, SnapshotControl snapshotControl) Creates a database snapshot for a given array of catalog/schema combinations.SnapshotGeneratorFactory.createSnapshot
(CatalogAndSchema example, Database database, SnapshotControl snapshotControl) SnapshotGeneratorFactory.createSnapshot
(DatabaseObject[] examples, Database database, SnapshotControl snapshotControl) Creates a database snapshot for a given array of DatabaseObjects<T extends DatabaseObject>
TSnapshotGeneratorFactory.createSnapshot
(T example, Database database) Creates a DatabaseSnapshot for a single DatabaseObject.<T extends DatabaseObject>
TSnapshotGeneratorFactory.createSnapshot
(T example, Database database, SnapshotControl snapshotControl) Creates a DatabaseSnapshot for a single DatabaseObject.ResultSetCache.ResultSetExtractor.executeAndExtract
(String sql, Database database) ResultSetCache.ResultSetExtractor.executeAndExtract
(Database database, boolean informixTrimHint, String sql, Object... parameters) ResultSetCache.ResultSetExtractor.executeAndExtract
(Database database, String sql, Object... parameters) ResultSetCache.ResultSetExtractor.fastFetch()
ResultSetCache.SingleResultSetExtractor.fastFetch()
ResultSetCache.SingleResultSetExtractor.fastFetchQuery()
ResultSetCache.get
(ResultSetCache.ResultSetExtractor resultSetExtractor) JdbcDatabaseSnapshot.CachingDatabaseMetaData.getColumns
(String catalogName, String schemaName, String tableName, String columnName) Return the columns for the given catalog, schema, table, and column.SnapshotGeneratorFactory.getDatabaseChangeLogLockTable
(Database database) SnapshotGeneratorFactory.getDatabaseChangeLogTable
(SnapshotControl snapshotControl, Database database) JdbcDatabaseSnapshot.CachingDatabaseMetaData.getForeignKeys
(String catalogName, String schemaName, String tableName, String fkName) JdbcDatabaseSnapshot.CachingDatabaseMetaData.getIndexInfo
(String catalogName, String schemaName, String tableName, String indexName) JdbcDatabaseSnapshot.CachingDatabaseMetaData.getNotNullConst
(String catalogName, String schemaName, String tableName) Return the NotNullConstraints for the given catalog, schema, table, and column.JdbcDatabaseSnapshot.CachingDatabaseMetaData.getPrimaryKeys
(String catalogName, String schemaName, String table) JdbcDatabaseSnapshot.CachingDatabaseMetaData.getTables
(String catalogName, String schemaName, String table) JdbcDatabaseSnapshot.CachingDatabaseMetaData.getUniqueConstraints
(String catalogName, String schemaName, String tableName) JdbcDatabaseSnapshot.CachingDatabaseMetaData.getViews
(String catalogName, String schemaName, String viewName) boolean
SnapshotGeneratorFactory.has
(DatabaseObject example, Database database) Checks if a specific object is present in a databaseboolean
SnapshotGeneratorFactory.hasDatabaseChangeLogLockTable
(Database database) boolean
SnapshotGeneratorFactory.hasDatabaseChangeLogTable
(Database database) boolean
SnapshotGeneratorFactory.hasIgnoreNested
(DatabaseObject example, Database database) Checks if a specific object is present in a database.protected <T extends DatabaseObject>
TDatabaseSnapshot.include
(T example) Include the object described by the passed example object in this snapshot.protected void
DatabaseSnapshot.init
(DatabaseObject[] examples) <T extends DatabaseObject>
TSnapshotGenerator.snapshot
(T example, DatabaseSnapshot snapshot, SnapshotGeneratorChain chain) Commands the SnapshotGenerator to create a snapshot (a representation of a database object in Java object form) of a specific database object.<T extends DatabaseObject>
TSnapshotGeneratorChain.snapshot
(T example, DatabaseSnapshot snapshot) This calls all the non-replacedSnapshotGenerator
in the chain, by comparison order Only the first generator in the chain is allowed to create a new instance of T Subsequent generators must modify the instance or call the chain if the provided object is not handled, otherwise aDatabaseException
is thrownModifierConstructorDescriptionDatabaseSnapshot
(DatabaseObject[] examples, Database database) EmptyDatabaseSnapshot
(Database database) EmptyDatabaseSnapshot
(Database database, SnapshotControl snapshotControl) JdbcDatabaseSnapshot
(DatabaseObject[] examples, Database database) JdbcDatabaseSnapshot
(DatabaseObject[] examples, Database database, SnapshotControl snapshotControl) RestoredDatabaseSnapshot
(Database database) -
Uses of DatabaseException in liquibase.snapshot.jvm
Modifier and TypeMethodDescriptionprotected void
CatalogSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
ColumnSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
DataSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
ForeignKeySnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
IndexSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected abstract void
JdbcSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
PrimaryKeySnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
SchemaSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
SequenceSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
TableSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
UniqueConstraintSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected void
ViewSnapshotGenerator.addTo
(DatabaseObject foundObject, DatabaseSnapshot snapshot) SnowflakeResultSetConstraintsExtractor.bulkFetchQuery()
protected ForeignKeyConstraintType
ForeignKeySnapshotGenerator.convertToForeignKeyConstraintType
(Integer jdbcType, Database database) SnowflakeResultSetConstraintsExtractor.fastFetchQuery()
protected String[]
JdbcSnapshotGenerator.getDatabaseCatalogNames
(Database database) Fetches an array of Strings with the catalog names in the database.protected String[]
SchemaSnapshotGenerator.getDatabaseSchemaNames
(Database database) Fetches an array of Strings with the schema names in the database.protected String[]
SchemaSnapshotGeneratorSnowflake.getDatabaseSchemaNames
(Database database) UniqueConstraintSnapshotGenerator.listColumns
(UniqueConstraint example, Database database, DatabaseSnapshot snapshot) UniqueConstraintSnapshotGeneratorSnowflake.listColumns
(UniqueConstraint example, Database database, DatabaseSnapshot snapshot) UniqueConstraintSnapshotGenerator.listConstraints
(Table table, DatabaseSnapshot snapshot, Schema schema) UniqueConstraintSnapshotGeneratorSnowflake.listConstraints
(Table table, DatabaseSnapshot snapshot, Schema schema) protected Column
ColumnSnapshotGenerator.readColumn
(CachedRow columnMetadataResultSet, Relation table, Database database) protected DataType
ColumnSnapshotGenerator.readDataType
(CachedRow columnMetadataResultSet, Column column, Database database) Processes metadata of a column, e.g. name, type and default value.protected DataType
ColumnSnapshotGeneratorInformix.readDataType
(CachedRow columnMetadataResultSet, Column column, Database database) protected Table
JdbcSnapshotGenerator.snapshot
(DatabaseObject example, DatabaseSnapshot snapshot, SnapshotGeneratorChain chain) protected DatabaseObject
CatalogSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
ColumnSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
DataSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
ForeignKeySnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
IndexSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected abstract DatabaseObject
JdbcSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
PrimaryKeySnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
SchemaSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
SequenceSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
TableSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
UniqueConstraintSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) protected DatabaseObject
ViewSnapshotGenerator.snapshotObject
(DatabaseObject example, DatabaseSnapshot snapshot) -
Uses of DatabaseException in liquibase.statement
Modifier and TypeMethodDescriptionprotected void
ExecutablePreparedStatementBase.applyColumnParameter
(PreparedStatement stmt, int i, ColumnConfig col) Sets a single bind variable for a statement to its designated valueprotected void
BatchDmlExecutablePreparedStatement.attachParams
(List<? extends ColumnConfig> ignored, PreparedStatement stmt) protected void
ExecutablePreparedStatementBase.attachParams
(List<? extends ColumnConfig> cols, PreparedStatement stmt) Sets the list of bind variables for the execution of a DML statementvoid
ExecutablePreparedStatement.execute
(PreparedStatementFactory factory) Executes the prepared statement created by the given factory.void
ExecutablePreparedStatementBase.execute
(PreparedStatementFactory factory) -
Uses of DatabaseException in liquibase.util
Modifier and TypeMethodDescriptionstatic void
LoggingExecutorTextUtil.outputHeader
(String message, Database database, String changeLogFile) static Object
JdbcUtil.requiredSingleResult
(Collection results) Return a single result object from the given Collection.