public abstract class

EntityModeToTuplizerMapping

extends Object
implements Serializable
java.lang.Object
   ↳ org.hibernate.tuple.EntityModeToTuplizerMapping
Known Direct Subclasses

Class Overview

Centralizes handling of EntityMode to Tuplizer mappings.

Summary

Public Constructors
EntityModeToTuplizerMapping()
EntityModeToTuplizerMapping(Map tuplizers)
Public Methods
Tuplizer getTuplizer(EntityMode entityMode)
Locate the tuplizer contained within this mapping which is responsible for the given entity-mode.
Tuplizer getTuplizerOrNull(EntityMode entityMode)
Locate the contained tuplizer responsible for the given entity-mode.
EntityMode guessEntityMode(Object object)
Given a supposed instance of an entity/component, guess its entity mode.
Iterator iterateTuplizers()
Allow iteration over all defined Tuplizers.
Protected Methods
void addTuplizer(EntityMode entityMode, Tuplizer tuplizer)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EntityModeToTuplizerMapping ()

public EntityModeToTuplizerMapping (Map tuplizers)

Public Methods

public Tuplizer getTuplizer (EntityMode entityMode)

Locate the tuplizer contained within this mapping which is responsible for the given entity-mode. If no such tuplizer is defined on this mapping, then an exception is thrown.

Parameters
entityMode The entity-mode for which the caller wants a tuplizer.
Returns
  • The tuplizer.
Throws
HibernateException Unable to locate the requested tuplizer.

public Tuplizer getTuplizerOrNull (EntityMode entityMode)

Locate the contained tuplizer responsible for the given entity-mode. If no such tuplizer is defined on this mapping, then return null.

Parameters
entityMode The entity-mode for which the caller wants a tuplizer.
Returns
  • The tuplizer, or null if not found.

public EntityMode guessEntityMode (Object object)

Given a supposed instance of an entity/component, guess its entity mode.

Parameters
object The supposed instance of the entity/component.
Returns
  • The guessed entity mode.

public Iterator iterateTuplizers ()

Allow iteration over all defined Tuplizers.

Returns
  • Iterator over defined tuplizers

Protected Methods

protected void addTuplizer (EntityMode entityMode, Tuplizer tuplizer)