Class SqlConnectionPool
java.lang.Object
ch.nolix.base.resourcecontrol.resourcepool.AbstractResourcePool<WrapperSqlConnection, AbstractSqlConnection>
ch.nolix.base.sql.connectionpool.SqlConnectionPool
- All Implemented Interfaces:
IDatabaseNameHolder, IAuthenticationServerTarget, IDatabaseTarget, IServerTarget, Closeable, CloseStateRequestable, GroupCloseable, IResourcePool<WrapperSqlConnection>, ISqlDatabaseTarget, AutoCloseable
public final class SqlConnectionPool
extends AbstractResourcePool<WrapperSqlConnection, AbstractSqlConnection>
implements ISqlDatabaseTarget
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionintgetPort()toUrl()static SqlConnectionPoolwithHostAndPortAndDatabaseNameAndSqlDatabaseEngineAndLoginNameAndLoginPassword(String ipOrDomain, int port, String databaseName, SqlDatabaseEngine sqlDatabaseEngine, String loginName, String loginPassword) Methods inherited from class AbstractResourcePool
borrowResource, getStoredCloseController, noteCloseMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, isClosedMethods inherited from interface IDatabaseNameHolder
getDatabaseNameInQuotes
-
Method Details
-
withHostAndPortAndDatabaseNameAndSqlDatabaseEngineAndLoginNameAndLoginPassword
public static SqlConnectionPool withHostAndPortAndDatabaseNameAndSqlDatabaseEngineAndLoginNameAndLoginPassword(String ipOrDomain, int port, String databaseName, SqlDatabaseEngine sqlDatabaseEngine, String loginName, String loginPassword) -
getDatabaseName
- Specified by:
getDatabaseNamein interfaceIDatabaseNameHolder- Returns:
- the database name of the current
IDatabaseNameHolder.
-
getIpOrDomain
- Specified by:
getIpOrDomainin interfaceIServerTarget
-
getLoginName
- Specified by:
getLoginNamein interfaceIAuthenticationServerTarget
-
getLoginPassword
- Specified by:
getLoginPasswordin interfaceIAuthenticationServerTarget
-
getPort
public int getPort()- Specified by:
getPortin interfaceIServerTarget
-
getSecurityModeForConnection
- Specified by:
getSecurityModeForConnectionin interfaceIServerTarget
-
getSqlDatabaseEngine
- Specified by:
getSqlDatabaseEnginein interfaceISqlDatabaseTarget
-
toUrl
- Specified by:
toUrlin interfaceIServerTarget
-