public enum Database extends Enum<Database>
Enum Constant and Description |
---|
HSQLDB_EMBEDDED
Represents the HyperSQL database, running outside of a Docker contaier.
|
MARIADB
Represents the MariaDB database.
|
MYSQL
Represents the MySQL database.
|
ORACLE
Represents the Oracle database.
|
POSTGRESQL
Represents the PostgreSQL database.
|
Modifier and Type | Method and Description |
---|---|
String |
getIP() |
int |
getPort() |
void |
setIP(String ip) |
void |
setPort(int port) |
static Database |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Database[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Database MYSQL
public static final Database MARIADB
public static final Database HSQLDB_EMBEDDED
public static final Database POSTGRESQL
public static final Database ORACLE
public static Database[] values()
for (Database c : Database.values()) System.out.println(c);
public static Database 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 String getIP()
public void setPort(int port)
port
- see getPort()
public int getPort()
Copyright © 2004–2021 XWiki. All rights reserved.