public interface Database extends PrioritizedService
| Modifier and Type | Field and Description |
|---|---|
static String |
databaseChangeLogLockTableName |
static String |
databaseChangeLogTableName |
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULTgetPrioritystatic final String databaseChangeLogTableName
static final String databaseChangeLogLockTableName
boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException
DatabaseExceptionString getDefaultDriver(String url)
DatabaseConnection getConnection()
void setConnection(DatabaseConnection conn)
boolean requiresUsername()
boolean requiresPassword()
boolean getAutoCommitMode()
boolean supportsDDLInTransaction()
String getDatabaseProductName()
String getDatabaseProductVersion() throws DatabaseException
DatabaseExceptionint getDatabaseMajorVersion()
throws DatabaseException
DatabaseExceptionint getDatabaseMinorVersion()
throws DatabaseException
DatabaseExceptionString getShortName()
String getDefaultCatalogName()
void setDefaultCatalogName(String catalogName) throws DatabaseException
DatabaseExceptionString getDefaultSchemaName()
void setDefaultSchemaName(String schemaName) throws DatabaseException
DatabaseExceptionInteger getDefaultPort()
Integer getFetchSize()
String getLiquibaseCatalogName()
void setLiquibaseCatalogName(String catalogName)
String getLiquibaseSchemaName()
void setLiquibaseSchemaName(String schemaName)
boolean supportsInitiallyDeferrableColumns()
boolean supportsSequences()
boolean supportsDropTableCascadeConstraints()
boolean supportsAutoIncrement()
String getCurrentDateTimeFunction()
void setCurrentDateTimeFunction(String function)
String getLineComment()
String getAutoIncrementClause(BigInteger startWith, BigInteger incrementBy)
String getDatabaseChangeLogTableName()
String getDatabaseChangeLogLockTableName()
String getLiquibaseTablespaceName()
void setLiquibaseTablespaceName(String tablespaceName)
void setDatabaseChangeLogTableName(String tableName)
tableName - void setDatabaseChangeLogLockTableName(String tableName)
tableName - void setCanCacheLiquibaseTableInfo(boolean canCacheLiquibaseTableInfo)
void dropDatabaseObjects(CatalogAndSchema schema) throws LiquibaseException
LiquibaseExceptionvoid tag(String tagString) throws DatabaseException
DatabaseExceptionboolean doesTagExist(String tag) throws DatabaseException
DatabaseExceptionboolean isSystemObject(DatabaseObject example)
boolean isLiquibaseObject(DatabaseObject object)
String getViewDefinition(CatalogAndSchema schema, String name) throws DatabaseException
DatabaseExceptionString escapeObjectName(String catalogName, String schemaName, String objectName, Class<? extends DatabaseObject> objectType)
String escapeObjectName(String objectName, Class<? extends DatabaseObject> objectType)
String escapeColumnName(String catalogName, String schemaName, String tableName, String columnName)
schemaName - tableName - columnName - column nameString escapeColumnName(String catalogName, String schemaName, String tableName, String columnName, boolean quoteNamesThatMayBeFunctions)
String escapeColumnNameList(String columnNames)
columnNames - list of column namesboolean supportsTablespaces()
boolean supportsCatalogs()
boolean supportsSchemas()
boolean supportsCatalogInObjectName(Class<? extends DatabaseObject> type)
String escapeSequenceName(String catalogName, String schemaName, String sequenceName)
ChangeSet.RunStatus getRunStatus(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
RanChangeSet getRanChangeSet(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
void markChangeSetExecStatus(ChangeSet changeSet, ChangeSet.ExecType execType) throws DatabaseException
DatabaseExceptionList<RanChangeSet> getRanChangeSetList() throws DatabaseException
DatabaseExceptionDate getRanDate(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
void removeRanStatus(ChangeSet changeSet) throws DatabaseException
DatabaseExceptionvoid commit()
throws DatabaseException
DatabaseExceptionvoid rollback()
throws DatabaseException
DatabaseExceptionvoid close()
throws DatabaseException
DatabaseExceptionboolean supportsRestrictForeignKeys()
boolean isAutoCommit()
throws DatabaseException
DatabaseExceptionvoid setAutoCommit(boolean b)
throws DatabaseException
DatabaseExceptionboolean isSafeToRunUpdate()
throws DatabaseException
DatabaseExceptionvoid executeStatements(Change change, DatabaseChangeLog changeLog, List<SqlVisitor> sqlVisitors) throws LiquibaseException
LiquibaseExceptionvoid execute(SqlStatement[] statements, List<SqlVisitor> sqlVisitors) throws LiquibaseException
LiquibaseExceptionvoid saveStatements(Change change, List<SqlVisitor> sqlVisitors, Writer writer) throws IOException, StatementNotSupportedOnDatabaseException, LiquibaseException
void executeRollbackStatements(Change change, List<SqlVisitor> sqlVisitors) throws LiquibaseException, RollbackImpossibleException
void executeRollbackStatements(SqlStatement[] statements, List<SqlVisitor> sqlVisitors) throws LiquibaseException, RollbackImpossibleException
void saveRollbackStatement(Change change, List<SqlVisitor> sqlVisitors, Writer writer) throws IOException, RollbackImpossibleException, StatementNotSupportedOnDatabaseException, LiquibaseException
Date parseDate(String dateAsString) throws DateParseException
DateParseExceptionList<DatabaseFunction> getDateFunctions()
void resetInternalState()
boolean supportsForeignKeyDisable()
boolean disableForeignKeyChecks()
throws DatabaseException
DatabaseExceptionvoid enableForeignKeyChecks()
throws DatabaseException
DatabaseExceptionboolean isCaseSensitive()
boolean isReservedWord(String string)
CatalogAndSchema correctSchema(CatalogAndSchema schema)
CatalogAndSchema.standardize(Database)String correctObjectName(String name, Class<? extends DatabaseObject> objectType)
boolean isFunction(String string)
int getDataTypeMaxParameters(String dataTypeName)
CatalogAndSchema getDefaultSchema()
boolean dataTypeIsNotModifiable(String typeName)
typeName - type nameString generateDatabaseFunctionValue(DatabaseFunction databaseFunction)
databaseFunction - database function to check.void setObjectQuotingStrategy(ObjectQuotingStrategy quotingStrategy)
ObjectQuotingStrategy getObjectQuotingStrategy()
boolean createsIndexesForForeignKeys()
void setOutputDefaultSchema(boolean outputDefaultSchema)
boolean getOutputDefaultSchema()
boolean isDefaultCatalog(String catalog)
boolean getOutputDefaultCatalog()
void setOutputDefaultCatalog(boolean outputDefaultCatalog)
boolean supportsPrimaryKeyNames()
String getSystemSchema()
void addReservedWords(Collection<String> words)
ValidationErrors validate()
Copyright © 2018 Liquibase.org. All rights reserved.