public static enum SQLUtils.DbFeature extends java.lang.Enum<SQLUtils.DbFeature>
Enum Constant and Description |
---|
CREATE_PG_WITH_TBS_SET |
CUSTOM_ID_PROPERTY |
DISTINCT_PG_TABLES |
REVOKE_ACCESS |
SHARDING |
TABLE_MAX_LENGTH_117 |
VERTEX_LABELS |
Modifier and Type | Method and Description |
---|---|
boolean |
isSupported(java.sql.Connection conn)
Checks if this feature is supported
in the DB of given connection
|
boolean |
isSupported(int dbVersion,
java.lang.String opgVersion)
Checks if this feature is supported in a connection
with given DB version and OPG version
|
static SQLUtils.DbFeature |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SQLUtils.DbFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SQLUtils.DbFeature CREATE_PG_WITH_TBS_SET
public static final SQLUtils.DbFeature CUSTOM_ID_PROPERTY
public static final SQLUtils.DbFeature DISTINCT_PG_TABLES
public static final SQLUtils.DbFeature REVOKE_ACCESS
public static final SQLUtils.DbFeature SHARDING
public static final SQLUtils.DbFeature TABLE_MAX_LENGTH_117
public static final SQLUtils.DbFeature VERTEX_LABELS
public boolean isSupported(java.sql.Connection conn)
conn
- The connection to DB to checkpublic boolean isSupported(int dbVersion, java.lang.String opgVersion)
dbVersion
- The DB versionopgVersion
- The OPG versionpublic static SQLUtils.DbFeature valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SQLUtils.DbFeature[] values()
for (SQLUtils.DbFeature c : SQLUtils.DbFeature.values()) System.out.println(c);
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.