Package com.mrivanplays.sqlhelper
Class ConnectionType
- java.lang.Object
-
- com.mrivanplays.sqlhelper.ConnectionType
-
public final class ConnectionType extends Object
Represents a type of connection.
-
-
Field Summary
Fields Modifier and Type Field Description static ConnectionType
MARIADB
Connection type: MariaDB ; for connecting to mariadb servers.static ConnectionType
MYSQL
Connection type: MySQL ; for connecting to mysql servers.static ConnectionType
POSTGRESQL
Connection type: PostgreSQL ; for connecting to postgresql servers.
-
Constructor Summary
Constructors Constructor Description ConnectionType(String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionType[]
defaultValues()
Returns the default values as an array.boolean
equals(Object o)
String
getName()
Returns the type name of the connection.int
hashCode()
String
toString()
-
-
-
Field Detail
-
MYSQL
public static final ConnectionType MYSQL
Connection type: MySQL ; for connecting to mysql servers.
-
POSTGRESQL
public static final ConnectionType POSTGRESQL
Connection type: PostgreSQL ; for connecting to postgresql servers.
-
MARIADB
public static final ConnectionType MARIADB
Connection type: MariaDB ; for connecting to mariadb servers.Recommended over MySQL and PostgreSQL.
-
-
Constructor Detail
-
ConnectionType
public ConnectionType(String name)
-
-
Method Detail
-
defaultValues
public static ConnectionType[] defaultValues()
Returns the default values as an array.- Returns:
- default values
-
getName
public String getName()
Returns the type name of the connection.- Returns:
- name
-
-