/**
 * Narvaro: @VERSION@
 * Build Date: @DATE@
 * Commit Head: @HEAD@
 * JDK: @JDK@
 * ANT: @ANT@
 *
 */

package edu.csus.ecs.moneybeets.narvaro.database;

/**
 * Narvaro supported database types.
 *
 */
public enum DatabaseType {

    sqlserver,
    
    mysql,
    
    ;
    
}

@@ -151,16 +151,59 @@
 abase;%0A%0A
+import java.util.zip.DataFormatException;%0A%0A
 /**%0A * N
@@ -283,16 +283,30 @@
 qlserver
+(%22SQL Server%22)
 ,%0A    %0A 
@@ -313,16 +313,25 @@
    mysql
+(%22MySQL%22)
 ,%0A    %0A 
@@ -340,10 +340,914 @@
  ;%0A    %0A
+    private DatabaseType(final String name) %7B%0A    %09this.name = name;%0A    %7D%0A    %0A    final String name;%0A    %0A    /**%0A     * @return The database name.%0A     */%0A    public String getName() %7B%0A    %09return name;%0A    %7D%0A    %0A    /**%0A     * Converts a string to the proper matching DatabaseType.%0A     * %0A     * @param in The string.%0A     * @return The database type if found.%0A     * @throws DataFormatException If input is null or empty, or not found.%0A     */%0A    public static DatabaseType fromString(final String in) throws DataFormatException %7B%0A    %09if (%22%22.equals(in) %7C%7C in == null) %7B%0A    %09%09throw new DataFormatException(%22Input not found%22);%0A    %09%7D%0A    %09for (DatabaseType dbType : DatabaseType.values()) %7B%0A    %09%09if (in.equalsIgnoreCase(dbType.toString()) %0A    %09%09%09%09%7C%7C in.equalsIgnoreCase(dbType.getName())) %7B%0A    %09%09%09return dbType;%0A    %09%09%7D%0A    %09%7D%0A    %09throw new DataFormatException(%22Input not found%22);%0A    %7D%0A    %0A
 %7D%0A

Add database server names and fromString() method