public enum ConnectionPool extends Enum<ConnectionPool> implements DataSourceFactory
Modifier and Type | Method and Description |
---|---|
DisposableDataSource |
getDataSource(Class<? extends Driver> driverClass,
String url,
String username,
String password) |
boolean |
isAvailable() |
static ConnectionPool |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionPool[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionPool C3PO
public static final ConnectionPool DBPOOL
public static final ConnectionPool PROXOOL
public static final ConnectionPool DBCP
public static final ConnectionPool NONE
public static ConnectionPool[] values()
for (ConnectionPool c : ConnectionPool.values()) System.out.println(c);
public static ConnectionPool valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic DisposableDataSource getDataSource(Class<? extends Driver> driverClass, String url, String username, String password)
getDataSource
in interface DataSourceFactory
public boolean isAvailable()
Copyright © 2007–2022 Atlassian. All rights reserved.