public class PostgresUtil extends Object
| Constructor and Description |
|---|
PostgresUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyProperties(Map<String,String> src,
String keyPrefix,
Properties dest)
Each key in src that starts with keyPrefix is copied (without the prefix) and its value to dest
|
static Connection |
getConnection(Map<String,String> props,
String[] prefixes) |
public static Connection getConnection(Map<String,String> props, String[] prefixes) throws SQLException, ClassNotFoundException
SQLExceptionClassNotFoundExceptionpublic static void copyProperties(Map<String,String> src, String keyPrefix, Properties dest)
src - map containing key,value pairskeyPrefix - prefix to match src keysdest - destination propertiesCopyright © 2013–2017 R.W.Majeed. All rights reserved.