Package org.hibernate.internal.util
Class LockModeConverter
- java.lang.Object
-
- org.hibernate.internal.util.LockModeConverter
-
public final class LockModeConverter extends Object
Helper to deal with conversions (both directions) betweenLockMode
andLockModeType
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LockMode
convertToLockMode(LockModeType lockMode)
Convert from JPA definedLockModeType
to Hibernate-specificLockMode
.static LockModeType
convertToLockModeType(LockMode lockMode)
Convert from the Hibernate-specificLockMode
to the JPA definedLockModeType
.
-
-
-
Method Detail
-
convertToLockModeType
public static LockModeType convertToLockModeType(LockMode lockMode)
Convert from the Hibernate-specificLockMode
to the JPA definedLockModeType
.- Parameters:
lockMode
- The HibernateLockMode
.- Returns:
- The JPA
LockModeType
-
convertToLockMode
public static LockMode convertToLockMode(LockModeType lockMode)
Convert from JPA definedLockModeType
to Hibernate-specificLockMode
.- Parameters:
lockMode
- The JPALockModeType
- Returns:
- The Hibernate
LockMode
.
-
-