SqlConnectionType Class

public final class SqlConnectionType
extends ExpandableStringEnum<SqlConnectionType>

The type of the connection.

Field Summary

Modifier and Type Field and Description
static final SqlConnectionType SQL_ON_DEMAND

Static value SqlOnDemand for SqlConnectionType.

static final SqlConnectionType SQL_POOL

Static value SqlPool for SqlConnectionType.

Constructor Summary

Constructor Description
SqlConnectionType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SqlConnectionType value.

Method Summary

Modifier and Type Method and Description
static SqlConnectionType fromString(String name)

Creates or finds a SqlConnectionType from its string representation.

static Collection<SqlConnectionType> values()

Gets known SqlConnectionType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

SQL_ON_DEMAND

public static final SqlConnectionType SQL_ON_DEMAND

Static value SqlOnDemand for SqlConnectionType.

SQL_POOL

public static final SqlConnectionType SQL_POOL

Static value SqlPool for SqlConnectionType.

Constructor Details

SqlConnectionType

@Deprecated
public SqlConnectionType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SqlConnectionType value.

Method Details

fromString

public static SqlConnectionType fromString(String name)

Creates or finds a SqlConnectionType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SqlConnectionType.

values

public static Collection<SqlConnectionType> values()

Gets known SqlConnectionType values.

Returns:

known SqlConnectionType values.

Applies to