public class DataSourceObjectBuilder extends Object implements Serializable
DataSourceSpec
,
com.sun.gjc.util.MethodExcecutor
,
Serialized FormConstructor and Description |
---|
DataSourceObjectBuilder(DataSourceSpec spec)
Construct a DataSource Object from the spec.
|
Modifier and Type | Method and Description |
---|---|
Object |
constructDataSourceObject()
Construct the DataSource Object from the spec.
|
static boolean |
isJDBC40() |
static boolean |
isJDBC41() |
Hashtable |
parseDriverProperties(DataSourceSpec spec,
boolean returnUpperCase)
Get the extra driver properties from the DataSourceSpec object and
parse them to a set of methodName and parameters.
|
Hashtable |
parseDriverProperties(String values,
String escape,
String delimiter,
boolean returnUpperCase)
parse the driver properties and re-generate name value pairs with unescaped values.
|
public DataSourceObjectBuilder(DataSourceSpec spec)
spec
- DataSourceSpec
object.public Object constructDataSourceObject() throws javax.resource.ResourceException
javax.resource.ResourceException
- if the class is not found or some issue in executing
some method.public Hashtable parseDriverProperties(DataSourceSpec spec, boolean returnUpperCase) throws javax.resource.ResourceException
spec
- DataSourceSpec
object.javax.resource.ResourceException
- If delimiter is not provided and property string
is not null.public Hashtable parseDriverProperties(String values, String escape, String delimiter, boolean returnUpperCase)
values
- driverPropertiesescape
- escape characterdelimiter
- delimiterpublic static boolean isJDBC40()
public static boolean isJDBC41()
Copyright © 2019. All rights reserved.