public class VersionUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NONEXISTENT_FUNCTION_ERROR_MESSAGE_CONTENT
The string to match when determining a function does not exist from the content of an error message.
|
static String |
POSTGIS_SERVER_VERSION_SEPERATOR
The token which separates version components within the PostGIS Server version.
|
| Constructor and Description |
|---|
VersionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getVersionString(Connection connection,
String function)
Query a specific version string from the datasource for a specified function.
|
static String |
retrievePostGISServerMajorVersion(Connection connection) |
static String |
retrievePostGISServerMinorVersion(Connection connection) |
static String |
retrievePostGISServerVersion(Connection connection) |
static String |
retrievePostGISServerVersionString(Connection connection) |
public static final String NONEXISTENT_FUNCTION_ERROR_MESSAGE_CONTENT
public static final String POSTGIS_SERVER_VERSION_SEPERATOR
public static String getVersionString(Connection connection, String function) throws SQLException
connection - The connection to issue the version query function against.function - The version function to use for querying the version.SQLException - when a jdbc exception occurs.public static String retrievePostGISServerVersionString(Connection connection) throws SQLException
SQLExceptionpublic static String retrievePostGISServerVersion(Connection connection) throws SQLException
SQLExceptionpublic static String retrievePostGISServerMajorVersion(Connection connection) throws SQLException
SQLExceptionpublic static String retrievePostGISServerMinorVersion(Connection connection) throws SQLException
SQLExceptionCopyright © 2024. All rights reserved.