Serializable
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 | Description |
---|---|
JDDataSourceURL(JDDataSourceURL originalDataSourceUrl_,
String server,
String port) |
|
JDDataSourceURL(String url) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getPortNumber() |
|
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 JDDataSourceURL(JDDataSourceURL originalDataSourceUrl_, String server, String port)
public String getSchema() throws SQLException
SQLException
- If a database error occurs.public String getServerName()
public boolean isPortSpecified()
public boolean isValid()
public int getPortNumber()
Copyright © 2024. All rights reserved.