Top Inners Fields Constructors Methods
org.hibernate.metamodel.mapping.internal

public Class MappingModelCreationProcess

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .List, .Map, java.util.function.Consumer, org.hibernate.metamodel.mapping.ForeignKeyDescriptor, .ModelPart, .NonTransientException, org.hibernate.metamodel.model.domain.NavigableRole, org.hibernate.metamodel.model.domain.internal.EntityPersisterConcurrentMap, org.hibernate.metamodel.spi.RuntimeModelCreationContext, org.hibernate.persister.entity.EntityPersister, org.hibernate.query.sqm.function.SqmFunctionRegistry

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
private static class
public static interface
MappingModelCreationProcess.SubPartMappingProducer<T>

Explicitly defined to better control (for now) the args

Field Summary

Modifier and TypeField and Description
private final RuntimeModelCreationContext
creationContext

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.
private String
private final EntityPersisterConcurrentMap
private final String
private final Map<NavigableRole, ForeignKeyDescriptor>
private final Map<NavigableRole, List<Consumer<ForeignKeyDescriptor>>>
private List<MappingModelCreationProcess.PostInitCallbackEntry>

Constructor Summary

AccessConstructor and Description
private
MappingModelCreationProcess(EntityPersisterConcurrentMap entityPersisterMap, RuntimeModelCreationContext creationContext)

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.

Method Summary

Modifier and TypeMethod and Description
private void
execute()

Instance-level trigger for process

private void
public RuntimeModelCreationContext
getCreationContext()

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.
public EntityPersister
public SqmFunctionRegistry
public static void
process(EntityPersisterConcurrentMap entityPersisterMap, RuntimeModelCreationContext creationContext)

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.
Triggers creation of the mapping model
public <T extends ModelPart> T
public void
public void
public void
public void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

creationContextback to summary
private final RuntimeModelCreationContext creationContext

Deprecated

as a consequence of RuntimeModelCreationContext being deprecated. See corresponding docs for further information.

currentlyProcessingRoleback to summary
private String currentlyProcessingRole
entityPersisterMapback to summary
private final EntityPersisterConcurrentMap entityPersisterMap
EOLback to summary
private final String EOL
keyDescriptorMapback to summary
private final Map<NavigableRole, ForeignKeyDescriptor> keyDescriptorMap
keyDescriptorWaitingConsumerMapback to summary
private final Map<NavigableRole, List<Consumer<ForeignKeyDescriptor>>> keyDescriptorWaitingConsumerMap
postInitCallbacksback to summary
private List<MappingModelCreationProcess.PostInitCallbackEntry> postInitCallbacks

Constructor Detail

MappingModelCreationProcessback to summary
private MappingModelCreationProcess(EntityPersisterConcurrentMap entityPersisterMap, RuntimeModelCreationContext creationContext)

Deprecated

as a consequence of RuntimeModelCreationContext being deprecated. See corresponding docs for further information.

Method Detail

executeback to summary
private void execute()

Instance-level trigger for process

executePostInitCallbacksback to summary
private void executePostInitCallbacks()
getCreationContextback to summary
public RuntimeModelCreationContext getCreationContext()

Deprecated

as a consequence of RuntimeModelCreationContext being deprecated. See corresponding docs for further information.

getEntityPersisterback to summary
public EntityPersister getEntityPersister(String name)
getSqmFunctionRegistryback to summary
public SqmFunctionRegistry getSqmFunctionRegistry()
processback to summary
public static void process(EntityPersisterConcurrentMap entityPersisterMap, RuntimeModelCreationContext creationContext)

Deprecated

as a consequence of RuntimeModelCreationContext being deprecated. See corresponding docs for further information.

Triggers creation of the mapping model

processSubPartback to summary
public <T extends ModelPart> T processSubPart(String localName, MappingModelCreationProcess.SubPartMappingProducer<T> subPartMappingProducer)
registerForeignKeyback to summary
public void registerForeignKey(ModelPart keyOwner, ForeignKeyDescriptor keyDescriptor)
registerForeignKeyPostInitCallbacksback to summary
public void registerForeignKeyPostInitCallbacks(String description, MappingModelCreationProcess.PostInitCallback callback)
registerInitializationCallbackback to summary
public void registerInitializationCallback(String description, MappingModelCreationProcess.PostInitCallback callback)
withForeignKeyback to summary
public void withForeignKey(ModelPart keyOwner, Consumer<ForeignKeyDescriptor> consumer)
withForeignKeyback to summary
private void withForeignKey(NavigableRole navigableRole, Consumer<ForeignKeyDescriptor> consumer)
org.hibernate.metamodel.mapping.internal back to summary

public Interface MappingModelCreationProcess.PostInitCallback

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public boolean

Method Detail

processback to summary
public boolean process()
org.hibernate.metamodel.mapping.internal back to summary

private Class MappingModelCreationProcess.PostInitCallbackEntry

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.metamodel.mapping.internal.MappingModelCreationProcess.PostInitCallbackEntry

Field Summary

Modifier and TypeField and Description
private final MappingModelCreationProcess.PostInitCallback
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

callbackback to summary
private final MappingModelCreationProcess.PostInitCallback callback
descriptionback to summary
private final String description

Constructor Detail

PostInitCallbackEntryback to summary
public PostInitCallbackEntry(String description, MappingModelCreationProcess.PostInitCallback callback)

Method Detail

processback to summary
private boolean process()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.hibernate.metamodel.mapping.internal back to summary

public Interface MappingModelCreationProcess.SubPartMappingProducer<T>

Annotations
@FunctionalInterface

Explicitly defined to better control (for now) the args

Method Summary

Modifier and TypeMethod and Description
public T

Method Detail

produceSubMappingback to summary
public T produceSubMapping(String role, MappingModelCreationProcess creationProcess)