Package net.postgis.jdbc.geometry.util
Class VersionUtil
java.lang.Object
net.postgis.jdbc.geometry.util.VersionUtil
Utility for working with PostGIS Server version.
- Author:
- Phillip Ross
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetVersionString(Connection connection, String function) Query a specific version string from the datasource for a specified function.static StringretrievePostGISServerMajorVersion(Connection connection) static StringretrievePostGISServerMinorVersion(Connection connection) static StringretrievePostGISServerVersion(Connection connection) static StringretrievePostGISServerVersionString(Connection connection)
-
Field Details
-
NONEXISTENT_FUNCTION_ERROR_MESSAGE_CONTENT
The string to match when determining a function does not exist from the content of an error message.- See Also:
-
POSTGIS_SERVER_VERSION_SEPERATOR
The token which separates version components within the PostGIS Server version.- See Also:
-
-
Constructor Details
-
VersionUtil
public VersionUtil()
-
-
Method Details
-
getVersionString
Query a specific version string from the datasource for a specified function.- Parameters:
connection- The connection to issue the version query function against.function- The version function to use for querying the version.- Returns:
- a string version for the specified function.
- Throws:
SQLException- when a jdbc exception occurs.
-
retrievePostGISServerVersionString
- Throws:
SQLException
-
retrievePostGISServerVersion
- Throws:
SQLException
-
retrievePostGISServerMajorVersion
- Throws:
SQLException
-
retrievePostGISServerMinorVersion
- Throws:
SQLException
-