Enum JdbcThinFeature
- java.lang.Object
-
- java.lang.Enum<JdbcThinFeature>
-
- org.apache.ignite.internal.processors.odbc.jdbc.JdbcThinFeature
-
- All Implemented Interfaces:
Serializable,Comparable<JdbcThinFeature>,ThinProtocolFeature
public enum JdbcThinFeature extends Enum<JdbcThinFeature> implements ThinProtocolFeature
Defines supported features for JDBC thin client.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM_OBJECTWhether to allow sending custom object through Thin JDBC protocol.QUERY_TIMEOUTAdd ability to set explicit query timeout on the cluster node by the JDBC client.RESERVEDTX_AWARE_QUERIESTransaction aware queries.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnumSet<JdbcThinFeature>allFeaturesAsEnumSet()static EnumSet<JdbcThinFeature>enumSet(byte[] bytes)intfeatureId()static JdbcThinFeaturevalueOf(String name)Returns the enum constant of this type with the specified name.static JdbcThinFeature[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.apache.ignite.internal.ThinProtocolFeature
name
-
-
-
-
Enum Constant Detail
-
RESERVED
public static final JdbcThinFeature RESERVED
-
CUSTOM_OBJECT
public static final JdbcThinFeature CUSTOM_OBJECT
Whether to allow sending custom object through Thin JDBC protocol.
-
QUERY_TIMEOUT
public static final JdbcThinFeature QUERY_TIMEOUT
Add ability to set explicit query timeout on the cluster node by the JDBC client.
-
TX_AWARE_QUERIES
public static final JdbcThinFeature TX_AWARE_QUERIES
Transaction aware queries.
-
-
Method Detail
-
values
public static JdbcThinFeature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JdbcThinFeature c : JdbcThinFeature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JdbcThinFeature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
featureId
public int featureId()
- Specified by:
featureIdin interfaceThinProtocolFeature- Returns:
- Feature ID.
-
enumSet
public static EnumSet<JdbcThinFeature> enumSet(byte[] bytes)
- Parameters:
bytes- Feature byte array.- Returns:
- Set of supported features.
-
allFeaturesAsEnumSet
public static EnumSet<JdbcThinFeature> allFeaturesAsEnumSet()
-
-