public enum DbKind extends Enum<DbKind>
Enum Constant and Description |
---|
ORACLE_SERVICE
Oracle 10g.
|
ORACLE_SID
Oracle 10g, Express Edition.
|
POSTGRESQL
PostgreSQL.
|
Modifier and Type | Field and Description |
---|---|
protected int |
defaultPort |
protected String |
jdbcDriverClass |
protected String |
schemaDelimiter |
protected String |
scriptDirectoryString |
protected String |
urlPostfix |
protected String |
urlPrefix |
protected String |
userString |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultPort()
Get the default port for the database system.
|
String |
getJDBCDriver()
Get the JDBC driver for the database system.
|
String |
getURL(String host,
int port,
String serviceOrSid,
String schema)
Get the string needed for the database connect string.
|
String |
getURL(String host,
String port,
String serviceOrSid,
String schema)
Get the string needed for the database connect string.
|
String |
getUserString()
Get the string to display to the user.
|
static String[] |
getUserStrings()
Get the possible names of the enum.
|
static DbKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DbKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DbKind ORACLE_SERVICE
public static final DbKind ORACLE_SID
public static final DbKind POSTGRESQL
protected String userString
protected String scriptDirectoryString
protected String jdbcDriverClass
protected String urlPrefix
protected int defaultPort
protected String urlPostfix
protected String schemaDelimiter
public static DbKind[] values()
for (DbKind c : DbKind.values()) System.out.println(c);
public static DbKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String[] getUserStrings()
public String getURL(String host, int port, String serviceOrSid, String schema)
host
- host name/IP of the database.port
- port of the database as integer.serviceOrSid
- Service or SID of the database to open.schema
- Schema name in the database to open.public String getURL(String host, String port, String serviceOrSid, String schema)
host
- host name/IP of the database.port
- port of the database as string.serviceOrSid
- Service or SID of the database to open.schema
- Schema name in the database to open.public String getUserString()
public int getDefaultPort()
public String getJDBCDriver()
Copyright © 2016–2023 MicroNova AG. All rights reserved.