public class PGPropertyUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.logging.Logger |
LOGGER |
| Constructor and Description |
|---|
PGPropertyUtil() |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.Integer |
convertPgPortToInt(java.lang.String portStr)
converts PGPORT String to Integer
|
static boolean |
propertiesConsistencyCheck(java.util.Properties properties)
Validate properties.
|
static java.lang.String |
translatePGPropertyToPGService(java.lang.String propertyKey)
translate PGSERVICEFILE keys host, port, dbname
Example: "PGHOST" becomes "host"
|
static java.lang.String |
translatePGServiceToPGProperty(java.lang.String serviceKey)
translate PGSERVICEFILE keys host, port, dbname
Example: "host" becomes "PGHOST"
|
private static java.lang.Integer convertPgPortToInt(java.lang.String portStr)
portStr - value of portpublic static boolean propertiesConsistencyCheck(java.util.Properties properties)
properties - propertiespublic static java.lang.String translatePGServiceToPGProperty(java.lang.String serviceKey)
serviceKey - key in pg_service.confpublic static java.lang.String translatePGPropertyToPGService(java.lang.String propertyKey)
propertyKey - postgres property