@Beta public final class JdbcConnectionFactory extends Object implements RecyclingSupplier.Factory<Connection>
| Constructor and Description |
|---|
JdbcConnectionFactory(String driverName,
String url,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
create()
create the object.
|
void |
dispose(Connection object)
Dispose the object.
|
boolean |
validate(Connection object,
Exception e)
Validate the object, return true if valid,
false of throw an Exception with validation detail otherwise.
|
public Connection create() throws ObjectCreationException
RecyclingSupplier.Factorycreate in interface RecyclingSupplier.Factory<Connection>ObjectCreationExceptionpublic void dispose(Connection object) throws ObjectDisposeException
RecyclingSupplier.Factorydispose in interface RecyclingSupplier.Factory<Connection>ObjectDisposeExceptionpublic boolean validate(Connection object, Exception e) throws SQLException
RecyclingSupplier.Factoryvalidate in interface RecyclingSupplier.Factory<Connection>SQLExceptionCopyright © 2014. All rights reserved.