public class PGPropertyUtil
extends java.lang.Object
Constructor and Description |
---|
PGPropertyUtil() |
Modifier and Type | Method and Description |
---|---|
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"
|
public 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 propertyCopyright © 2024 PostgreSQL Global Development Group. All rights reserved.