public class JDDataSourceURL
extends java.lang.Object
implements java.io.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(JDDataSourceURL originalDataSourceUrl_,
java.lang.String server,
java.lang.String port) |
JDDataSourceURL(java.lang.String url)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getPortNumber() |
java.lang.String |
getSchema()
Validate and return the schema as it was parsed from the URL.
|
java.lang.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?
|
java.lang.String |
toString()
Return the URL as a String.
|
public JDDataSourceURL(java.lang.String url)
url
- The URL to parse.public JDDataSourceURL(JDDataSourceURL originalDataSourceUrl_, java.lang.String server, java.lang.String port)
public java.lang.String getSchema() throws java.sql.SQLException
java.sql.SQLException
- If a database error occurs.public java.lang.String getServerName()
public boolean isPortSpecified()
public boolean isValid()
public int getPortNumber()
public java.lang.String toString()
toString
in class java.lang.Object