Package org.quartz.utils
Interface ConnectionProvider
-
- All Known Subinterfaces:
PoolingConnectionProvider
- All Known Implementing Classes:
C3p0PoolingConnectionProvider
,HikariCpPoolingConnectionProvider
,JNDIConnectionProvider
,WeblogicConnectionProvider
public interface ConnectionProvider
Implementations of this interface used byDBConnectionManager
to provide connections from various sources.- Author:
- Mohammad Rezaei
- See Also:
DBConnectionManager
,PoolingConnectionProvider
,JNDIConnectionProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.sql.Connection
getConnection()
void
initialize()
void
shutdown()
-
-
-
Method Detail
-
getConnection
java.sql.Connection getConnection() throws java.sql.SQLException
- Returns:
- connection managed by this provider
- Throws:
java.sql.SQLException
-
shutdown
void shutdown() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
initialize
void initialize() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-