public class ServerType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ServerType |
DB2 |
static ServerType |
Oracle |
static ServerType |
SQLServer |
static ServerType |
Unknown |
Modifier and Type | Method and Description |
---|---|
static ServerType |
findServerType(java.sql.Connection connection) |
static java.util.Set<ServerType> |
getAllServers()
Return a set with all server types.
|
static ServerType |
getServer(int dbPlatform)
Convert numeric constant from UpgConstants into ServerType.
|
static ServerType |
getServer(java.lang.String targetStr)
Return the server that matches the string given.
|
boolean |
matches(java.lang.String serverType)
Does this server type match the value given?
"all" is treated as a wildcard.
|
java.lang.String |
toString() |
public static final ServerType SQLServer
public static final ServerType Oracle
public static final ServerType DB2
public static final ServerType Unknown
public java.lang.String toString()
toString
in class java.lang.Object
public boolean matches(java.lang.String serverType)
serverType
- Type of server.public static java.util.Set<ServerType> getAllServers()
public static ServerType getServer(java.lang.String targetStr)
targetStr
- The name of the server to return.public static ServerType getServer(int dbPlatform)
dbPlatform
- The numeric constantUpgConstants.ORACLE
,
UpgConstants.DB2
,
UpgConstants.SQLSERVER
public static ServerType findServerType(java.sql.Connection connection) throws java.sql.SQLException
java.sql.SQLException