public class JNDIDataSourceProvider extends Object implements ConnectionProvider
Title: 常用代码打包
Description: An implementation of ConnectionProvider that utilizes a JDBC 2.0 DataSource made available via JNDI. This is useful for application servers where a pooled data connection is already provided so Jive can share the pool with the other applications.
The JNDI location of the DataSource stored as the Jive property
database.JNDIProvider.name. This can be overridden by setting
the provider's name property if required.
Copyright: Copyright (c) 2006
Company: www.justdos.net
ConnectionProvider| 构造器和说明 |
|---|
JNDIDataSourceProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Tells the connection provider to destroy itself.
|
String |
getAuthor() |
Connection |
getConnection()
Returns a database connection.
|
String |
getDescription() |
int |
getMajorVersion() |
int |
getMinorVersion() |
String |
getName() |
String |
getProperty(String name) |
String |
getPropertyDescription(String name) |
ProviderConfig |
getProviderConfig() |
boolean |
isPooled()
Returns true if this connection provider provides connections out
of a connection pool.
|
Iterator |
propertyNames() |
void |
restart()
This method should be called whenever properties have been changed so
that the changes will take effect.
|
void |
setConfigKey(String configKey) |
void |
start()
Starts the connection provider.
|
public ProviderConfig getProviderConfig()
getProviderConfig 在接口中 ConnectionProviderpublic void setConfigKey(String configKey)
public String getName()
public String getDescription()
public String getAuthor()
public int getMajorVersion()
public int getMinorVersion()
public boolean isPooled()
ConnectionProviderisPooled 在接口中 ConnectionProviderpublic void start()
ConnectionProviderstart 在接口中 ConnectionProviderpublic void restart()
ConnectionProviderrestart 在接口中 ConnectionProviderpublic void destroy()
ConnectionProviderdestroy 在接口中 ConnectionProviderpublic Connection getConnection()
ConnectionProvidergetConnection 在接口中 ConnectionProviderpublic Iterator propertyNames()
Copyright © 2023 onecode. All rights reserved.