Class SQLiteConnectionPool
java.lang.Object
com.zetaplugins.lifestealz.storage.connectionPool.SQLiteConnectionPool
- All Implemented Interfaces:
ConnectionPool
Connection pool for SQLite. This is not really a connection pool, but it is used to keep the same interface as the other
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a connection to the SQLite database.voidreleaseConnection(Connection connection) This method does nothing, because SQLite does not support connection pooling.voidshutdown()This method does nothing, because SQLite does not support connection pooling.
-
Constructor Details
-
SQLiteConnectionPool
-
-
Method Details
-
getConnection
Returns a connection to the SQLite database.- Specified by:
getConnectionin interfaceConnectionPool- Returns:
- a connection to the SQLite database
- Throws:
SQLException- if an error occurs while getting a connection
-
releaseConnection
This method does nothing, because SQLite does not support connection pooling.- Specified by:
releaseConnectionin interfaceConnectionPool- Parameters:
connection- the connection to release
-
shutdown
public void shutdown()This method does nothing, because SQLite does not support connection pooling.- Specified by:
shutdownin interfaceConnectionPool
-