Interface PersistentPropertiesSource


public interface PersistentPropertiesSource
A source of data on persistent properties of a class or component.
  • Method Details

    • getPropertyIterator

      Iterator<Property> getPropertyIterator()
    • getProperty

      Property getProperty(String propertyName)
    • getClassDetails

      org.hibernate.models.spi.ClassDetails getClassDetails()
    • isDynamicComponent

      boolean isDynamicComponent()
    • hasCompositeUserType

      boolean hasCompositeUserType()
    • forClass

      static PersistentPropertiesSource forClass(PersistentClass persistentClass, org.hibernate.models.spi.ClassDetails classDetails)
      Get a persistent properties source for a persistent class.
      Parameters:
      persistentClass - the persistent class
      classDetails - the class details
      Returns:
      the properties source
    • forComponent

      static PersistentPropertiesSource forComponent(EnversMetadataBuildingContext context, Component component, boolean dynamic)
      Get a persistent properties source for a component that needs its class resolved.
      Parameters:
      context - the metadata building context
      component - the component
      dynamic - whether the component is dynamic or not
      Returns:
      the properties source
    • forComponent

      static PersistentPropertiesSource forComponent(EnversMetadataBuildingContext context, Component component)
    • forComponent

      static PersistentPropertiesSource forComponent(Component component, org.hibernate.models.spi.ClassDetails classDetails, boolean dynamic)
      Get a persistent properties source for a component with its class already resolved.
      Parameters:
      component - the component
      classDetails - the class details
      dynamic - whether the component is dynamic or not
      Returns:
      the properties source