Package org.clazzes.util.jdbc.provider
Class DataSourceHelper
- java.lang.Object
-
- org.clazzes.util.jdbc.provider.DataSourceHelper
-
public abstract class DataSourceHelper extends Object
static methods for handling datasources.
-
-
Constructor Summary
Constructors Constructor Description DataSourceHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
activateDataSource(String name, DataSourceRecord record)
static DataSourceRecord
createDataSource(Map<String,String> properties, String name)
static Boolean
getBoolProp(Map<String,String> properties, String name, String key)
static Integer
getIntProp(Map<String,String> properties, String name, String key)
static Long
getLongProp(Map<String,String> properties, String name, String key)
static List<String>
getStringArrayProp(Map<String,String> properties, String name, String key)
static String
getStringProp(Map<String,String> properties, String name, String key)
-
-
-
Method Detail
-
getStringProp
public static String getStringProp(Map<String,String> properties, String name, String key)
-
getStringArrayProp
public static List<String> getStringArrayProp(Map<String,String> properties, String name, String key)
-
getBoolProp
public static Boolean getBoolProp(Map<String,String> properties, String name, String key)
-
getIntProp
public static Integer getIntProp(Map<String,String> properties, String name, String key)
-
getLongProp
public static Long getLongProp(Map<String,String> properties, String name, String key)
-
createDataSource
public static DataSourceRecord createDataSource(Map<String,String> properties, String name) throws org.osgi.service.cm.ConfigurationException
- Throws:
org.osgi.service.cm.ConfigurationException
-
activateDataSource
public static boolean activateDataSource(String name, DataSourceRecord record) throws InterruptedException
- Throws:
InterruptedException
-
-