org.eclipse.datatools.sqltools.core
Class ServerIdentifier
java.lang.Object
org.eclipse.datatools.sqltools.core.ServerIdentifier
- public class ServerIdentifier
- extends java.lang.Object
A server identifier is used to uniquely identify a server.
- Author:
- Yang Liu, Hui Cao
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
ServerIdentifier
public ServerIdentifier(java.lang.String host,
java.lang.String port,
java.lang.String url,
DatabaseVendorDefinitionId dbIdentifier)
getHost
public java.lang.String getHost()
getPort
public java.lang.String getPort()
getUrl
public java.lang.String getUrl()
equals
public boolean equals(java.lang.Object obj)
hashCode
public int hashCode()
getDatabaseVendorDefinitionId
public DatabaseVendorDefinitionId getDatabaseVendorDefinitionId()
parseUrl
public java.util.ArrayList parseUrl(java.lang.String url1)
- Parses the url and put protocol, host and port into an ArrayList. Since different database may have different
format of url, the default implementation only works with the common url format: protocol:host:port/database?properties
Copyright © 2007 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.