thinkmap.datasource.database
Class SwitchEntityResultMapping
java.lang.Object
thinkmap.datasource.database.SwitchEntityResultMapping
- All Implemented Interfaces:
- IEntityResultMapping
public class SwitchEntityResultMapping
- extends Object
- implements IEntityResultMapping
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwitchEntityResultMapping
public SwitchEntityResultMapping()
setSwitchBinding
public void setSwitchBinding(Binding switchBinding)
createCaseMapping
public SwitchEntityResultMapping.SwitchCase createCaseMapping()
addCaseMapping
public void addCaseMapping(SwitchEntityResultMapping.SwitchCase switchCase)
addCaseMapping
public void addCaseMapping(String theCase,
IEntityResultMapping mapping)
outputEntity
public void outputEntity(IEntityHandler callback,
Message message,
SourceEntity entity,
EntityId id,
Object context)
throws BindingException
- Description copied from interface:
IEntityResultMapping
- Output entities to an IEntityHandler
- Specified by:
outputEntity in interface IEntityResultMapping
- Parameters:
callback - the IEntityHandler that will receive entitiesmessage - the incoming messageentity - the entity being bound (may be null)id - the id of the entity being boundcontext - context object; datasource-specific
- Throws:
BindingException
Copyright © 2013 Thinkmap, Inc. All Rights Reserved.