| org.huihoo.jfox.service.ComponentSupport org.huihoo.jfox.datasource.PoolDataSource
Constructor Summary | |
public | PoolDataSource() Default constructor used by JNDI to get a new Instance without any parameters. | public | PoolDataSource(String dbDriver, String dbURL, String user, String password) Constructor specify database connection parameters to generate a valid and usable datasource. |
PoolDataSource | public PoolDataSource()(Code) | | Default constructor used by JNDI to get a new Instance without any parameters.
|
PoolDataSource | public PoolDataSource(String dbDriver, String dbURL, String user, String password) throws Exception(Code) | | Constructor specify database connection parameters to generate a valid and usable datasource.
Parameters: dbDriver - database class name according your dabase Parameters: dbURL - database url used to access database Parameters: user - valid database user Parameters: password - // corresponding database password throws: Exception - any exception who cares? |
getConnection | public Connection getConnection(String username, String password) throws SQLException(Code) | | Get connection by specific user name and password, the connection is not pooled by
Connection Pool
Parameters: username - Parameters: password - throws: SQLException - |
getObjectInstance | public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception(Code) | | Method that inherited from ObjectFactory.
Parameters: obj - Parameters: name - Parameters: nameCtx - Parameters: environment - throws: Exception - |
|
|