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 Details

    • 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 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 clone
      configurationName - 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 interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getName

      public String getName()
      Specified by:
      getName in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getConfigurationName

      public String getConfigurationName()
    • getProviderClassName

      public String getProviderClassName()
      Specified by:
      getProviderClassName in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • isUseQuotedIdentifiers

      public boolean isUseQuotedIdentifiers()
      Specified by:
      isUseQuotedIdentifiers in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • isExcludeUnlistedClasses

      public boolean isExcludeUnlistedClasses()
      Specified by:
      isExcludeUnlistedClasses in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getTransactionType

      public jakarta.persistence.spi.PersistenceUnitTransactionType getTransactionType()
      Specified by:
      getTransactionType in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getValidationMode

      public jakarta.persistence.ValidationMode getValidationMode()
      Specified by:
      getValidationMode in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getSharedCacheMode

      public jakarta.persistence.SharedCacheMode getSharedCacheMode()
      Specified by:
      getSharedCacheMode in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getManagedClassNames

      public List<String> getManagedClassNames()
      Specified by:
      getManagedClassNames in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getMappingFileNames

      public List<String> getMappingFileNames()
      Specified by:
      getMappingFileNames in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getJarFileUrls

      public List<URL> getJarFileUrls()
      Specified by:
      getJarFileUrls in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getNonJtaDataSource

      public Object getNonJtaDataSource()
      Specified by:
      getNonJtaDataSource in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getJtaDataSource

      public Object getJtaDataSource()
      Specified by:
      getJtaDataSource in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getProperties

      public Properties getProperties()
      Specified by:
      getProperties in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getClassLoader

      public ClassLoader getClassLoader()
      Specified by:
      getClassLoader in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • getTempClassLoader

      public ClassLoader getTempClassLoader()
      Specified by:
      getTempClassLoader in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • pushClassTransformer

      public void pushClassTransformer(org.hibernate.bytecode.enhance.spi.EnhancementContext enhancementContext)
      Specified by:
      pushClassTransformer in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getClassTransformer

      public org.hibernate.bytecode.spi.ClassTransformer getClassTransformer()
      Specified by:
      getClassTransformer in interface org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor