Enum HibernateSQLMapping
java.lang.Object
java.lang.Enum<HibernateSQLMapping>
studio.thevipershow.safechat.persistence.HibernateSQLMapping
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HibernateSQLMapping>
,java.lang.constant.Constable
public enum HibernateSQLMapping extends java.lang.Enum<HibernateSQLMapping>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description COCKROACHDB
CockroachDB Server type.DB2
IBM DB2 Server type.H2
H2 Engine Type.HYPERSQL
HyperSQL Engine type.MARIADB
MariaDB Server type.MYSQL
MySQL Server type.POSTGRESQL
PostgreSQL Server type.SQLITE
SQLite (TESTING)SQLSERVER
Microsoft's SQLServer type. -
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DB_TYPE_PLACEHOLDER
static java.lang.String
STD_JDBC_FILE_URL
static java.lang.String
STD_JDBC_URL
-
Method Summary
Modifier and Type Method Description static @NotNull java.lang.String
generateAppropriateUrl(@NotNull HibernateSQLMapping hibernateSQLMapping, @NotNull DatabaseConfig dbConfig)
java.util.Map<java.lang.String,java.lang.String>
generateProperties(@NotNull DatabaseConfig dbConfig)
@NotNull java.lang.String
getDriverClassName()
@NotNull java.lang.Class<? extends org.hibernate.dialect.Dialect>
getHibernateDialectClass()
@NotNull java.lang.String
getSqlFlavour()
@NotNull java.lang.String
getUrlFormatter()
boolean
isFileBased()
static HibernateSQLMapping
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HibernateSQLMapping[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
MYSQL
MySQL Server type. -
POSTGRESQL
PostgreSQL Server type. -
MARIADB
MariaDB Server type. -
H2
H2 Engine Type. -
COCKROACHDB
CockroachDB Server type. -
HYPERSQL
HyperSQL Engine type. -
SQLSERVER
Microsoft's SQLServer type. -
DB2
IBM DB2 Server type. -
SQLITE
SQLite (TESTING)
-
-
Field Details
-
DB_TYPE_PLACEHOLDER
public static final java.lang.String DB_TYPE_PLACEHOLDER- See Also:
- Constant Field Values
-
STD_JDBC_URL
public static final java.lang.String STD_JDBC_URL- See Also:
- Constant Field Values
-
STD_JDBC_FILE_URL
public static final java.lang.String STD_JDBC_FILE_URL- See Also:
- Constant Field Values
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
generateAppropriateUrl
@NotNull public static @NotNull java.lang.String generateAppropriateUrl(@NotNull @NotNull HibernateSQLMapping hibernateSQLMapping, @NotNull @NotNull DatabaseConfig dbConfig) -
generateProperties
public java.util.Map<java.lang.String,java.lang.String> generateProperties(@NotNull @NotNull DatabaseConfig dbConfig) -
getSqlFlavour
@NotNull public @NotNull java.lang.String getSqlFlavour() -
getDriverClassName
@NotNull public @NotNull java.lang.String getDriverClassName() -
getUrlFormatter
@NotNull public @NotNull java.lang.String getUrlFormatter() -
getHibernateDialectClass
@NotNull public @NotNull java.lang.Class<? extends org.hibernate.dialect.Dialect> getHibernateDialectClass() -
isFileBased
public boolean isFileBased()
-