Package org.apache.calcite.avatica
Enum Meta.DatabaseProperty
- java.lang.Object
-
- java.lang.Enum<Meta.DatabaseProperty>
-
- org.apache.calcite.avatica.Meta.DatabaseProperty
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Meta.DatabaseProperty>
- Enclosing interface:
- Meta
public static enum Meta.DatabaseProperty extends java.lang.Enum<Meta.DatabaseProperty>
Database property.Values exist for methods, such as
DatabaseMetaData.getSQLKeywords(), which always return the same value at all times and across connections.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVATICA_VERSIONDatabase property which is the Avatica versionGET_DATABASE_MAJOR_VERSIONDatabase property containing the value ofDatabaseMetaData.getDatabaseMajorVersion().GET_DATABASE_MINOR_VERSIONDatabase property containing the value ofDatabaseMetaData.getDatabaseMinorVersion().GET_DATABASE_PRODUCT_NAMEDatabase property containing the value ofDatabaseMetaData.getDatabaseProductName().GET_DATABASE_PRODUCT_VERSIONDatabase property containing the value ofDatabaseMetaData.getDatabaseProductVersion().GET_DEFAULT_TRANSACTION_ISOLATIONDatabase property containing the value ofDatabaseMetaData.getDefaultTransactionIsolation().GET_DRIVER_MAJOR_VERSIONDatabase property containing the value ofDatabaseMetaData.getDriverMajorVersion().GET_DRIVER_MINOR_VERSIONDatabase property containing the value ofDatabaseMetaData.getDriverMinorVersion().GET_DRIVER_NAMEDatabase property containing the value ofDatabaseMetaData.getDriverName().GET_DRIVER_VERSIONDatabase property containing the value ofDatabaseMetaData.getDriverVersion().GET_NUMERIC_FUNCTIONSDatabase property containing the value ofDatabaseMetaData.getNumericFunctions().GET_S_Q_L_KEYWORDSDatabase property containing the value ofDatabaseMetaData.getSQLKeywords().GET_STRING_FUNCTIONSDatabase property containing the value ofDatabaseMetaData.getStringFunctions().GET_SYSTEM_FUNCTIONSDatabase property containing the value ofDatabaseMetaData.getSystemFunctions().GET_TIME_DATE_FUNCTIONSDatabase property containing the value ofDatabaseMetaData.getTimeDateFunctions().
-
Field Summary
Fields Modifier and Type Field Description java.lang.ObjectdefaultValuebooleanisJdbcjava.lang.reflect.Methodmethodjava.lang.Class<?>type
-
Constructor Summary
Constructors Modifier Constructor Description privateDatabaseProperty(T defaultValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Meta.DatabasePropertyfromProto(Common.DatabaseProperty proto)<T> TgetProp(java.util.Map<Meta.DatabaseProperty,java.lang.Object> map, java.lang.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, java.lang.Class<T> aClass)Returns a value of this property, using the default value if the map does not contain an explicit value.Common.DatabasePropertytoProto()static Meta.DatabasePropertyvalueOf(java.lang.String name)Returns 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 Detail
-
GET_NUMERIC_FUNCTIONS
public static final Meta.DatabaseProperty GET_NUMERIC_FUNCTIONS
Database property containing the value ofDatabaseMetaData.getNumericFunctions().
-
GET_STRING_FUNCTIONS
public static final Meta.DatabaseProperty GET_STRING_FUNCTIONS
Database property containing the value ofDatabaseMetaData.getStringFunctions().
-
GET_SYSTEM_FUNCTIONS
public static final Meta.DatabaseProperty GET_SYSTEM_FUNCTIONS
Database property containing the value ofDatabaseMetaData.getSystemFunctions().
-
GET_TIME_DATE_FUNCTIONS
public static final Meta.DatabaseProperty GET_TIME_DATE_FUNCTIONS
Database property containing the value ofDatabaseMetaData.getTimeDateFunctions().
-
GET_S_Q_L_KEYWORDS
public static final Meta.DatabaseProperty GET_S_Q_L_KEYWORDS
Database property containing the value ofDatabaseMetaData.getSQLKeywords().
-
GET_DEFAULT_TRANSACTION_ISOLATION
public static final Meta.DatabaseProperty GET_DEFAULT_TRANSACTION_ISOLATION
Database property containing the value ofDatabaseMetaData.getDefaultTransactionIsolation().
-
AVATICA_VERSION
public static final Meta.DatabaseProperty AVATICA_VERSION
Database property which is the Avatica version
-
GET_DRIVER_VERSION
public static final Meta.DatabaseProperty GET_DRIVER_VERSION
Database property containing the value ofDatabaseMetaData.getDriverVersion().
-
GET_DRIVER_MINOR_VERSION
public static final Meta.DatabaseProperty GET_DRIVER_MINOR_VERSION
Database property containing the value ofDatabaseMetaData.getDriverMinorVersion().
-
GET_DRIVER_MAJOR_VERSION
public static final Meta.DatabaseProperty GET_DRIVER_MAJOR_VERSION
Database property containing the value ofDatabaseMetaData.getDriverMajorVersion().
-
GET_DRIVER_NAME
public static final Meta.DatabaseProperty GET_DRIVER_NAME
Database property containing the value ofDatabaseMetaData.getDriverName().
-
GET_DATABASE_MINOR_VERSION
public static final Meta.DatabaseProperty GET_DATABASE_MINOR_VERSION
Database property containing the value ofDatabaseMetaData.getDatabaseMinorVersion().
-
GET_DATABASE_MAJOR_VERSION
public static final Meta.DatabaseProperty GET_DATABASE_MAJOR_VERSION
Database property containing the value ofDatabaseMetaData.getDatabaseMajorVersion().
-
GET_DATABASE_PRODUCT_NAME
public static final Meta.DatabaseProperty GET_DATABASE_PRODUCT_NAME
Database property containing the value ofDatabaseMetaData.getDatabaseProductName().
-
GET_DATABASE_PRODUCT_VERSION
public static final Meta.DatabaseProperty GET_DATABASE_PRODUCT_VERSION
Database property containing the value ofDatabaseMetaData.getDatabaseProductVersion().
-
-
Method Detail
-
values
public static Meta.DatabaseProperty[] 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 (Meta.DatabaseProperty c : Meta.DatabaseProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Meta.DatabaseProperty valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getProp
public <T> T getProp(Meta meta, Meta.ConnectionHandle ch, java.lang.Class<T> aClass)
Returns a value of this property, using the default value if the map does not contain an explicit value.
-
getProp
public <T> T getProp(java.util.Map<Meta.DatabaseProperty,java.lang.Object> map, java.lang.Class<T> aClass)
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(Common.DatabaseProperty proto)
-
toProto
public Common.DatabaseProperty toProto()
-
-