Package org.mariadb.jdbc
Class MariaDbPoolConnection
- java.lang.Object
-
- org.mariadb.jdbc.MariaDbPoolConnection
-
- All Implemented Interfaces:
PooledConnection,XAConnection
- Direct Known Subclasses:
InternalPoolConnection
public class MariaDbPoolConnection extends Object implements PooledConnection, XAConnection
-
-
Constructor Summary
Constructors Constructor Description MariaDbPoolConnection(Connection connection)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionEventListener(ConnectionEventListener listener)voidaddStatementEventListener(StatementEventListener listener)voidclose()voidfireConnectionClosed(ConnectionEvent event)voidfireConnectionErrorOccurred(SQLException returnEx)voidfireStatementClosed(PreparedStatement statement)voidfireStatementErrorOccurred(PreparedStatement statement, SQLException returnEx)ConnectiongetConnection()XAResourcegetXAResource()voidremoveConnectionEventListener(ConnectionEventListener listener)voidremoveStatementEventListener(StatementEventListener listener)static StringxidToString(Xid xid)
-
-
-
Constructor Detail
-
MariaDbPoolConnection
public MariaDbPoolConnection(Connection connection)
Constructor.- Parameters:
connection- connection to retrieve connection options
-
-
Method Detail
-
getConnection
public Connection getConnection()
- Specified by:
getConnectionin interfacePooledConnection
-
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
- Specified by:
addConnectionEventListenerin interfacePooledConnection
-
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
- Specified by:
removeConnectionEventListenerin interfacePooledConnection
-
addStatementEventListener
public void addStatementEventListener(StatementEventListener listener)
- Specified by:
addStatementEventListenerin interfacePooledConnection
-
removeStatementEventListener
public void removeStatementEventListener(StatementEventListener listener)
- Specified by:
removeStatementEventListenerin interfacePooledConnection
-
fireStatementClosed
public void fireStatementClosed(PreparedStatement statement)
-
fireStatementErrorOccurred
public void fireStatementErrorOccurred(PreparedStatement statement, SQLException returnEx)
-
fireConnectionClosed
public void fireConnectionClosed(ConnectionEvent event)
-
fireConnectionErrorOccurred
public void fireConnectionErrorOccurred(SQLException returnEx)
-
close
public void close() throws SQLException- Specified by:
closein interfacePooledConnection- Throws:
SQLException
-
getXAResource
public XAResource getXAResource()
- Specified by:
getXAResourcein interfaceXAConnection
-
-