public enum DataSourceType extends Enum<DataSourceType>
DataSource
types enumeration.Enum Constant and Description |
---|
BASIC
Basic DataSource
|
DBCP
DBCP 2 DataSource
|
HIKARICP
HikariCP DataSource
|
TOMCAT
Tomcat pooling DataSource
|
Modifier and Type | Method and Description |
---|---|
String |
getType()
Get the type name.
|
static DataSourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataSourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataSourceType BASIC
public static final DataSourceType HIKARICP
public static final DataSourceType DBCP
public static final DataSourceType TOMCAT
public static DataSourceType[] values()
for (DataSourceType c : DataSourceType.values()) System.out.println(c);
public static DataSourceType 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 String getType()
Copyright © 2020 The Holon Platform. All rights reserved.