Class QuarkusPersistenceUnitDescriptor
java.lang.Object
io.quarkus.hibernate.orm.runtime.boot.QuarkusPersistenceUnitDescriptor
- All Implemented Interfaces:
org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
public final class QuarkusPersistenceUnitDescriptor
extends Object
implements org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionQuarkusPersistenceUnitDescriptor(String name, String configurationName, jakarta.persistence.spi.PersistenceUnitTransactionType transactionType, List<String> managedClassNames, Properties properties) QuarkusPersistenceUnitDescriptor(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.ClassTransformergetName()jakarta.persistence.SharedCacheModejakarta.persistence.spi.PersistenceUnitTransactionTypejakarta.persistence.ValidationModebooleanbooleanvoidpushClassTransformer(org.hibernate.bytecode.enhance.spi.EnhancementContext enhancementContext) toString()validateAndReadFrom(org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor toClone) 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
-
QuarkusPersistenceUnitDescriptor
public QuarkusPersistenceUnitDescriptor(String name, String configurationName, jakarta.persistence.spi.PersistenceUnitTransactionType transactionType, List<String> managedClassNames, Properties properties)
-
-
Method Details
-
validateAndReadFrom
public static QuarkusPersistenceUnitDescriptor validateAndReadFrom(org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor toClone) 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 clone- Returns:
- a new instance of LightPersistenceXmlDescriptor
- Throws:
UnsupportedOperationException- on unsupported configurations
-
getPersistenceUnitRootUrl
- Specified by:
getPersistenceUnitRootUrlin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getName
- Specified by:
getNamein interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getConfigurationName
-
getProviderClassName
- Specified by:
getProviderClassNamein interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
isUseQuotedIdentifiers
public boolean isUseQuotedIdentifiers()- Specified by:
isUseQuotedIdentifiersin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
isExcludeUnlistedClasses
public boolean isExcludeUnlistedClasses()- Specified by:
isExcludeUnlistedClassesin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getTransactionType
public jakarta.persistence.spi.PersistenceUnitTransactionType getTransactionType()- Specified by:
getTransactionTypein interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getValidationMode
public jakarta.persistence.ValidationMode getValidationMode()- Specified by:
getValidationModein interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getManagedClassNames
- Specified by:
getManagedClassNamesin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getMappingFileNames
- Specified by:
getMappingFileNamesin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getJarFileUrls
- Specified by:
getJarFileUrlsin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getNonJtaDataSource
- Specified by:
getNonJtaDataSourcein interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getJtaDataSource
- Specified by:
getJtaDataSourcein interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getProperties
- Specified by:
getPropertiesin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getClassLoader
- Specified by:
getClassLoaderin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getTempClassLoader
- Specified by:
getTempClassLoaderin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
pushClassTransformer
public void pushClassTransformer(org.hibernate.bytecode.enhance.spi.EnhancementContext enhancementContext) - Specified by:
pushClassTransformerin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
toString
-
getClassTransformer
public org.hibernate.bytecode.spi.ClassTransformer getClassTransformer()- Specified by:
getClassTransformerin interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-