|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.database.AbstractJdbcDatabase
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 interface liquibase.servicelocator.PrioritizedService |
|---|
PRIORITY_DATABASE, PRIORITY_DEFAULT |
| Constructor Summary | |
|---|---|
MSSQLDatabase()
|
|
| Method Summary | |
|---|---|
String |
escapeIndexName(String catalogName,
String schemaName,
String indexName)
|
String |
escapeObjectName(String objectName,
Class<? extends DatabaseObject> objectType)
|
String |
escapeTableName(String catalogName,
String schemaName,
String tableName)
|
String |
escapeViewName(String catalogName,
String schemaName,
String viewName)
SQLServer does not support specifying the database name as a prefix to the object name |
protected boolean |
generateAutoIncrementBy(BigInteger incrementBy)
|
protected boolean |
generateAutoIncrementStartWith(BigInteger startWith)
|
String |
generateDefaultConstraintName(String tableName,
String columnName)
|
protected String |
getAutoIncrementByClause()
|
protected String |
getAutoIncrementClause()
|
protected String |
getAutoIncrementStartWithClause()
|
String |
getConcatSql(String... values)
Returns SQL to concat the passed values. |
protected String |
getConnectionSchemaName()
Overwrite this method to get the default schema name for the connection. |
String |
getDateLiteral(String isoDate)
Return a date literal with the same value as a string formatted using ISO 8601. |
String |
getDefaultCatalogName()
|
protected String |
getDefaultDatabaseProductName()
|
String |
getDefaultDriver(String url)
If this database understands the given url, return the default driver class name. |
Integer |
getDefaultPort()
|
int |
getPriority()
|
String |
getShortName()
Returns an all-lower-case short name of the product. |
protected Set<String> |
getSystemTables()
Returns system (undroppable) views. |
Set<String> |
getSystemViews()
Returns system (undroppable) views. |
String |
getViewDefinition(CatalogAndSchema schema,
String viewName)
|
boolean |
isCorrectDatabaseImplementation(DatabaseConnection conn)
Is this AbstractDatabase subclass the correct one to use for the given connection. |
boolean |
isSystemObject(DatabaseObject example)
|
boolean |
supportsDropTableCascadeConstraints()
|
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 getShortName()
Database
public int getPriority()
protected String getDefaultDatabaseProductName()
getDefaultDatabaseProductName in class AbstractJdbcDatabasepublic Integer getDefaultPort()
public Set<String> getSystemViews()
AbstractJdbcDatabase
getSystemViews in class AbstractJdbcDatabaseprotected Set<String> getSystemTables()
AbstractJdbcDatabase
getSystemTables in class AbstractJdbcDatabasepublic boolean supportsInitiallyDeferrableColumns()
Database
public boolean supportsSequences()
AbstractJdbcDatabase
supportsSequences in interface DatabasesupportsSequences in class AbstractJdbcDatabase
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
throws DatabaseException
Database
DatabaseExceptionpublic String getDefaultDriver(String url)
Database
protected String getAutoIncrementClause()
getAutoIncrementClause in class AbstractJdbcDatabaseprotected boolean generateAutoIncrementStartWith(BigInteger startWith)
generateAutoIncrementStartWith in class AbstractJdbcDatabaseprotected boolean generateAutoIncrementBy(BigInteger incrementBy)
generateAutoIncrementBy in class AbstractJdbcDatabaseprotected String getAutoIncrementStartWithClause()
getAutoIncrementStartWithClause in class AbstractJdbcDatabaseprotected String getAutoIncrementByClause()
getAutoIncrementByClause in class AbstractJdbcDatabasepublic String getDefaultCatalogName()
getDefaultCatalogName in interface DatabasegetDefaultCatalogName in class AbstractJdbcDatabaseprotected String getConnectionSchemaName()
AbstractJdbcDatabase
getConnectionSchemaName in class AbstractJdbcDatabasepublic String getConcatSql(String... values)
Database
getConcatSql in interface DatabasegetConcatSql in class AbstractJdbcDatabase
public String escapeIndexName(String catalogName,
String schemaName,
String indexName)
escapeIndexName in interface DatabaseescapeIndexName in class AbstractJdbcDatabase
public String escapeTableName(String catalogName,
String schemaName,
String tableName)
escapeTableName in interface DatabaseescapeTableName in class AbstractJdbcDatabasepublic boolean supportsTablespaces()
public boolean isSystemObject(DatabaseObject example)
isSystemObject in interface DatabaseisSystemObject in class AbstractJdbcDatabase
public String generateDefaultConstraintName(String tableName,
String columnName)
public String escapeObjectName(String objectName,
Class<? extends DatabaseObject> objectType)
escapeObjectName in interface DatabaseescapeObjectName in class AbstractJdbcDatabasepublic String getDateLiteral(String isoDate)
AbstractJdbcDatabase
getDateLiteral in interface DatabasegetDateLiteral in class AbstractJdbcDatabasepublic boolean supportsRestrictForeignKeys()
supportsRestrictForeignKeys in interface DatabasesupportsRestrictForeignKeys in class AbstractJdbcDatabasepublic boolean supportsDropTableCascadeConstraints()
supportsDropTableCascadeConstraints in interface DatabasesupportsDropTableCascadeConstraints in class AbstractJdbcDatabase
public String getViewDefinition(CatalogAndSchema schema,
String viewName)
throws DatabaseException
getViewDefinition in interface DatabasegetViewDefinition in class AbstractJdbcDatabaseDatabaseException
public String escapeViewName(String catalogName,
String schemaName,
String viewName)
escapeViewName in interface DatabaseescapeViewName in class AbstractJdbcDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||