DatabaseType Class

public final class DatabaseType
extends ExpandableStringEnum<DatabaseType>

Database type (e.g. SqlAzure / MySql).

Field Summary

Modifier and Type Field and Description
static final DatabaseType LOCAL_MY_SQL

Static value LocalMySql for DatabaseType.

static final DatabaseType MY_SQL

Static value MySql for DatabaseType.

static final DatabaseType POSTGRE_SQL

Static value PostgreSql for DatabaseType.

static final DatabaseType SQL_AZURE

Static value SqlAzure for DatabaseType.

Constructor Summary

Constructor Description
DatabaseType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DatabaseType value.

Method Summary

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

Creates or finds a DatabaseType from its string representation.

static Collection<DatabaseType> values()

Gets known DatabaseType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

LOCAL_MY_SQL

public static final DatabaseType LOCAL_MY_SQL

Static value LocalMySql for DatabaseType.

MY_SQL

public static final DatabaseType MY_SQL

Static value MySql for DatabaseType.

POSTGRE_SQL

public static final DatabaseType POSTGRE_SQL

Static value PostgreSql for DatabaseType.

SQL_AZURE

public static final DatabaseType SQL_AZURE

Static value SqlAzure for DatabaseType.

Constructor Details

DatabaseType

@Deprecated
public DatabaseType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DatabaseType value.

Method Details

fromString

public static DatabaseType fromString(String name)

Creates or finds a DatabaseType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DatabaseType.

values

public static Collection values()

Gets known DatabaseType values.

Returns:

known DatabaseType values.

Applies to