public class JDDataSourceURL extends Object implements Serializable
A class representing a URL specifying an IBM i system data source. This is needed to connect before accessing data. The supported syntaxes for the DB2 for IBM i database URL are documented in the comments for AS400JDBCDriver.
Constructor and Description |
---|
JDDataSourceURL(String url)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getSchema()
Validate and return the schema as it was parsed from the URL.
|
String |
getServerName()
Get the system name as it was parsed from the URL.
|
boolean |
isPortSpecified()
Was a port specified in the URL?
|
boolean |
isValid()
Is the URL valid for access by this JDBC driver?
|
String |
toString()
Return the URL as a String.
|
public JDDataSourceURL(String url)
url
- The URL to parse.public String getSchema() throws SQLException
SQLException
public String getServerName()
public boolean isPortSpecified()
public boolean isValid()