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, STANDARD_SELECT_FOR_UPDATE_SYNTAXSTANDARD_SELECT_SYNTAXEND_ESCAPE_CHARACTER_SQUARE_BRACKET, ESCAPE_CHARACTER_BACK_TICK, ESCAPE_CHARACTER_DOUBLE_QUOTE, START_ESCAPE_CHARACTER_SQUARE_BRACKET| 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.
|
String |
getSimpleSelectSqlSyntax(boolean clusterMode)
Based on the cluster mode parameter, and the capabilities of the database, return the appropriate SELECT
statement for usage.
|
protected int[] |
parseVersionStr(String version) |
protected boolean |
postgresVersionGreaterThanOrEqual(Connection con,
int major,
int minor) |
protected boolean |
postgresVersionLessThanOrEqual(Connection con,
int major,
int minor) |
equals, getChangeColumnTypeSQL, getChangeColumnTypeStructure, getConstraintNameClipLength, getDropIndexSQL, getDropIndexStructure, getFieldTypeName, getName, getReservedKeywords, hashCode, initialize, isProductNameInPrefixList, matchesConnection, productNameMatches, productNamesMatch, registerWithFactory, toString, versionGreaterThanOrEqual, versionGreaterThanOrEqual, versionLessThanOrEqualclone, finalize, getClass, notify, notifyAll, wait, wait, waitenableEscaping, escapeColumnName, getEndEscapeCharacter, getStartEscapeCharacterpublic 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
SQLExceptionpublic String getSimpleSelectSqlSyntax(boolean clusterMode)
DatabaseTypeCopyright © 2024 Atlassian. All rights reserved.