Enum BuiltInConnectionProperty

    • Field Detail

      • camelName

        private final java.lang.String camelName
      • defaultValue

        private final java.lang.Object defaultValue
      • valueClass

        private java.lang.Class valueClass
      • required

        private final boolean required
      • LOCAL_PROPS

        private static final java.util.Set<java.lang.String> LOCAL_PROPS
    • Constructor Detail

      • BuiltInConnectionProperty

        private BuiltInConnectionProperty​(java.lang.String camelName,
                                          ConnectionProperty.Type type,
                                          java.lang.Object defaultValue,
                                          boolean required)
      • BuiltInConnectionProperty

        private BuiltInConnectionProperty​(java.lang.String camelName,
                                          ConnectionProperty.Type type,
                                          java.lang.Object defaultValue,
                                          java.lang.Class valueClass,
                                          boolean required)
    • Method Detail

      • values

        public static BuiltInConnectionProperty[] 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 (BuiltInConnectionProperty c : BuiltInConnectionProperty.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BuiltInConnectionProperty 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 name
        java.lang.NullPointerException - if the argument is null
      • camelName

        public java.lang.String camelName()
        Description copied from interface: ConnectionProperty
        The name of this property in camel-case. (E.g. "materializationsEnabled".)
        Specified by:
        camelName in interface ConnectionProperty
      • defaultValue

        public java.lang.Object defaultValue()
        Description copied from interface: ConnectionProperty
        Returns the default value of this property. The type must match its data type.
        Specified by:
        defaultValue in interface ConnectionProperty
      • isLocalProperty

        public static boolean isLocalProperty​(java.lang.Object propertyName)
        Checks if the given property only applicable to the remote driver (should not be sent to the Avatica server).
        Parameters:
        propertyName - Name of the property
        Returns:
        True if the property denoted by the given name is only relevant locally, otherwise false.