Package io.quarkus.hibernate.orm.runtime
Enum Class HibernateOrmRuntimeConfigPersistenceUnit.HibernateFlushMode
java.lang.Object
java.lang.Enum<HibernateOrmRuntimeConfigPersistenceUnit.HibernateFlushMode>
io.quarkus.hibernate.orm.runtime.HibernateOrmRuntimeConfigPersistenceUnit.HibernateFlushMode
- All Implemented Interfaces:
Serializable,Comparable<HibernateOrmRuntimeConfigPersistenceUnit.HibernateFlushMode>,Constable
- Enclosing interface:
HibernateOrmRuntimeConfigPersistenceUnit
public static enum HibernateOrmRuntimeConfigPersistenceUnit.HibernateFlushMode
extends Enum<HibernateOrmRuntimeConfigPersistenceUnit.HibernateFlushMode>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe `org.hibernate.Session` is flushed when `org.hibernate.Transaction#commit()` is called and before every query.The `org.hibernate.Session` is flushed when `org.hibernate.Transaction#commit()` is called, and is sometimes flushed before query execution in order to ensure that queries never return stale state.The `org.hibernate.Session` is flushed when `org.hibernate.Transaction#commit()` is called.The `org.hibernate.Session` is only flushed when `org.hibernate.Session#flush()` is called explicitly. -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.FlushModeReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANUAL
The `org.hibernate.Session` is only flushed when `org.hibernate.Session#flush()` is called explicitly. This mode is very efficient for read-only transactions. -
COMMIT
The `org.hibernate.Session` is flushed when `org.hibernate.Transaction#commit()` is called. It is never automatically flushed before query execution.- See Also:
-
AUTO
The `org.hibernate.Session` is flushed when `org.hibernate.Transaction#commit()` is called, and is sometimes flushed before query execution in order to ensure that queries never return stale state. This is the default flush mode.- See Also:
-
ALWAYS
The `org.hibernate.Session` is flushed when `org.hibernate.Transaction#commit()` is called and before every query. This is usually unnecessary and inefficient.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getHibernateFlushMode
public org.hibernate.FlushMode getHibernateFlushMode()
-