com.ibm.tivoli.maximo.dbmanage

Class ServerType

  • java.lang.Object
    • com.ibm.tivoli.maximo.dbmanage.ServerType


  • public class ServerType
    extends java.lang.Object
    Identifies a database server.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • matches

        public boolean matches(java.lang.String serverType)
        Does this server type match the value given? "all" is treated as a wildcard.
        Parameters:
        serverType - Type of server.
        Returns:
        true if matches
      • getAllServers

        public static java.util.Set getAllServers()
        Return a set with all server types.
        Returns:
        A copy of the set of all servers.
      • getServer

        public static ServerType getServer(java.lang.String targetStr)
        Return the server that matches the string given.
        Parameters:
        targetStr - The name of the server to return.
        Returns:
        The server type that matches the name, or the unknown server.
      • findServerType

        public static ServerType findServerType(java.sql.Connection connection)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException