public enum SpannerConnectionMetadata extends Enum<SpannerConnectionMetadata> implements io.r2dbc.spi.ConnectionMetadata
Effectively the same as SpannerConnectionFactoryMetadata, as there is no
connection-level difference in database behavior.
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
String |
getDatabaseProductName() |
String |
getDatabaseVersion() |
static SpannerConnectionMetadata |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpannerConnectionMetadata[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpannerConnectionMetadata INSTANCE
public static SpannerConnectionMetadata[] values()
for (SpannerConnectionMetadata c : SpannerConnectionMetadata.values()) System.out.println(c);
public static SpannerConnectionMetadata 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 getDatabaseProductName()
getDatabaseProductName in interface io.r2dbc.spi.ConnectionMetadatapublic String getDatabaseVersion()
getDatabaseVersion in interface io.r2dbc.spi.ConnectionMetadataCopyright © 2021 Google LLC. All rights reserved.