public class OracleURLParser extends AbstractURLParser
OracleURLParser presents that how to parse oracle connection url.
Note: OracleURLParser can parse the commons connection url. the commons
connection url is of the form: jdbc:oracle:(drivertype):@(database),the other
the form of connection url cannot be parsed success.| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME_FLAG |
static String |
TNSNAME_URL_FLAG |
url| Constructor and Description |
|---|
OracleURLParser(String url) |
| Modifier and Type | Method and Description |
|---|---|
protected URLLocation |
fetchDatabaseHostsIndexRange()
Fetch the index range that database host and port from connection url.
|
protected URLLocation |
fetchDatabaseNameIndexRange()
Fetch the index range that database name from connection url.
|
ConnectionInfo |
parse()
ConnectionURLParser parses database name and the database host(s) from connection url. |
fetchDatabaseHostsFromURL, fetchDatabaseNameFromURL, fetchDatabaseNameFromURLpublic static final String SERVICE_NAME_FLAG
public static final String TNSNAME_URL_FLAG
public OracleURLParser(String url)
protected URLLocation fetchDatabaseHostsIndexRange()
AbstractURLParserfetchDatabaseHostsIndexRange in class AbstractURLParserprotected URLLocation fetchDatabaseNameIndexRange()
AbstractURLParserfetchDatabaseNameIndexRange in class AbstractURLParserpublic ConnectionInfo parse()
ConnectionURLParserConnectionURLParser parses database name and the database host(s) from connection url.Copyright © 2019 The Apache Software Foundation. All rights reserved.