SqlVersion Class

public final class SqlVersion
extends ExpandableStringEnum<SqlVersion>

SQL Server version.

Field Summary

Modifier and Type Field and Description
static final SqlVersion SQL_SERVER_2016

Static value SQL Server 2016 for SqlVersion.

static final SqlVersion SQL_SERVER_2017

Static value SQL Server 2017 for SqlVersion.

static final SqlVersion SQL_SERVER_2019

Static value SQL Server 2019 for SqlVersion.

Constructor Summary

Constructor Description
SqlVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SqlVersion value.

Method Summary

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

Creates or finds a SqlVersion from its string representation.

static Collection<SqlVersion> values()

Gets known SqlVersion values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

SQL_SERVER_2016

public static final SqlVersion SQL_SERVER_2016

Static value SQL Server 2016 for SqlVersion.

SQL_SERVER_2017

public static final SqlVersion SQL_SERVER_2017

Static value SQL Server 2017 for SqlVersion.

SQL_SERVER_2019

public static final SqlVersion SQL_SERVER_2019

Static value SQL Server 2019 for SqlVersion.

Constructor Details

SqlVersion

@Deprecated
public SqlVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SqlVersion value.

Method Details

fromString

public static SqlVersion fromString(String name)

Creates or finds a SqlVersion from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SqlVersion.

values

public static Collection<SqlVersion> values()

Gets known SqlVersion values.

Returns:

known SqlVersion values.

Applies to