Class ToolingHintContext
- java.lang.Object
-
- org.hibernate.boot.model.source.spi.ToolingHintContext
-
public class ToolingHintContext extends Object
Represents a collection of "tooling hints" (<meta/>
mapping info) keyed by a name.- API 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.
-
-
Constructor Summary
Constructors Constructor Description ToolingHintContext(ToolingHintContext baseline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ToolingHint toolingHint)
Iterable<String>
getKeys()
Map<String,MetaAttribute>
getMetaAttributeMap()
Theorg.hibernate.mapping
package accepts these as a Map, so for now expose the underlying Map.ToolingHint
getToolingHint(String key)
Collection<ToolingHint>
getToolingHints()
-
-
-
Constructor Detail
-
ToolingHintContext
public ToolingHintContext(ToolingHintContext baseline)
-
-
Method Detail
-
getToolingHints
public Collection<ToolingHint> getToolingHints()
-
getToolingHint
public ToolingHint getToolingHint(String key)
-
add
public void add(ToolingHint toolingHint)
-
getMetaAttributeMap
public Map<String,MetaAttribute> getMetaAttributeMap()
Theorg.hibernate.mapping
package accepts these as a Map, so for now expose the underlying Map. But we unfortunately need to collect a Map...- Returns:
- The underlying Map
-
-