public abstract class EntityModeToTuplizerMapping extends Object implements Serializable
EntityMode
to Tuplizer
mappings.Constructor and Description |
---|
EntityModeToTuplizerMapping() |
EntityModeToTuplizerMapping(Map tuplizers) |
Modifier and Type | Method and Description |
---|---|
protected void |
addTuplizer(EntityMode entityMode,
Tuplizer tuplizer) |
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 . |
public EntityModeToTuplizerMapping()
public EntityModeToTuplizerMapping(Map tuplizers)
protected void addTuplizer(EntityMode entityMode, Tuplizer tuplizer)
public Iterator iterateTuplizers()
Tuplizers
.public EntityMode guessEntityMode(Object object)
object
- The supposed instance of the entity/component.public Tuplizer getTuplizerOrNull(EntityMode entityMode)
entityMode
- The entity-mode for which the caller wants a tuplizer.public Tuplizer getTuplizer(EntityMode entityMode)
entityMode
- The entity-mode for which the caller wants a tuplizer.HibernateException
- Unable to locate the requested tuplizer.Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved