Enum DatabaseConnection.DatabaseType

    • Method Detail

      • values

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

        public static DatabaseConnection.DatabaseType 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
      • getDefaultDriver

        public String getDefaultDriver()
        fully qualified class-name of the java.sql.Driver for this type
      • getTemplateUrl

        public String getTemplateUrl()
        an example JDBC-URL
      • getDefaultPort

        public Integer getDefaultPort()
        the default port
      • getDefaultValidationQuery

        public String getDefaultValidationQuery()
        the default validation query
      • getDataSourceClassName

        public String getDataSourceClassName()
        fully qualified class-name of the javax.sql.DataSource for this type