Package org.apache.calcite.avatica
Enum Meta.DatabaseProperty
- All Implemented Interfaces:
Serializable,Comparable<Meta.DatabaseProperty>,java.lang.constant.Constable
- Enclosing interface:
- Meta
Database property.
Values exist for methods, such as
DatabaseMetaData.getSQLKeywords(), which always return the same
value at all times and across connections.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDatabase property which is the Avatica versionDatabase property containing the value ofDatabaseMetaData.getDatabaseMajorVersion().Database property containing the value ofDatabaseMetaData.getDatabaseMinorVersion().Database property containing the value ofDatabaseMetaData.getDatabaseProductName().Database property containing the value ofDatabaseMetaData.getDatabaseProductVersion().Database property containing the value ofDatabaseMetaData.getDefaultTransactionIsolation().Database property containing the value ofDatabaseMetaData.getDriverMajorVersion().Database property containing the value ofDatabaseMetaData.getDriverMinorVersion().Database property containing the value ofDatabaseMetaData.getDriverName().Database property containing the value ofDatabaseMetaData.getDriverVersion().Database property containing the value ofDatabaseMetaData.getNumericFunctions().Database property containing the value ofDatabaseMetaData.getSQLKeywords().Database property containing the value ofDatabaseMetaData.getStringFunctions().Database property containing the value ofDatabaseMetaData.getSystemFunctions().Database property containing the value ofDatabaseMetaData.getTimeDateFunctions(). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Meta.DatabasePropertyfromProto(org.apache.calcite.avatica.proto.Common.DatabaseProperty proto) <T> TgetProp(Map<Meta.DatabaseProperty, Object> map, Class<T> aClass) Returns a value of this property, using the default value if the map does not contain an explicit value.<T> TgetProp(Meta meta, Meta.ConnectionHandle ch, Class<T> aClass) Returns a value of this property, using the default value if the map does not contain an explicit value.org.apache.calcite.avatica.proto.Common.DatabasePropertytoProto()static Meta.DatabasePropertyReturns the enum constant of this type with the specified name.static Meta.DatabaseProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GET_NUMERIC_FUNCTIONS
Database property containing the value ofDatabaseMetaData.getNumericFunctions(). -
GET_STRING_FUNCTIONS
Database property containing the value ofDatabaseMetaData.getStringFunctions(). -
GET_SYSTEM_FUNCTIONS
Database property containing the value ofDatabaseMetaData.getSystemFunctions(). -
GET_TIME_DATE_FUNCTIONS
Database property containing the value ofDatabaseMetaData.getTimeDateFunctions(). -
GET_S_Q_L_KEYWORDS
Database property containing the value ofDatabaseMetaData.getSQLKeywords(). -
GET_DEFAULT_TRANSACTION_ISOLATION
Database property containing the value ofDatabaseMetaData.getDefaultTransactionIsolation(). -
AVATICA_VERSION
Database property which is the Avatica version -
GET_DRIVER_VERSION
Database property containing the value ofDatabaseMetaData.getDriverVersion(). -
GET_DRIVER_MINOR_VERSION
Database property containing the value ofDatabaseMetaData.getDriverMinorVersion(). -
GET_DRIVER_MAJOR_VERSION
Database property containing the value ofDatabaseMetaData.getDriverMajorVersion(). -
GET_DRIVER_NAME
Database property containing the value ofDatabaseMetaData.getDriverName(). -
GET_DATABASE_MINOR_VERSION
Database property containing the value ofDatabaseMetaData.getDatabaseMinorVersion(). -
GET_DATABASE_MAJOR_VERSION
Database property containing the value ofDatabaseMetaData.getDatabaseMajorVersion(). -
GET_DATABASE_PRODUCT_NAME
Database property containing the value ofDatabaseMetaData.getDatabaseProductName(). -
GET_DATABASE_PRODUCT_VERSION
Database property containing the value ofDatabaseMetaData.getDatabaseProductVersion().
-
-
Field Details
-
type
-
defaultValue
-
method
-
isJdbc
public final boolean isJdbc
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getProp
Returns a value of this property, using the default value if the map does not contain an explicit value. -
getProp
Returns a value of this property, using the default value if the map does not contain an explicit value. -
fromProto
public static Meta.DatabaseProperty fromProto(org.apache.calcite.avatica.proto.Common.DatabaseProperty proto) -
toProto
public org.apache.calcite.avatica.proto.Common.DatabaseProperty toProto()
-