public final class ProviderChecker
extends java.lang.Object
PersistenceProvider
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
extractRequestedProviderName(PersistenceUnitDescriptor persistenceUnit,
java.util.Map integration)
Extract the requested persistence provider name using the algorithm Hibernate uses.
|
static boolean |
hibernateProviderNamesContain(java.lang.String requestedProviderName)
Is the requested provider name one of the recognized Hibernate provider names?
|
static boolean |
isProvider(PersistenceUnitDescriptor persistenceUnit,
java.util.Map integration)
Does the descriptor and/or integration request Hibernate as the
PersistenceProvider ? Note that in the case of no requested provider being named
we assume we are the provider (the calls got to us somehow...) |
public static boolean isProvider(PersistenceUnitDescriptor persistenceUnit, java.util.Map integration)
PersistenceProvider
? Note that in the case of no requested provider being named
we assume we are the provider (the calls got to us somehow...)persistenceUnit
- The <persistence-unit/>
descriptor.integration
- The integration values.true
if Hibernate should be the provider; false
otherwise.public static boolean hibernateProviderNamesContain(java.lang.String requestedProviderName)
requestedProviderName
- The requested provider name to check against the recognized Hibernate names.true
if Hibernate should be the provider; false
otherwise.public static java.lang.String extractRequestedProviderName(PersistenceUnitDescriptor persistenceUnit, java.util.Map integration)
persistenceUnit
- The <persistence-unit/>
descriptor.integration
- The integration values.null
if none found.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.