public final class OptimisticLockingCompatibilityHelper extends Object
FullTextQueryImpl
to extract information out of an
Hibernate OptimisticLockException
and create the JPA counterpart.Modifier and Type | Method and Description |
---|---|
static OptimisticLockException |
convertToLockException(HibernateException e)
Convert a provided Hibernate exception to a JPA exception.
|
static boolean |
isOptimisticLockException(HibernateException e) |
public static boolean isOptimisticLockException(HibernateException e)
e
- an Hibernate runtime exceptionpublic static OptimisticLockException convertToLockException(HibernateException e)
e
- the Hibernate exception to convertCopyright © 2018 JBoss by Red Hat. All rights reserved.