public class JDBCDataSourceFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Constructor and Description |
---|
JDBCDataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
static javax.sql.DataSource |
createDataSource(java.util.Properties props)
Static method to create a JDBCDataSource instance using the
given properties for url, user, password, etc.
|
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
Creates a JDBCDataSource, JDBCPooledDataSource or JDBCXADataSource object
using the javax.naming.Reference object specified.
|
public static javax.sql.DataSource createDataSource(java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment) throws java.lang.Exception
The Reference object's class name should be one of the three supported data source class names and it should support the properties, database, user and password. It may optionally support the logingTimeout property.
getObjectInstance
in interface javax.naming.spi.ObjectFactory
obj
- The reference information used in creating a
JDBCDatasource object.name
- ignorednameCtx
- ignoredenvironment
- ignoredjava.lang.Exception
- is thrown if database or user is null or invalidCopyright © 2015-2024 StreamScape Technologies. All rights reserved.