Interface PersistentPropertiesSource
public interface PersistentPropertiesSource
A source of data on persistent properties of a class or component.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PersistentPropertiesSourceforClass(org.hibernate.mapping.PersistentClass persistentClass, org.hibernate.models.spi.ClassDetails classDetails) Get a persistent properties source for a persistent class.static PersistentPropertiesSourceforComponent(EnversMetadataBuildingContext context, org.hibernate.mapping.Component component) static PersistentPropertiesSourceforComponent(EnversMetadataBuildingContext context, org.hibernate.mapping.Component component, boolean dynamic) Get a persistent properties source for a component that needs its class resolved.static PersistentPropertiesSourceforComponent(org.hibernate.mapping.Component component, org.hibernate.models.spi.ClassDetails classDetails, boolean dynamic) Get a persistent properties source for a component with its class already resolved.org.hibernate.models.spi.ClassDetailsorg.hibernate.mapping.PropertygetProperty(String propertyName) Iterator<org.hibernate.mapping.Property>booleanboolean
-
Method Details
-
getPropertyIterator
Iterator<org.hibernate.mapping.Property> getPropertyIterator() -
getProperty
-
getClassDetails
org.hibernate.models.spi.ClassDetails getClassDetails() -
isDynamicComponent
boolean isDynamicComponent() -
hasCompositeUserType
boolean hasCompositeUserType() -
forClass
static PersistentPropertiesSource forClass(org.hibernate.mapping.PersistentClass persistentClass, org.hibernate.models.spi.ClassDetails classDetails) Get a persistent properties source for a persistent class.- Parameters:
persistentClass- the persistent classclassDetails- the class details- Returns:
- the properties source
-
forComponent
static PersistentPropertiesSource forComponent(EnversMetadataBuildingContext context, org.hibernate.mapping.Component component, boolean dynamic) Get a persistent properties source for a component that needs its class resolved.- Parameters:
context- the metadata building contextcomponent- the componentdynamic- whether the component is dynamic or not- Returns:
- the properties source
-
forComponent
static PersistentPropertiesSource forComponent(EnversMetadataBuildingContext context, org.hibernate.mapping.Component component) -
forComponent
static PersistentPropertiesSource forComponent(org.hibernate.mapping.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 componentclassDetails- the class detailsdynamic- whether the component is dynamic or not- Returns:
- the properties source
-