org.hibernate.tuple
Class EntityModeToTuplizerMapping
java.lang.Object
org.hibernate.tuple.EntityModeToTuplizerMapping
- Serializable
public abstract class EntityModeToTuplizerMapping
extends java.lang.Object
implements Serializable
EntityModeToTuplizerMapping
public EntityModeToTuplizerMapping()
EntityModeToTuplizerMapping
public EntityModeToTuplizerMapping(Map tuplizers)
getTuplizer
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.
entityMode
- The entity-mode for which the caller wants a tuplizer.
getTuplizerOrNull
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.
entityMode
- The entity-mode for which the caller wants a tuplizer.
- The tuplizer, or null if not found.
guessEntityMode
public EntityMode guessEntityMode(Object object)
Given a supposed instance of an entity/component, guess its entity mode.
object
- The supposed instance of the entity/component.