org.springframework.boot.jdbc

Enum DatabaseDriver

    • Method Detail

      • values

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

        public static DatabaseDriver 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 name
        NullPointerException - if the argument is null
      • getId

        public String getId()
        Return the identifier of this driver.
        Returns:
        the identifier
      • matchProductName

        protected boolean matchProductName(String productName)
      • getDriverClassName

        public String getDriverClassName()
        Return the driver class name.
        Returns:
        the class name or null
      • getXaDataSourceClassName

        public String getXaDataSourceClassName()
        Return the XA driver source class name.
        Returns:
        the class name or null
      • getValidationQuery

        public String getValidationQuery()
        Return the validation query.
        Returns:
        the validation query or null
      • fromProductName

        public static DatabaseDriver fromProductName(String productName)
        Find a DatabaseDriver for the given product name.
        Parameters:
        productName - product name
        Returns:
        the database driver or UNKNOWN if not found

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.