LinkRole Class

public final class LinkRole
extends ExpandableStringEnum<LinkRole>

SQL server side link role.

Field Summary

Modifier and Type Field and Description
static final LinkRole PRIMARY

Static value Primary for LinkRole.

static final LinkRole SECONDARY

Static value Secondary for LinkRole.

Constructor Summary

Constructor Description
LinkRole()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LinkRole value.

Method Summary

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

Creates or finds a LinkRole from its string representation.

static Collection<LinkRole> values()

Gets known LinkRole values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

PRIMARY

public static final LinkRole PRIMARY

Static value Primary for LinkRole.

SECONDARY

public static final LinkRole SECONDARY

Static value Secondary for LinkRole.

Constructor Details

LinkRole

@Deprecated
public LinkRole()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LinkRole value.

Method Details

fromString

public static LinkRole fromString(String name)

Creates or finds a LinkRole from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LinkRole.

values

public static Collection<LinkRole> values()

Gets known LinkRole values.

Returns:

known LinkRole values.

Applies to