Method Summary |
|
protected boolean | canCreateChangeLogTable() |
public void | checkDatabaseChangeLogLockTable() This method will check the database ChangeLogLock table used to keep track of
if a machine is updating the database. |
public void | checkDatabaseChangeLogTable() This method will check the database ChangeLog table used to keep track of
the changes in the file. |
public void | close() |
public void | commit() |
public Object | convertDatabaseValueToJavaObject(Object defaultValue, int dataType, int columnSize, int decimalDigits) |
public String | convertJavaObjectToString(Object value) |
public String | convertRequestedSchemaToCatalog(String requestedSchema) |
public String | convertRequestedSchemaToSchema(String requestedSchema) |
protected Object | convertToCorrectJavaType(String value, int dataType, int columnSize, int decimalDigits) |
protected SqlStatement | createChangeToTagSQL() Returns SQL to return the date of the most recient changeset execution. |
public SqlStatement | createFindSequencesSQL(String schema) |
protected SqlStatement | createTagSQL(String tagName, Date dateExecuted) Returns SQL to tag the database. |
public boolean | doesChangeLogLockTableExist() |
public boolean | doesChangeLogTableExist() |
public boolean | doesTagExist(String tag) |
public void | dropDatabaseObjects(String schema) Drops all objects owned by the connected user. |
public boolean | equals(Object o) |
public String | escapeColumnName(String columnName) |
public String | escapeColumnNameList(String columnNames) |
public String | escapeSequenceName(String schemaName, String sequenceName) |
public String | escapeStringForDatabase(String string) |
public String | escapeTableName(String schemaName, String tableName) |
public String | escapeViewName(String schemaName, String viewName) |
public String | generatePrimaryKeyName(String tableName) |
public boolean | getAutoCommitMode() |
public String | getAutoIncrementClause() Returns database-specific auto-increment DDL clause. |
public String | getColumnType(String columnType, Boolean autoIncrement) Returns the database-specific datatype for the given column configuration.
This method will convert some generic column types (e.g. |
final public String | getColumnType(ColumnConfig columnConfig) |
public String | getConcatSql(String... values) |
public DatabaseConnection | getConnection() |
public String | getConnectionURL() |
public String | getConnectionUsername() |
protected SqlStatement | getCreateChangeLogLockSQL() |
protected SqlStatement | getCreateChangeLogSQL() |
public String | getDatabaseChangeLogLockTableName() |
public String | getDatabaseChangeLogTableName() |
public String | getDatabaseProductName() Returns the name of the database product according to the underlying database. |
public String | getDatabaseProductName(Connection conn) |
public String | getDatabaseProductVersion() |
public int | getDatabaseType(int type) |
public String | getDateLiteral(String isoDate) Return a date literal with the same value as a string formatted using ISO 8601.
Note: many databases accept date literals in ISO8601 format with the 'T' replaced with
a space. |
public String | getDateLiteral(java.sql.Timestamp date) |
public String | getDateLiteral(java.sql.Date date) |
public String | getDateLiteral(java.sql.Time date) |
public String | getDateLiteral(Date date) |
public String | getDateType() Returns the actual database-specific data type to use a "date" (no time information) column. |
public String | getDefaultCatalogName() |
protected String | getDefaultDatabaseSchemaName() |
public String | getDefaultSchemaName() |
public String | getDriverName() |
public String | getFalseBooleanValue() The database-specific value to use for "false" "boolean" columns. |
public JdbcTemplate | getJdbcTemplate() |
public String | getLineComment() Returns database-specific line comment string. |
public RanChangeSet | getRanChangeSet(ChangeSet changeSet) |
public List<RanChangeSet> | getRanChangeSetList() Returns the ChangeSets that have been run against the current database. |
public Date | getRanDate(ChangeSet changeSet) |
public ChangeSet.RunStatus | getRunStatus(ChangeSet changeSet) |
public SqlStatement | getSelectChangeLogLockSQL() |
public DatabaseSnapshot | getSnapshot() |
protected Set<String> | getSystemTablesAndViews() Returns system (undroppable) tables and views. |
public String | getTimeType() Returns the actual database-specific data type to use a "time" column. |
public String | getTrueBooleanValue() The database-specific value to use for "true" "boolean" columns. |
public String | getViewDefinition(String schemaName, String viewName) |
public SqlStatement | getViewDefinitionSql(String schemaName, String viewName) |
public int | hashCode() |
public boolean | isColumnAutoIncrement(String schemaName, String tableName, String columnName) |
protected boolean | isDateOnly(String isoDate) |
protected boolean | isDateTime(String isoDate) |
public boolean | isLiquibaseTable(String tableName) |
public boolean | isSystemTable(String catalogName, String schemaName, String tableName) |
public boolean | isSystemView(String catalogName, String schemaName, String viewName) |
protected boolean | isTimeOnly(String isoDate) |
public void | markChangeSetAsRan(ChangeSet changeSet) After the change set has been ran against the database this method will update the change log table
with the information. |
public void | markChangeSetAsReRan(ChangeSet changeSet) |
protected Date | parseDate(String dateAsString) |
public void | removeRanStatus(ChangeSet changeSet) |
public void | rollback() |
public void | setConnection(Connection conn) |
public void | setConnection(DatabaseConnection conn) |
public void | setCurrentDateTimeFunction(String function) |
public void | setDefaultSchemaName(String schemaName) |
public void | setJdbcTemplate(JdbcTemplate template) |
public boolean | shouldQuoteValue(String value) |
public boolean | supportsAutoIncrement() |
public boolean | supportsDDLInTransaction() By default databases should support DDL within a transaction. |
public boolean | supportsSchemas() |
public boolean | supportsSequences() Does the database type support sequence. |
public void | tag(String tagString) Tags the database changelog with the given string. |
public String | toString() |