Top Description Methods
jakarta.persistence.spi

public Interface PersistenceProviderResolver

Known Direct Implementers
jakarta.persistence.spi.PersistenceProviderResolverHolder.DefaultPersistenceProviderResolver
Imports
java.util.List

Provides a list of persistence providers available in the runtime environment.

Implementations must be thread-safe.

Note that the getPersistenceProviders method can potentially be called many times: it is recommended that the implementation of this method make use of caching.

Since
2.0
See Also
PersistenceProvider

Method Summary

Modifier and TypeMethod and Description
public void
clearCachedProviders()

Clear cache of providers.

public List<PersistenceProvider>

Returns:

list of the persistence providers available in the environment
getPersistenceProviders
()

Returns a list of the persistence provider implementations available in the runtime environment.

Method Detail

clearCachedProvidersback to summary
public void clearCachedProviders()

Clear cache of providers.

getPersistenceProvidersback to summary
public List<PersistenceProvider> getPersistenceProviders()

Returns a list of the persistence provider implementations available in the runtime environment.

Returns:List<PersistenceProvider>

list of the persistence providers available in the environment