Package org.postgresql.util
Class PGPropertyUtil
java.lang.Object
org.postgresql.util.PGPropertyUtil
Deprecated.
This class is not used by "pgjdbc" project anymore. This class is not part of "pgjdbc"
promises and should not be used. This class should be deleted in the next major version.
routines to support PG properties
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Integer
convertPgPortToInt
(String portStr) Deprecated.converts PGPORT String to Integerstatic boolean
propertiesConsistencyCheck
(Properties properties) Deprecated.Validate properties.static String
translatePGPropertyToPGService
(String propertyKey) Deprecated.translate PGSERVICEFILE keys host, port, dbname Example: "PGHOST" becomes "host"static String
translatePGServiceToPGProperty
(String serviceKey) Deprecated.translate PGSERVICEFILE keys host, port, dbname Example: "host" becomes "PGHOST"
-
Field Details
-
LOGGER
Deprecated.
-
-
Constructor Details
-
PGPropertyUtil
public PGPropertyUtil()Deprecated.
-
-
Method Details
-
convertPgPortToInt
Deprecated.converts PGPORT String to Integer- Parameters:
portStr
- value of port- Returns:
- value of port or null
-
propertiesConsistencyCheck
Deprecated.Validate properties. Goal is to detect inconsistencies and report understandable messages- Parameters:
properties
- properties- Returns:
- false if errors found
-
translatePGServiceToPGProperty
Deprecated.translate PGSERVICEFILE keys host, port, dbname Example: "host" becomes "PGHOST"- Parameters:
serviceKey
- key in pg_service.conf- Returns:
- translated property or the same value if translation is not needed
-
translatePGPropertyToPGService
Deprecated.translate PGSERVICEFILE keys host, port, dbname Example: "PGHOST" becomes "host"- Parameters:
propertyKey
- postgres property- Returns:
- translated property or the same value if translation is not needed
-