public interface ConnectionProvider
Title: 常用代码打包
Description: Abstract class that defines the connection provider framework. Other classes extend this abstract class to make connection to actual data sources.
It is expected that each subclass be a JavaBean, so that properties of the connection provider are exposed through bean introspection.
Copyright: Copyright (c) 2006
Company: www.justdos.net
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Tells the connection provider to destroy itself.
|
Connection |
getConnection()
Returns a database connection.
|
ProviderConfig |
getProviderConfig() |
boolean |
isPooled()
Returns true if this connection provider provides connections out
of a connection pool.
|
void |
restart()
This method should be called whenever properties have been changed so
that the changes will take effect.
|
void |
start()
Starts the connection provider.
|
boolean isPooled()
ProviderConfig getProviderConfig()
Connection getConnection() throws SQLException
SQLExceptionvoid start()
void restart()
void destroy()
Copyright © 2023 onecode. All rights reserved.