Class PropertyMappingElementCollector
- java.lang.Object
-
- org.hibernate.boot.model.internal.PropertyMappingElementCollector
-
public final class PropertyMappingElementCollector extends Object
Reproduces what we used to do with aList<Element>inJPAXMLOverriddenAnnotationReader, with the following constraints:- Preserve type safety
- Only create lists if we actually have elements (most lists should be empty in most cases)
-
-
Field Summary
Fields Modifier and Type Field Description static Function<JaxbTransient,String>JAXB_TRANSIENT_NAMEstatic Function<PersistentAttribute,String>PERSISTENT_ATTRIBUTE_NAME
-
Constructor Summary
Constructors Constructor Description PropertyMappingElementCollector(String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectLifecycleCallbacksIfMatching(LifecycleCallbackContainer container)voidcollectPersistentAttributesIfMatching(AttributesContainer container)voidcollectTenantIdIfMatching(ManagedType managedType)List<JaxbBasic>getBasic()List<JaxbElementCollection>getElementCollection()List<JaxbEmbedded>getEmbedded()List<JaxbEmbeddedId>getEmbeddedId()List<JaxbId>getId()List<JaxbManyToMany>getManyToMany()List<JaxbManyToOne>getManyToOne()List<JaxbOneToMany>getOneToMany()List<JaxbOneToOne>getOneToOne()List<JaxbPostLoad>getPostLoad()List<JaxbPostPersist>getPostPersist()List<JaxbPostRemove>getPostRemove()List<JaxbPostUpdate>getPostUpdate()List<JaxbPrePersist>getPrePersist()List<JaxbPreRemove>getPreRemove()List<JaxbPreUpdate>getPreUpdate()List<JaxbTransient>getTransient()List<JaxbVersion>getVersion()booleanisEmpty()
-
-
-
Field Detail
-
PERSISTENT_ATTRIBUTE_NAME
public static final Function<PersistentAttribute,String> PERSISTENT_ATTRIBUTE_NAME
-
JAXB_TRANSIENT_NAME
public static final Function<JaxbTransient,String> JAXB_TRANSIENT_NAME
-
-
Constructor Detail
-
PropertyMappingElementCollector
public PropertyMappingElementCollector(String propertyName)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
collectPersistentAttributesIfMatching
public void collectPersistentAttributesIfMatching(AttributesContainer container)
-
collectLifecycleCallbacksIfMatching
public void collectLifecycleCallbacksIfMatching(LifecycleCallbackContainer container)
-
collectTenantIdIfMatching
public void collectTenantIdIfMatching(ManagedType managedType)
-
getEmbeddedId
public List<JaxbEmbeddedId> getEmbeddedId()
-
getVersion
public List<JaxbVersion> getVersion()
-
getManyToOne
public List<JaxbManyToOne> getManyToOne()
-
getOneToMany
public List<JaxbOneToMany> getOneToMany()
-
getOneToOne
public List<JaxbOneToOne> getOneToOne()
-
getManyToMany
public List<JaxbManyToMany> getManyToMany()
-
getElementCollection
public List<JaxbElementCollection> getElementCollection()
-
getEmbedded
public List<JaxbEmbedded> getEmbedded()
-
getTransient
public List<JaxbTransient> getTransient()
-
getPrePersist
public List<JaxbPrePersist> getPrePersist()
-
getPostPersist
public List<JaxbPostPersist> getPostPersist()
-
getPreRemove
public List<JaxbPreRemove> getPreRemove()
-
getPostRemove
public List<JaxbPostRemove> getPostRemove()
-
getPreUpdate
public List<JaxbPreUpdate> getPreUpdate()
-
getPostUpdate
public List<JaxbPostUpdate> getPostUpdate()
-
getPostLoad
public List<JaxbPostLoad> getPostLoad()
-
-