| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private boolean | |
| protected Boolean | |
| private DatabaseConnection | |
| private static final Pattern | |
| private static final String | |
| protected String | |
| private String | |
| private String | |
| private static final Pattern | |
| private static final String | |
| private static final Pattern | |
| private static final String | |
| protected List | |
| private static final int | |
| protected BigInteger | |
| protected BigInteger | |
| protected String | |
| private boolean | |
| protected String | |
| private static final int | |
| private String | |
| private String | |
| private String | |
| private static final Pattern | |
| private static final String | |
| private static final Pattern | |
| private static final String | |
| private static final Pattern | |
| private static final String | |
| private boolean | |
| private boolean | |
| private Boolean | |
| protected ObjectQuotingStrategy | |
| private final Set | |
| protected String | |
| protected String | sequenceNextValueFunction
The sequence name will be substituted into the string e.g. NEXTVAL('%s') |
| private static final Pattern | |
| private static final String | |
| private static final Pattern | |
| private static final String | |
| private static final Pattern | |
| private static final String | |
| protected List | |
| protected Boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| protected boolean | |
| public void | close()
Implements liquibase. Closes this resource, relinquishing any underlying resources. |
| public void | |
| public String | correctObjectName(final String objectName, final Class<? extends DatabaseObject> objectType)
Implements liquibase. Fix the object name to the format the database expects, handling changes in case, etc. |
| public CatalogAndSchema | |
| public CatalogAndSchema | correctSchema(final CatalogAndSchema schema)
Implements liquibase.
Deprecated
Returns a new CatalogAndSchema adjusted for this database. |
| public boolean | |
| public boolean | dataTypeIsNotModifiable(final String
type name typeName)Implements liquibase. Types like int4 in postgres cannot have a modifier. |
| public boolean | |
| public boolean | |
| public void | dropDatabaseObjects(final CatalogAndSchema
schema (catalog+)schema to drop schemaToDrop)Implements liquibase. Drops all objects in a specified schema. |
| public void | |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | escapeColumnName(final String catalogName, final String schemaName, final String tableName, final String
column name columnName)Implements liquibase. Escapes a single column name in a database-dependent manner so reserved words can be used as a column name (i.e. "return"). |
| public String | escapeColumnName(String catalogName, String schemaName, String tableName, String columnName, boolean quoteNamesThatMayBeFunctions)
Implements liquibase. Similar to |
| public String | escapeColumnNameList(final String
list of column names columnNames)Implements liquibase. Escapes a list of column names in a database-dependent manner so reserved words can be used as a column name (i.e. "return"). |
| public String | escapeConstraintName(final String constraintName)
Implements liquibase.
|
| public String | |
| public String | escapeIndexName(final String catalogName, final String schemaName, final String indexName)
Implements liquibase.
|
| public String | escapeObjectName(String catalogName, String schemaName, final String objectName, final Class<? extends DatabaseObject> objectType)
Implements liquibase.
|
| public String | escapeObjectName(String objectName, final Class<? extends DatabaseObject> objectType)
Implements liquibase.
|
| public String | escapeSequenceName(final String catalogName, final String schemaName, final String sequenceName)
Implements liquibase.
|
| public String | escapeStringForDatabase(final String string)
Implements liquibase.
|
| public String | escapeTableName(final String catalogName, final String schemaName, final String tableName)
Implements liquibase.
|
| public String | escapeViewName(final String catalogName, final String schemaName, final String viewName)
Implements liquibase.
|
| public void | execute(final SqlStatement[] statements, final List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| public void | executeRollbackStatements(final SqlStatement[] statements, final List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| public void | executeRollbackStatements(final Change change, final List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| public void | executeStatements(final Change change, final DatabaseChangeLog changeLog, final List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| protected List | filterRollbackVisitors(final List<SqlVisitor> visitors)
Takes a list of SqlVisitors and returns a new list with only the SqlVisitors set to apply to rollbacks |
| protected boolean | |
| protected boolean | |
| public String | generateDatabaseFunctionValue(final DatabaseFunction
database function to check. databaseFunction)Implements liquibase. Some function names are placeholders that need to be replaced with the specific database value. |
| public String | generatePrimaryKeyName(final String tableName)
Implements liquibase.
|
| public Object | |
| public boolean | getAutoCommitMode()
Implements liquibase. Auto-commit mode to run in |
| protected String | |
| public String | getAutoIncrementClause(final BigInteger startWith, final BigInteger incrementBy, final String generationType, final Boolean defaultOnNull)
Implements liquibase. Returns database-specific auto-increment DDL clause. |
| protected String | |
| protected String | getAutoIncrementClause(final String generationType, final Boolean defaultOnNull)
Default implementation. |
| protected String | |
| protected String | |
| protected String | |
| public String | getConcatSql(final String... values)
Implements liquibase. Returns SQL to concat the passed values. |
| public DatabaseConnection | |
| protected String | |
| protected String | |
| protected SqlStatement | getConnectionSchemaNameCallStatement()
Used to obtain the connection schema name through a statement Override this method to change the statement. |
| public DatabaseObject[] | |
| public String | getCurrentDateTimeFunction()
Implements liquibase. Returns database-specific function for generating the current date/time. |
| public String | |
| public String | |
| public int | |
| public int | |
| public String | getDatabaseProductName()
Implements liquibase. Returns the name of the database product according to the underlying database. |
| public String | |
| public int | getDataTypeMaxParameters(final String dataTypeName)
Implements liquibase.
|
| public List | getDateFunctions()
Implements liquibase. Returns list of database native date functions |
| public String | getDateLiteral(final String isoDate)
Implements liquibase. Return a date literal with the same value as a string formatted using ISO 8601. |
| public String | |
| public String | |
| public String | |
| public String | |
| protected abstract String | |
| public int | Returns: the default precision / number of maximum digits in a timestamp if nothing else is specified.Implements liquibase. SQL Standard (Foundation) says: "...if <timestamp precision> is not specified, then 6 is implicit." |
| public Integer | getDefaultScaleForNativeDataType(String
the name of the native data type (case-insensitive). nativeDataType)Implements liquibase. Returns the default precision for a given native data type, e.g. "datetime2" for Microsoft SQL Server. |
| public CatalogAndSchema | |
| public String | |
| public Integer | |
| public String | |
| public final String | |
| public String | |
| public final String | |
| public String | getLineComment()
Implements liquibase. Returns database-specific line comment string. |
| public String | |
| public String | |
| public String | |
| public int | Returns: the maximum number of supported fractional digits in TIMESTAMP columnsImplements liquibase. Most relational databases support 9 fractional digits, and subclasses must overwrite this method if they support less than that. |
| public String | |
| public ObjectQuotingStrategy | |
| public boolean | |
| public boolean | getOutputDefaultSchema()
Implements liquibase. Should the schema be included in identifiers even if it is the default schema? |
| protected String | |
| protected String | |
| protected String | |
| public RanChangeSet | |
| public List | getRanChangeSetList()
Implements liquibase. Returns the ChangeSets that have been run against the current database. |
| public Date | |
| protected String | |
| protected String | |
| public ChangeSet. | getRunStatus(final ChangeSet changeSet)
Implements liquibase. Returns the run status for the given ChangeSet |
| public CatalogAndSchema. | Returns: UPPER_CASE by defaultImplements liquibase. This logic is used when db support catalogs |
| public CatalogAndSchema | |
| public String | |
| protected Set | |
| protected Set | |
| public String | |
| public String | getViewDefinition(CatalogAndSchema schema, final String viewName)
Implements liquibase.
|
| public int | |
| public boolean | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | isDateOnly(final String
value to check. isoDate)Returns true if the String conforms to an ISO 8601 date, e.g. 2016-12-31. |
| protected boolean | isDateTime(final String
value to check. isoDate)Returns true if the String conforms to an ISO 8601 date plus a time (hours, minutes, whole seconds and optionally fraction of a second) in UTC, e.g. 2016-12-31T18:43:59. |
| public boolean | isDefaultCatalog(final String
catalog name to be tested catalog)Implements liquibase. If the database supports catalogs, test if a given catalog name equals to the default catalog of the current logged in user. |
| public boolean | isDefaultSchema(final String
catalog name to be tested catalog, final String schema name to be tested schema)Implements liquibase. If the database supports schemas, test if a given combination of catalog and schema name equals to the default catalog and schema of the current logged in user. |
| public boolean | |
| public boolean | isLiquibaseObject(final DatabaseObject object)
Implements liquibase.
|
| public boolean | |
| public boolean | Returns: true if the database connection URL contains "localhost" or "127.0.0.1", otherwise false.Implements liquibase. Default implementation of the |
| public boolean | |
| public boolean | |
| protected boolean | isTimeOnly(final String
value to check isoDate)Returns true if the String conforms to an ISO 8601 time (hours, minutes and whole seconds) in UTC, e.g. 18:43:59. |
| protected boolean | isTimestamp(final String
value to check isoDate)Returns true if the String conforms to an ISO 8601 date plus a timestamp (hours, minutes, seconds and at least one decimal fraction) in UTC, e.g. 2016-12-31T18:43:59.3 or 2016-12-31T18:43:59.345. |
| public boolean | |
| public void | markChangeSetExecStatus(final ChangeSet changeSet, final ChangeSet.
Implements liquibase. After the changeset has been ran against the database this method will update the change log table with the information. |
| protected boolean | |
| public Date | |
| private CatalogAndSchema. | |
| public String | |
| public void | |
| public boolean | requiresExplicitNullForColumns()
Implements liquibase. Does the database require explicit NULL for nullable columns? |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | saveRollbackStatement(final Change change, final List<SqlVisitor> sqlVisitors, final Writer writer)
Implements liquibase.
|
| public void | saveStatements(final Change change, final List<SqlVisitor> sqlVisitors, final Writer writer)
Implements liquibase.
|
| public AbstractJdbcDatabase | |
| public void | |
| public void | setCanCacheLiquibaseTableInfo(final boolean canCacheLiquibaseTableInfo)
Implements liquibase.
|
| public void | |
| public void | |
| public void | setCurrentDateTimeFunction(final String function)
Implements liquibase.
|
| public void | setDatabaseChangeLogLockTableName(final String tableName)
Implements liquibase. Set the table name of the change log lock to the given table name |
| public void | setDatabaseChangeLogTableName(final String
the name of the change log table to set tableName)Implements liquibase. Sets the table name of the change log to the given table name. |
| public void | setDefaultCatalogName(final String defaultCatalogName)
Implements liquibase.
|
| public void | setDefaultSchemaName(final String schemaName)
Implements liquibase.
|
| public void | setLiquibaseCatalogName(final String catalogName)
Implements liquibase.
|
| public void | setLiquibaseSchemaName(final String schemaName)
Implements liquibase.
|
| public void | setLiquibaseTablespaceName(final String tablespace)
Implements liquibase.
|
| public void | setObjectQuotingStrategy(final ObjectQuotingStrategy quotingStrategy)
Implements liquibase.
|
| public void | setOutputDefaultCatalog(final boolean outputDefaultCatalog)
Implements liquibase.
|
| public void | setOutputDefaultSchema(final boolean outputDefaultSchema)
Implements liquibase. Whether the default schema should be included in generated SQL |
| protected boolean | |
| public boolean | |
| public boolean | supportsBatchUpdates()
Implements liquibase. Does the database support batched DML (INSERT/UPDATE/DELETE/MERGE/...) statements sent in a single call to the database? |
| public boolean | supportsCatalogInObjectName(final Class<? extends DatabaseObject> type)
Implements liquibase.
|
| public boolean | |
| public boolean | Returns: True if the database supports DDL within a transaction, otherwise false.Implements liquibase. Determines if the database supports DDL within a transaction or not. |
| public boolean | |
| public boolean | |
| public boolean | supportsNotNullConstraintNames()
Implements liquibase. Does this database treat NOT NULL as an own kind of CONSTRAINT (in addition of simply being a column property)? |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | supportsSequences()
Implements liquibase. Does the database type support sequence. |
| public void | tag(final String tagString)
Implements liquibase. Tags the database changelog with the given string. |
| public String | |
| public String | unescapeDataTypeName(String dataTypeName)
Implements liquibase.
|
| public String | unescapeDataTypeString(String dataTypeString)
Implements liquibase.
|
| public ValidationErrors |