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 COCKROACHDBCockroachDB Server type.DB2IBM DB2 Server type.H2H2 Engine Type.HYPERSQLHyperSQL Engine type.MARIADBMariaDB Server type.MYSQLMySQL Server type.POSTGRESQLPostgreSQL Server type.SQLITESQLite (TESTING)SQLSERVERMicrosoft's SQLServer type. -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDB_TYPE_PLACEHOLDERstatic java.lang.StringSTD_JDBC_FILE_URLstatic java.lang.StringSTD_JDBC_URL -
Method Summary
Modifier and Type Method Description static @NotNull java.lang.StringgenerateAppropriateUrl(@NotNull HibernateSQLMapping hibernateSQLMapping, @NotNull DatabaseConfig dbConfig)java.util.Map<java.lang.String,java.lang.String>generateProperties(@NotNull DatabaseConfig dbConfig)@NotNull java.lang.StringgetDriverClassName()@NotNull java.lang.Class<? extends org.hibernate.dialect.Dialect>getHibernateDialectClass()@NotNull java.lang.StringgetSqlFlavour()@NotNull java.lang.StringgetUrlFormatter()booleanisFileBased()static HibernateSQLMappingvalueOf(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, valueOfMethods 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()
-