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_NAME
static 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 void
collectLifecycleCallbacksIfMatching(LifecycleCallbackContainer container)
void
collectPersistentAttributesIfMatching(AttributesContainer container)
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()
boolean
isEmpty()
-
-
-
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)
-
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()
-
-