public class PGPropertyUtil extends Object
| Constructor and Description |
|---|
PGPropertyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
propertiesConsistencyCheck(Properties properties)
Validate properties.
|
static String |
translatePGPropertyToPGService(String propertyKey)
translate PGSERVICEFILE keys host, port, dbname
Example: "PGHOST" becomes "host"
|
static String |
translatePGServiceToPGProperty(String serviceKey)
translate PGSERVICEFILE keys host, port, dbname
Example: "host" becomes "PGHOST"
|
public static boolean propertiesConsistencyCheck(Properties properties)
properties - propertiespublic static String translatePGServiceToPGProperty(String serviceKey)
serviceKey - key in pg_service.confpublic static String translatePGPropertyToPGService(String propertyKey)
propertyKey - postgres propertyCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.