|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectliquibase.database.AbstractDatabase
liquibase.database.core.MSSQLDatabase
public class MSSQLDatabase
Encapsulates MS-SQL database support.
Field Summary | |
---|---|
static String |
PRODUCT_NAME
|
protected Set<String> |
systemTablesAndViews
|
Fields inherited from class liquibase.database.AbstractDatabase |
---|
currentDateTimeFunction, databaseFunctions |
Fields inherited from interface liquibase.servicelocator.PrioritizedService |
---|
PRIORITY_DATABASE, PRIORITY_DEFAULT |
Constructor Summary | |
---|---|
MSSQLDatabase()
|
Method Summary | |
---|---|
String |
convertRequestedSchemaToCatalog(String requestedSchema)
|
String |
convertRequestedSchemaToSchema(String requestedSchema)
|
String |
escapeDatabaseObject(String objectName)
|
String |
escapeIndexName(String schemaName,
String indexName)
|
String |
generateDefaultConstraintName(String tableName,
String columnName)
|
String |
getAutoIncrementClause()
Returns database-specific auto-increment DDL clause. |
String |
getConcatSql(String... values)
Returns SQL to concat the passed values. |
String |
getCurrentDateTimeFunction()
Returns database-specific function for generating the current date/time. |
String |
getDateLiteral(String isoDate)
Return a date literal with the same value as a string formatted using ISO 8601. |
String |
getDefaultCatalogName()
|
protected String |
getDefaultDatabaseSchemaName()
|
String |
getDefaultDriver(String url)
If this database understands the given url, return the default driver class name. |
String |
getDefaultSchemaName()
|
int |
getPriority()
|
Set<String> |
getSystemTablesAndViews()
Returns system (undroppable) tables and views. |
String |
getTypeName()
Returns an all-lower-case short name of the product. |
boolean |
isCorrectDatabaseImplementation(DatabaseConnection conn)
Is this AbstractDatabase subclass the correct one to use for the given connection. |
boolean |
isSystemTable(String catalogName,
String schemaName,
String tableName)
|
boolean |
isSystemView(String catalogName,
String schemaName,
String viewName)
|
boolean |
supportsInitiallyDeferrableColumns()
Returns whether this database support initially deferrable columns. |
boolean |
supportsRestrictForeignKeys()
|
boolean |
supportsSequences()
Does the database type support sequence. |
boolean |
supportsTablespaces()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PRODUCT_NAME
protected Set<String> systemTablesAndViews
Constructor Detail |
---|
public MSSQLDatabase()
Method Detail |
---|
public String getTypeName()
Database
public int getPriority()
public Set<String> getSystemTablesAndViews()
AbstractDatabase
getSystemTablesAndViews
in class AbstractDatabase
public boolean supportsInitiallyDeferrableColumns()
Database
public boolean supportsSequences()
AbstractDatabase
supportsSequences
in interface Database
supportsSequences
in class AbstractDatabase
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException
Database
DatabaseException
public String getDefaultDriver(String url)
Database
public String getCurrentDateTimeFunction()
Database
public String getAutoIncrementClause()
AbstractDatabase
getAutoIncrementClause
in interface Database
getAutoIncrementClause
in class AbstractDatabase
protected String getDefaultDatabaseSchemaName() throws DatabaseException
getDefaultDatabaseSchemaName
in class AbstractDatabase
DatabaseException
public String getDefaultCatalogName() throws DatabaseException
getDefaultCatalogName
in interface Database
getDefaultCatalogName
in class AbstractDatabase
DatabaseException
public String getConcatSql(String... values)
Database
getConcatSql
in interface Database
getConcatSql
in class AbstractDatabase
public String escapeIndexName(String schemaName, String indexName)
escapeIndexName
in interface Database
escapeIndexName
in class AbstractDatabase
public boolean supportsTablespaces()
public boolean isSystemTable(String catalogName, String schemaName, String tableName)
isSystemTable
in interface Database
isSystemTable
in class AbstractDatabase
public boolean isSystemView(String catalogName, String schemaName, String viewName)
isSystemView
in interface Database
isSystemView
in class AbstractDatabase
public String generateDefaultConstraintName(String tableName, String columnName)
public String escapeDatabaseObject(String objectName)
escapeDatabaseObject
in interface Database
escapeDatabaseObject
in class AbstractDatabase
public String convertRequestedSchemaToCatalog(String requestedSchema) throws DatabaseException
convertRequestedSchemaToCatalog
in interface Database
convertRequestedSchemaToCatalog
in class AbstractDatabase
DatabaseException
public String convertRequestedSchemaToSchema(String requestedSchema) throws DatabaseException
convertRequestedSchemaToSchema
in interface Database
convertRequestedSchemaToSchema
in class AbstractDatabase
DatabaseException
public String getDateLiteral(String isoDate)
AbstractDatabase
getDateLiteral
in interface Database
getDateLiteral
in class AbstractDatabase
public boolean supportsRestrictForeignKeys()
supportsRestrictForeignKeys
in interface Database
supportsRestrictForeignKeys
in class AbstractDatabase
public String getDefaultSchemaName()
getDefaultSchemaName
in interface Database
getDefaultSchemaName
in class AbstractDatabase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |