public abstract class AbstractPostgresDatabaseType extends AbstractDatabaseType
ALTER_TABLE_DROP_INDEX, CHANGE_COLUMN_TYPE_CLAUSE_STRUCTURE_STANDARD_ALTER_COLUMN, CHANGE_COLUMN_TYPE_CLAUSE_STRUCTURE_STANDARD_MODIFY, DROP_INDEX_SCHEMA_DOT_INDEX, DROP_INDEX_SCHEMA_DOT_TABLE_DOT_INDEX| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPostgresDatabaseType(String name,
String fieldTypeName) |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
getPostgresVersion(Connection con) |
String |
getSchemaName(Connection con)
Returns the name of the connected schema.
|
protected int[] |
parseVersionStr(String version) |
protected boolean |
postgresVersionGreaterThanOrEqual(Connection con,
int major,
int minor) |
protected boolean |
postgresVersionLessThanOrEqual(Connection con,
int major,
int minor) |
getChangeColumnTypeSQL, getChangeColumnTypeStructure, getConstraintNameClipLength, getDropIndexSQL, getDropIndexStructure, getFieldTypeName, getName, isProductNameInPrefixList, matchesConnection, productNameMatches, productNamesMatch, registerWithFactory, toString, versionGreaterThanOrEqual, versionGreaterThanOrEqual, versionLessThanOrEqualpublic String getSchemaName(Connection con)
DatabaseTypegetSchemaName in interface DatabaseTypegetSchemaName in class AbstractDatabaseTypecon - the connection for which to return the schemaprotected int[] parseVersionStr(String version)
protected int[] getPostgresVersion(Connection con) throws SQLException
SQLExceptionprotected boolean postgresVersionGreaterThanOrEqual(Connection con, int major, int minor) throws SQLException
SQLExceptionprotected boolean postgresVersionLessThanOrEqual(Connection con, int major, int minor) throws SQLException
SQLExceptionCopyright © 2015 Atlassian. All rights reserved.