public static class MDBHelper.ConnectionProviderImpl extends AbstractConnectionProvider implements ConnectionProvider
Constructor and Description |
---|
ConnectionProviderImpl(MDBConnectionParameters connectionParameters) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
java.sql.Connection |
getConnection() |
java.lang.String |
getStatus() |
void |
registerDriver() |
static void |
stopServer() |
java.lang.String |
toString() |
isDisposed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDisposed
public ConnectionProviderImpl(MDBConnectionParameters connectionParameters)
public java.lang.String getStatus()
getStatus
in interface ConnectionProvider
getStatus
in class AbstractConnectionProvider
public static void stopServer()
public java.lang.String toString()
toString
in class java.lang.Object
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface ConnectionProvider
java.sql.SQLException
public void registerDriver() throws java.sql.SQLException
registerDriver
in interface ConnectionProvider
java.sql.SQLException
public void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable