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, QuarkusPersistenceUnitProviderHelper providerHelper, jakarta.persistence.PersistenceUnitTransactionType persistenceUnitTransactionType, List<String> managedClassNames, Properties properties, boolean reactive) QuarkusPersistenceUnitDescriptor(String name, QuarkusPersistenceUnitProviderHelper providerHelper, String providerClassName, boolean useQuotedIdentifiers, jakarta.persistence.PersistenceUnitTransactionType persistenceUnitTransactionType, jakarta.persistence.ValidationMode validationMode, jakarta.persistence.SharedCacheMode sharedCacheMode, List<String> managedClassNames, Properties properties, boolean reactive) 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.PersistenceUnitTransactionTypejakarta.persistence.SharedCacheModejakarta.persistence.spi.PersistenceUnitTransactionTypeDeprecated.jakarta.persistence.ValidationModebooleanbooleanbooleanvoidpushClassTransformer(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, QuarkusPersistenceUnitProviderHelper providerHelper, jakarta.persistence.PersistenceUnitTransactionType persistenceUnitTransactionType, List<String> managedClassNames, Properties properties, boolean reactive)
-
-
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
-
getProviderHelper
-
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
-
getPersistenceUnitTransactionType
public jakarta.persistence.PersistenceUnitTransactionType getPersistenceUnitTransactionType()- Specified by:
getPersistenceUnitTransactionTypein interfaceorg.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
-
getTransactionType
Deprecated.- 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
-
isReactive
public boolean isReactive() -
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
-