public enum ConnectionPool extends java.lang.Enum<ConnectionPool> implements DataSourceFactory
Modifier and Type | Method and Description |
---|---|
DisposableDataSource |
getDataSource(java.lang.Class<? extends java.sql.Driver> driverClass,
java.lang.String url,
java.lang.String username,
java.lang.String password) |
boolean |
isAvailable() |
static ConnectionPool |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic DisposableDataSource getDataSource(java.lang.Class<? extends java.sql.Driver> driverClass, java.lang.String url, java.lang.String username, java.lang.String password)
getDataSource
in interface DataSourceFactory
public boolean isAvailable()
Copyright © 2007-2021 Atlassian. All Rights Reserved.