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
ConstructorDescriptionRuntimePersistenceUnitDescriptor
(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
Modifier and TypeMethodDescriptionorg.hibernate.bytecode.spi.ClassTransformer
getName()
jakarta.persistence.SharedCacheMode
jakarta.persistence.spi.PersistenceUnitTransactionType
jakarta.persistence.ValidationMode
boolean
boolean
void
pushClassTransformer
(org.hibernate.bytecode.enhance.spi.EnhancementContext enhancementContext) toString()
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 Details
-
Method Details
-
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
- Specified by:
getPersistenceUnitRootUrl
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getName
- Specified by:
getName
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getConfigurationName
-
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
-
getManagedClassNames
- Specified by:
getManagedClassNames
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getMappingFileNames
- Specified by:
getMappingFileNames
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getJarFileUrls
- Specified by:
getJarFileUrls
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getNonJtaDataSource
- Specified by:
getNonJtaDataSource
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getJtaDataSource
- Specified by:
getJtaDataSource
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getProperties
- Specified by:
getProperties
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getClassLoader
- Specified by:
getClassLoader
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
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
-
toString
-
getClassTransformer
public org.hibernate.bytecode.spi.ClassTransformer getClassTransformer()- Specified by:
getClassTransformer
in interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-