Package org.hibernate.annotations
Enum FlushModeType
- java.lang.Object
-
- java.lang.Enum<FlushModeType>
-
- org.hibernate.annotations.FlushModeType
-
- All Implemented Interfaces:
Serializable
,Comparable<FlushModeType>
public enum FlushModeType extends Enum<FlushModeType>
Enumeration extendingJPA flush modes
with flush modes specific to Hibernate, and a "null" flush mode,PERSISTENCE_CONTEXT
for use as a default annotation value. Except for the null value, this enumeration is isomorphic toFlushMode
.- See Also:
NamedQuery
,NamedNativeQuery
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Corresponds toFlushMode.ALWAYS
.AUTO
Corresponds toFlushMode.AUTO
.COMMIT
Corresponds toFlushMode.COMMIT
.MANUAL
Corresponds toFlushMode.MANUAL
.PERSISTENCE_CONTEXT
Current flush mode of the persistence context at the time the query is executed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlushModeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FlushModeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final FlushModeType ALWAYS
Corresponds toFlushMode.ALWAYS
.
-
AUTO
public static final FlushModeType AUTO
Corresponds toFlushMode.AUTO
.
-
COMMIT
public static final FlushModeType COMMIT
Corresponds toFlushMode.COMMIT
.
-
MANUAL
public static final FlushModeType MANUAL
Corresponds toFlushMode.MANUAL
.
-
PERSISTENCE_CONTEXT
public static final FlushModeType PERSISTENCE_CONTEXT
Current flush mode of the persistence context at the time the query is executed.
-
-
Method Detail
-
values
public static FlushModeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FlushModeType c : FlushModeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlushModeType valueOf(String name)
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-