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)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
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
- Parameters:
url
- for Sybase databases, it is in the form of: protocol:host:port/database?properties, notice that
protocol itself can contain semicolons
Copyright © 2006 -- 2008 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.