|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.database.AbstractDatabase
liquibase.database.core.PostgresDatabase
public class PostgresDatabase
Encapsulates PostgreSQL database support.
| Field Summary | |
|---|---|
static String |
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 | |
|---|---|
PostgresDatabase()
|
|
| Method Summary | |
|---|---|
String |
convertRequestedSchemaToCatalog(String requestedSchema)
|
String |
convertRequestedSchemaToSchema(String requestedSchema)
|
String |
escapeDatabaseObject(String objectName)
|
String |
escapeIndexName(String schemaName,
String indexName)
|
boolean |
generateAutoIncrementBy(BigInteger incrementBy)
|
boolean |
generateAutoIncrementStartWith(BigInteger startWith)
|
String |
getAutoIncrementClause()
|
String |
getCurrentDateTimeFunction()
Returns database-specific function for generating the current date/time. |
String |
getDatabaseChangeLogLockTableName()
|
String |
getDatabaseChangeLogTableName()
|
String |
getDefaultCatalogName()
|
protected String |
getDefaultDatabaseSchemaName()
|
String |
getDefaultDriver(String url)
If this database understands the given url, return the default driver class name. |
int |
getPriority()
|
Set<String> |
getSystemTablesAndViews()
Returns system (undroppable) tables and views. |
String |
getTypeName()
Returns an all-lower-case short name of the product. |
protected boolean |
hasMixedCase(String tableName)
|
boolean |
isCorrectDatabaseImplementation(DatabaseConnection conn)
Is this AbstractDatabase subclass the correct one to use for the given connection. |
boolean |
isReservedWord(String tableName)
|
boolean |
isSystemTable(String catalogName,
String schemaName,
String tableName)
|
boolean |
supportsInitiallyDeferrableColumns()
Returns whether this database support initially deferrable columns. |
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
| Constructor Detail |
|---|
public PostgresDatabase()
| Method Detail |
|---|
public String getTypeName()
Database
public Set<String> getSystemTablesAndViews()
AbstractDatabase
getSystemTablesAndViews in class AbstractDatabasepublic int getPriority()
public boolean supportsInitiallyDeferrableColumns()
Database
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
throws DatabaseException
Database
DatabaseExceptionpublic String getDefaultDriver(String url)
Database
public boolean supportsSequences()
AbstractDatabase
supportsSequences in interface DatabasesupportsSequences in class AbstractDatabasepublic String getCurrentDateTimeFunction()
Database
protected String getDefaultDatabaseSchemaName()
throws DatabaseException
getDefaultDatabaseSchemaName in class AbstractDatabaseDatabaseException
public String getDefaultCatalogName()
throws DatabaseException
getDefaultCatalogName in interface DatabasegetDefaultCatalogName in class AbstractDatabaseDatabaseExceptionpublic String getDatabaseChangeLogTableName()
getDatabaseChangeLogTableName in interface DatabasegetDatabaseChangeLogTableName in class AbstractDatabaseDatabase.getDatabaseChangeLogTableName()public String getDatabaseChangeLogLockTableName()
getDatabaseChangeLogLockTableName in interface DatabasegetDatabaseChangeLogLockTableName in class AbstractDatabaseDatabase.getDatabaseChangeLogLockTableName()
public boolean isSystemTable(String catalogName,
String schemaName,
String tableName)
isSystemTable in interface DatabaseisSystemTable in class AbstractDatabasepublic boolean supportsTablespaces()
public String getAutoIncrementClause()
getAutoIncrementClause in class AbstractDatabasepublic boolean generateAutoIncrementStartWith(BigInteger startWith)
generateAutoIncrementStartWith in class AbstractDatabasepublic boolean generateAutoIncrementBy(BigInteger incrementBy)
generateAutoIncrementBy in class AbstractDatabase
public String convertRequestedSchemaToSchema(String requestedSchema)
throws DatabaseException
convertRequestedSchemaToSchema in interface DatabaseconvertRequestedSchemaToSchema in class AbstractDatabaseDatabaseException
public String convertRequestedSchemaToCatalog(String requestedSchema)
throws DatabaseException
convertRequestedSchemaToCatalog in interface DatabaseconvertRequestedSchemaToCatalog in class AbstractDatabaseDatabaseExceptionpublic String escapeDatabaseObject(String objectName)
escapeDatabaseObject in interface DatabaseescapeDatabaseObject in class AbstractDatabaseprotected boolean hasMixedCase(String tableName)
public boolean isReservedWord(String tableName)
isReservedWord in interface DatabaseisReservedWord in class AbstractDatabase
public String escapeIndexName(String schemaName,
String indexName)
escapeIndexName in interface DatabaseescapeIndexName in class AbstractDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||