public interface Database extends PrioritizedService
Modifier and Type | Field and Description |
---|---|
static String |
databaseChangeLogLockTableName |
static String |
databaseChangeLogTableName |
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
getPriority
static final String databaseChangeLogTableName
static final String databaseChangeLogLockTableName
boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException
DatabaseException
String getDefaultDriver(String url)
DatabaseConnection getConnection()
void setConnection(DatabaseConnection conn)
boolean requiresUsername()
boolean requiresPassword()
boolean getAutoCommitMode()
boolean supportsDDLInTransaction()
String getDatabaseProductName()
String getDatabaseProductVersion() throws DatabaseException
DatabaseException
int getDatabaseMajorVersion() throws DatabaseException
DatabaseException
int getDatabaseMinorVersion() throws DatabaseException
DatabaseException
String getShortName()
String getDefaultCatalogName()
void setDefaultCatalogName(String catalogName) throws DatabaseException
DatabaseException
String getDefaultSchemaName()
void setDefaultSchemaName(String schemaName) throws DatabaseException
DatabaseException
Integer getDefaultPort()
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
LiquibaseException
void tag(String tagString) throws DatabaseException
DatabaseException
boolean doesTagExist(String tag) throws DatabaseException
DatabaseException
boolean isSystemObject(DatabaseObject example)
boolean isLiquibaseObject(DatabaseObject object)
String getViewDefinition(CatalogAndSchema schema, String name) throws DatabaseException
DatabaseException
String 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
DatabaseException
List<RanChangeSet> getRanChangeSetList() throws DatabaseException
DatabaseException
Date getRanDate(ChangeSet changeSet) throws DatabaseException, DatabaseHistoryException
void removeRanStatus(ChangeSet changeSet) throws DatabaseException
DatabaseException
void commit() throws DatabaseException
DatabaseException
void rollback() throws DatabaseException
DatabaseException
void close() throws DatabaseException
DatabaseException
boolean supportsRestrictForeignKeys()
boolean isAutoCommit() throws DatabaseException
DatabaseException
void setAutoCommit(boolean b) throws DatabaseException
DatabaseException
boolean isSafeToRunUpdate() throws DatabaseException
DatabaseException
void executeStatements(Change change, DatabaseChangeLog changeLog, List<SqlVisitor> sqlVisitors) throws LiquibaseException
LiquibaseException
void execute(SqlStatement[] statements, List<SqlVisitor> sqlVisitors) throws LiquibaseException
LiquibaseException
void 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
DateParseException
List<DatabaseFunction> getDateFunctions()
void resetInternalState()
boolean supportsForeignKeyDisable()
boolean disableForeignKeyChecks() throws DatabaseException
DatabaseException
void enableForeignKeyChecks() throws DatabaseException
DatabaseException
boolean 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)
Copyright © 2015 Liquibase.org. All rights reserved.