Package org.hibernate.annotations
Enum Class FlushModeType
- All Implemented Interfaces:
Serializable
,Comparable<FlushModeType>
,Constable
Deprecated, for removal: This API element is subject to removal in a future version.
Enumeration extending the JPA flush modes
with flush modes specific to Hibernate, and a "null" mode,
PERSISTENCE_CONTEXT
,
for use as a default annotation value. Except for the null value, this enumeration is
isomorphic to FlushMode
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Corresponds toFlushMode.ALWAYS
.Deprecated, for removal: This API element is subject to removal in a future version.Corresponds toFlushMode.AUTO
.Deprecated, for removal: This API element is subject to removal in a future version.Corresponds toFlushMode.COMMIT
.Deprecated, for removal: This API element is subject to removal in a future version.Corresponds toFlushMode.MANUAL
.Deprecated, for removal: This API element is subject to removal in a future version.Current flush mode of the persistence context at the time the query is executed. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlushModeType
Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.static FlushModeType[]
values()
Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Deprecated, for removal: This API element is subject to removal in a future version.Corresponds toFlushMode.ALWAYS
. -
AUTO
Deprecated, for removal: This API element is subject to removal in a future version.Corresponds toFlushMode.AUTO
. -
COMMIT
Deprecated, for removal: This API element is subject to removal in a future version.Corresponds toFlushMode.COMMIT
. -
MANUAL
Deprecated, for removal: This API element is subject to removal in a future version.Corresponds toFlushMode.MANUAL
. -
PERSISTENCE_CONTEXT
Deprecated, for removal: This API element is subject to removal in a future version.Current flush mode of the persistence context at the time the query is executed.
-
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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
-
QueryFlushMode
. This enumeration will be removed to alleviate the duplication in naming withFlushModeType
.