Top Description Fields Constructors Methods
org.hibernate.boot.model.internal

public final Class PropertyMappingElementCollector

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, java.util.function.Function, org.hibernate.boot.jaxb.mapping.AttributesContainer, .JaxbAttributes, .JaxbBasic, .JaxbElementCollection, .JaxbEmbedded, .JaxbEmbeddedId, .JaxbEntity, .JaxbId, .JaxbManyToMany, .JaxbManyToOne, .JaxbOneToMany, .JaxbOneToOne, .JaxbPostLoad, .JaxbPostPersist, .JaxbPostRemove, .JaxbPostUpdate, .JaxbPrePersist, .JaxbPreRemove, .JaxbPreUpdate, .JaxbTenantId, .JaxbTransient, .JaxbVersion, .LifecycleCallback, .LifecycleCallbackContainer, .ManagedType, .PersistentAttribute

Reproduces what we used to do with a List<Element> in JPAXMLOverriddenAnnotationReader, with the following constraints:

Field Summary

Modifier and TypeField and Description
private List<JaxbTransient>
private List<JaxbBasic>
private List<JaxbElementCollection>
private List<JaxbEmbedded>
private List<JaxbEmbeddedId>
private List<JaxbId>
public static final Function<JaxbTransient, String>
pack-priv static final Function<LifecycleCallback, String>
private List<JaxbManyToMany>
private List<JaxbManyToOne>
private List<JaxbOneToMany>
private List<JaxbOneToOne>
public static final Function<PersistentAttribute, String>
private List<JaxbPostLoad>
private List<JaxbPostPersist>
private List<JaxbPostRemove>
private List<JaxbPostUpdate>
private List<JaxbPrePersist>
private List<JaxbPreRemove>
private List<JaxbPreUpdate>
private final String
private List<JaxbVersion>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
allNullOrEmpty(List<?>... lists)

private <T> List<T>
collectIfMatching(List<T> collected, List<T> candidates, Function<? super T, String> nameGetter)

private <T> List<T>
collectIfMatching(List<T> collected, T candidate, Function<? super T, String> nameGetter)

public void
public void
public void
private <T> List<T>
public List<JaxbBasic>
public List<JaxbElementCollection>
public List<JaxbEmbedded>
public List<JaxbEmbeddedId>
public List<JaxbId>
public List<JaxbManyToMany>
public List<JaxbManyToOne>
public List<JaxbOneToMany>
public List<JaxbOneToOne>
public List<JaxbPostLoad>
public List<JaxbPostPersist>
public List<JaxbPostRemove>
public List<JaxbPostUpdate>
public List<JaxbPrePersist>
public List<JaxbPreRemove>
public List<JaxbPreUpdate>
public List<JaxbTransient>
public List<JaxbVersion>
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_transientback to summary
private List<JaxbTransient> _transient
basicback to summary
private List<JaxbBasic> basic
elementCollectionback to summary
private List<JaxbElementCollection> elementCollection
embeddedback to summary
private List<JaxbEmbedded> embedded
embeddedIdback to summary
private List<JaxbEmbeddedId> embeddedId
idback to summary
private List<JaxbId> id
JAXB_TRANSIENT_NAMEback to summary
public static final Function<JaxbTransient, String> JAXB_TRANSIENT_NAME
LIFECYCLE_CALLBACK_NAMEback to summary
pack-priv static final Function<LifecycleCallback, String> LIFECYCLE_CALLBACK_NAME
manyToManyback to summary
private List<JaxbManyToMany> manyToMany
manyToOneback to summary
private List<JaxbManyToOne> manyToOne
oneToManyback to summary
private List<JaxbOneToMany> oneToMany
oneToOneback to summary
private List<JaxbOneToOne> oneToOne
PERSISTENT_ATTRIBUTE_NAMEback to summary
public static final Function<PersistentAttribute, String> PERSISTENT_ATTRIBUTE_NAME
postLoadback to summary
private List<JaxbPostLoad> postLoad
postPersistback to summary
private List<JaxbPostPersist> postPersist
postRemoveback to summary
private List<JaxbPostRemove> postRemove
postUpdateback to summary
private List<JaxbPostUpdate> postUpdate
prePersistback to summary
private List<JaxbPrePersist> prePersist
preRemoveback to summary
private List<JaxbPreRemove> preRemove
preUpdateback to summary
private List<JaxbPreUpdate> preUpdate
propertyNameback to summary
private final String propertyName
versionback to summary
private List<JaxbVersion> version

Constructor Detail

PropertyMappingElementCollectorback to summary
public PropertyMappingElementCollector(String propertyName)

Method Detail

allNullOrEmptyback to summary
private boolean allNullOrEmpty(List<?>... lists)
collectIfMatchingback to summary
private <T> List<T> collectIfMatching(List<T> collected, List<T> candidates, Function<? super T, String> nameGetter)
collectIfMatchingback to summary
private <T> List<T> collectIfMatching(List<T> collected, T candidate, Function<? super T, String> nameGetter)
collectLifecycleCallbacksIfMatchingback to summary
public void collectLifecycleCallbacksIfMatching(LifecycleCallbackContainer container)
collectPersistentAttributesIfMatchingback to summary
public void collectPersistentAttributesIfMatching(AttributesContainer container)
collectTenantIdIfMatchingback to summary
public void collectTenantIdIfMatching(ManagedType managedType)
defaultToEmptyback to summary
private <T> List<T> defaultToEmpty(List<T> list)
getBasicback to summary
public List<JaxbBasic> getBasic()
getElementCollectionback to summary
public List<JaxbElementCollection> getElementCollection()
getEmbeddedback to summary
public List<JaxbEmbedded> getEmbedded()
getEmbeddedIdback to summary
public List<JaxbEmbeddedId> getEmbeddedId()
getIdback to summary
public List<JaxbId> getId()
getManyToManyback to summary
public List<JaxbManyToMany> getManyToMany()
getManyToOneback to summary
public List<JaxbManyToOne> getManyToOne()
getOneToManyback to summary
public List<JaxbOneToMany> getOneToMany()
getOneToOneback to summary
public List<JaxbOneToOne> getOneToOne()
getPostLoadback to summary
public List<JaxbPostLoad> getPostLoad()
getPostPersistback to summary
public List<JaxbPostPersist> getPostPersist()
getPostRemoveback to summary
public List<JaxbPostRemove> getPostRemove()
getPostUpdateback to summary
public List<JaxbPostUpdate> getPostUpdate()
getPrePersistback to summary
public List<JaxbPrePersist> getPrePersist()
getPreRemoveback to summary
public List<JaxbPreRemove> getPreRemove()
getPreUpdateback to summary
public List<JaxbPreUpdate> getPreUpdate()
getTransientback to summary
public List<JaxbTransient> getTransient()
getVersionback to summary
public List<JaxbVersion> getVersion()
isEmptyback to summary
public boolean isEmpty()