Class RuntimePersistenceUnitDescriptor
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.boot.RuntimePersistenceUnitDescriptor
-
- All Implemented Interfaces:
org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
public final class RuntimePersistenceUnitDescriptor extends Object implements org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
-
Constructor Summary
Constructors Constructor Description RuntimePersistenceUnitDescriptor(String name, String configurationName, String providerClassName, boolean useQuotedIdentifiers, jakarta.persistence.spi.PersistenceUnitTransactionType transactionType, jakarta.persistence.ValidationMode validationMode, jakarta.persistence.SharedCacheMode sharedCacheMode, List<String> managedClassNames, Properties properties)
Deprecated.Do not use directly: this should be considered an internal constructor, as we're trusting all parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
String
getConfigurationName()
List<URL>
getJarFileUrls()
Object
getJtaDataSource()
List<String>
getManagedClassNames()
List<String>
getMappingFileNames()
String
getName()
Object
getNonJtaDataSource()
URL
getPersistenceUnitRootUrl()
Properties
getProperties()
String
getProviderClassName()
jakarta.persistence.SharedCacheMode
getSharedCacheMode()
ClassLoader
getTempClassLoader()
jakarta.persistence.spi.PersistenceUnitTransactionType
getTransactionType()
jakarta.persistence.ValidationMode
getValidationMode()
boolean
isExcludeUnlistedClasses()
boolean
isUseQuotedIdentifiers()
void
pushClassTransformer(org.hibernate.bytecode.enhance.spi.EnhancementContext enhancementContext)
String
toString()
static RuntimePersistenceUnitDescriptor
validateAndReadFrom(org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor toClone, String configurationName)
Converts a generic PersistenceUnitDescriptor into one of this specific type, and validates that several options that Quarkus does not support are not set.
-
-
-
Constructor Detail
-
RuntimePersistenceUnitDescriptor
@Deprecated public RuntimePersistenceUnitDescriptor(String name, String configurationName, String providerClassName, boolean useQuotedIdentifiers, jakarta.persistence.spi.PersistenceUnitTransactionType transactionType, jakarta.persistence.ValidationMode validationMode, jakarta.persistence.SharedCacheMode sharedCacheMode, List<String> managedClassNames, Properties properties)
Deprecated.Do not use directly: this should be considered an internal constructor, as we're trusting all parameters. Useful for serialization to bytecode (which requires the constructor to be public).
-
-
Method Detail
-
validateAndReadFrom
public static RuntimePersistenceUnitDescriptor validateAndReadFrom(org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor toClone, String configurationName)
Converts a generic PersistenceUnitDescriptor into one of this specific type, and validates that several options that Quarkus does not support are not set.- Parameters:
toClone
- the descriptor to cloneconfigurationName
- the name of this PU in Quarkus configuration- Returns:
- a new instance of LightPersistenceXmlDescriptor
- Throws:
UnsupportedOperationException
- on unsupported configurations
-
getPersistenceUnitRootUrl
public URL getPersistenceUnitRootUrl()
- Specified by:
getPersistenceUnitRootUrl
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getConfigurationName
public String getConfigurationName()
-
getProviderClassName
public String getProviderClassName()
- Specified by:
getProviderClassName
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
isUseQuotedIdentifiers
public boolean isUseQuotedIdentifiers()
- Specified by:
isUseQuotedIdentifiers
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
isExcludeUnlistedClasses
public boolean isExcludeUnlistedClasses()
- Specified by:
isExcludeUnlistedClasses
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getTransactionType
public jakarta.persistence.spi.PersistenceUnitTransactionType getTransactionType()
- Specified by:
getTransactionType
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getValidationMode
public jakarta.persistence.ValidationMode getValidationMode()
- Specified by:
getValidationMode
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getSharedCacheMode
public jakarta.persistence.SharedCacheMode getSharedCacheMode()
- Specified by:
getSharedCacheMode
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getManagedClassNames
public List<String> getManagedClassNames()
- Specified by:
getManagedClassNames
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getMappingFileNames
public List<String> getMappingFileNames()
- Specified by:
getMappingFileNames
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getJarFileUrls
public List<URL> getJarFileUrls()
- Specified by:
getJarFileUrls
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getNonJtaDataSource
public Object getNonJtaDataSource()
- Specified by:
getNonJtaDataSource
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getJtaDataSource
public Object getJtaDataSource()
- Specified by:
getJtaDataSource
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getTempClassLoader
public ClassLoader getTempClassLoader()
- Specified by:
getTempClassLoader
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
pushClassTransformer
public void pushClassTransformer(org.hibernate.bytecode.enhance.spi.EnhancementContext enhancementContext)
- Specified by:
pushClassTransformer
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
-