Top Description Fields Constructors Methods
javax.persistence

public final Enum SynchronizationType

extends Enum<SynchronizationType>
Class Inheritance

Specifies whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of the EntityManager#joinTransaction method.
Since
Java Persistence 2.1

Field Summary

Modifier and TypeField and Description
public static final SynchronizationType
SYNCHRONIZED

Persistence context is automatically synchronized with the current transaction

public static final SynchronizationType
UNSYNCHRONIZED

Persistence context must be explicitly joined to the current transaction

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SynchronizationType
public static SynchronizationType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

SYNCHRONIZEDback to summary
public static final SynchronizationType SYNCHRONIZED

Persistence context is automatically synchronized with the current transaction

UNSYNCHRONIZEDback to summary
public static final SynchronizationType UNSYNCHRONIZED

Persistence context must be explicitly joined to the current transaction

Constructor Detail

SynchronizationTypeback to summary
private SynchronizationType()

Method Detail

valueOfback to summary
public static SynchronizationType valueOf(String name)
valuesback to summary
public static SynchronizationType[] values()