Package net.officefloor.jdbc
Class AbstractJdbcManagedObjectSource.ConnectionConnectivity
- java.lang.Object
-
- net.officefloor.jdbc.AbstractJdbcManagedObjectSource.ConnectionConnectivity
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,AbstractJdbcManagedObjectSource.Connectivity
- Enclosing class:
- AbstractJdbcManagedObjectSource
public static class AbstractJdbcManagedObjectSource.ConnectionConnectivity extends java.lang.Object implements AbstractJdbcManagedObjectSource.Connectivity
ConvenientAbstractJdbcManagedObjectSource.Connectivity
implementation to wrap aConnection
.
-
-
Constructor Summary
Constructors Constructor Description ConnectionConnectivity(java.sql.Connection connection)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.sql.Connection
getConnection()
Obtains theConnection
to test connectivity.
-
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection()
Description copied from interface:AbstractJdbcManagedObjectSource.Connectivity
Obtains theConnection
to test connectivity.- Specified by:
getConnection
in interfaceAbstractJdbcManagedObjectSource.Connectivity
- Returns:
Connection
to test connectivity.
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
-