liquibase.database.ext
Class MySqlDatabase

java.lang.Object
  extended by liquibase.database.AbstractDatabase
      extended by liquibase.database.core.MySQLDatabase
          extended by liquibase.database.ext.MySqlDatabase
All Implemented Interfaces:
liquibase.database.Database, liquibase.database.structure.DatabaseObject, liquibase.servicelocator.PrioritizedService

public class MySqlDatabase
extends liquibase.database.core.MySQLDatabase

Overridden to replace all schema instances with "" when getting view definitions. The purpose is to make it schema non-specific

Author:
Leo Przybylski (leo [at] rsmart.com

Field Summary
 
Fields inherited from class liquibase.database.core.MySQLDatabase
PRODUCT_NAME
 
Fields inherited from class liquibase.database.AbstractDatabase
currentDateTimeFunction, databaseFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
MySqlDatabase()
           
 
Method Summary
 int getPriority()
           
 String getViewDefinition(String schemaName, String viewName)
           
 
Methods inherited from class liquibase.database.core.MySQLDatabase
convertRequestedSchemaToCatalog, convertRequestedSchemaToSchema, disableForeignKeyChecks, enableForeignKeyChecks, escapeDatabaseObject, escapeIndexName, generateAutoIncrementBy, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConcatSql, getCurrentDateTimeFunction, getDefaultDatabaseSchemaName, getDefaultDriver, getLineComment, getTypeName, isCorrectDatabaseImplementation, supportsForeignKeyDisable, supportsInitiallyDeferrableColumns, supportsSequences, supportsTablespaces
 
Methods inherited from class liquibase.database.AbstractDatabase
canCreateChangeLogTable, checkDatabaseChangeLogLockTable, checkDatabaseChangeLogTable, close, commit, doesTagExist, dropDatabaseObjects, equals, escapeColumnName, escapeColumnNameList, escapeConstraintName, escapeSequenceName, escapeStringForDatabase, escapeTableName, escapeViewName, execute, executeRollbackStatements, executeStatements, generateAutoIncrementStartWith, generatePrimaryKeyName, getAutoCommitMode, getAutoIncrementByClause, getAutoIncrementClause, getConnection, getContainingObjects, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseFunctions, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDateLiteral, getDateLiteral, getDateLiteral, getDateTimeLiteral, getDefaultCatalogName, getDefaultSchemaName, getLiquibaseSchemaName, getNextChangeSetSequenceValue, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getSystemTablesAndViews, getTable, getTimeLiteral, hasDatabaseChangeLogLockTable, hasDatabaseChangeLogTable, hashCode, isAutoCommit, isDateOnly, isDateTime, isLiquibaseTable, isLocalDatabase, isReservedWord, isSystemTable, isSystemView, isTimeOnly, markChangeSetExecStatus, parseDate, removeRanStatus, requiresPassword, requiresUsername, reset, rollback, saveRollbackStatement, saveStatements, setAutoCommit, setCanCacheLiquibaseTableInfo, setConnection, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultSchemaName, shouldQuoteValue, supportsAutoIncrement, supportsDDLInTransaction, supportsDropTableCascadeConstraints, supportsRestrictForeignKeys, supportsSchemas, tag, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MySqlDatabase

public MySqlDatabase()
Method Detail

getPriority

public int getPriority()
Specified by:
getPriority in interface liquibase.servicelocator.PrioritizedService
Overrides:
getPriority in class liquibase.database.core.MySQLDatabase

getViewDefinition

public String getViewDefinition(String schemaName,
                                String viewName)
                         throws liquibase.exception.DatabaseException
Specified by:
getViewDefinition in interface liquibase.database.Database
Overrides:
getViewDefinition in class liquibase.database.AbstractDatabase
Throws:
liquibase.exception.DatabaseException


Copyright © 2011 Leo Przybylski. All Rights Reserved.