Class Version
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Version>
com.aoindustries.aoserv.client.GlobalObject<Integer,Version>
com.aoindustries.aoserv.client.GlobalObjectIntegerKey<Version>
com.aoindustries.aoserv.client.postgresql.Version
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
A
PostgresVersion
flags which TechnologyVersion
s
are a version of PostgreSQL.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.aoindustries.aoserv.client.GlobalObjectIntegerKey
pkey
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
ConstructorDescriptionVersion()
Deprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getColumnImpl
(int i) getPostgisVersion
(AoservConnector connector) Gets the PostGIS version ofnull
if not supported by this PostgreSQL version....getPostgresEncoding
(AoservConnector connector, String encoding) getPostgresEncodings
(AoservConnector connector) static String[]
Gets the versions of PostgreSQL in order of preference.getTechnologyVersion
(AoservConnector connector) void
Initializes this object from the raw database contents.boolean
isScramSha256
(AoservConnector connector) static boolean
isScramSha256
(String version) Checks if a version of PostgreSQL supports scram-sha-256 authentication.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.GlobalObjectIntegerKey
equals, getKey, getPkey, hashCode, toStringImpl
Methods inherited from class com.aoindustries.aoserv.client.AoservObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxId, getLinuxUserName, getMacAddress, getMysqlDatabaseName, getMysqlServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
Field Details
-
TECHNOLOGY_NAME
- See Also:
-
VERSION_7_1
- See Also:
-
VERSION_7_2
- See Also:
-
VERSION_7_3
- See Also:
-
VERSION_8_0
- See Also:
-
VERSION_8_1
- See Also:
-
VERSION_8_3
- See Also:
-
VERSION_9_2
- See Also:
-
VERSION_9_4
- See Also:
-
VERSION_9_5
- See Also:
-
VERSION_9_6
- See Also:
-
VERSION_10
- See Also:
-
VERSION_11
- See Also:
-
VERSION_12
- See Also:
-
VERSION_13
- See Also:
-
VERSION_14
- See Also:
-
VERSION_15
- See Also:
-
-
Constructor Details
-
Version
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getPreferredMinorVersions
Gets the versions of PostgreSQL in order of preference. Index0
is the most preferred.TODO: Rename "getPreferredMajorVersions
-
isScramSha256
Checks if a version of PostgreSQL supports scram-sha-256 authentication. This is added as of PostgreSQL 10. -
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Version>
-
getMinorVersion
-
getPostgisVersion
public SoftwareVersion getPostgisVersion(AoservConnector connector) throws SQLException, IOException Gets the PostGIS version ofnull
if not supported by this PostgreSQL version....- Throws:
SQLException
IOException
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Version>
-
getPostgresEncodings
public List<Encoding> getPostgresEncodings(AoservConnector connector) throws IOException, SQLException - Throws:
IOException
SQLException
-
getPostgresEncoding
public Encoding getPostgresEncoding(AoservConnector connector, String encoding) throws IOException, SQLException - Throws:
IOException
SQLException
-
getTechnologyVersion
public SoftwareVersion getTechnologyVersion(AoservConnector connector) throws SQLException, IOException - Throws:
SQLException
IOException
-
isScramSha256
- Throws:
SQLException
IOException
- See Also:
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Version> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
Version> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Version> - Throws:
IOException
-