Top Description Fields Constructors Methods
org.hibernate.boot.model.source.spi

public Class ToolingHintContext

extends Object
Class Inheritance
Imports
java.util.Collection, .Map, java.util.concurrent.ConcurrentHashMap, .ConcurrentMap, org.hibernate.mapping.MetaAttribute

Represents a collection of "tooling hints" (<meta/> mapping info) keyed by a name.

NOTE : historically these were called "meta attributes", but as these are values used solely by external tooling it was decided to begin calling them tooling hints. For temporary backwards compatibility (temporary until we move away from o.h.mapping model) you will see mixed usage.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final ConcurrentMap<String, ToolingHint>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(ToolingHint toolingHint)

public Iterable<String>
public Map<String, MetaAttribute>

Returns:

The underlying Map
getMetaAttributeMap
()

The org.hibernate.mapping package accepts these as a Map, so for now expose the underlying Map.

public ToolingHint
public Collection<ToolingHint>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

toolingHintMapback to summary
private final ConcurrentMap<String, ToolingHint> toolingHintMap

Constructor Detail

ToolingHintContextback to summary
public ToolingHintContext(ToolingHintContext baseline)

Method Detail

addback to summary
public void add(ToolingHint toolingHint)
getKeysback to summary
public Iterable<String> getKeys()
getMetaAttributeMapback to summary
public Map<String, MetaAttribute> getMetaAttributeMap()

The org.hibernate.mapping package accepts these as a Map, so for now expose the underlying Map. But we unfortunately need to collect a Map...

Returns:Map<String, MetaAttribute>

The underlying Map

getToolingHintback to summary
public ToolingHint getToolingHint(String key)
getToolingHintsback to summary
public Collection<ToolingHint> getToolingHints()