thinkmap.datasource.database
Class SwitchEntityResultMapping

java.lang.Object
  extended by thinkmap.datasource.database.SwitchEntityResultMapping
All Implemented Interfaces:
IEntityResultMapping

public class SwitchEntityResultMapping
extends Object
implements IEntityResultMapping


Nested Class Summary
static class SwitchEntityResultMapping.SwitchCase
           
 
Constructor Summary
SwitchEntityResultMapping()
           
 
Method Summary
 void addCaseMapping(String theCase, IEntityResultMapping mapping)
           
 void addCaseMapping(SwitchEntityResultMapping.SwitchCase switchCase)
           
 SwitchEntityResultMapping.SwitchCase createCaseMapping()
           
 void outputEntity(IEntityHandler callback, Message message, SourceEntity entity, EntityId id, Object context)
          Output entities to an IEntityHandler
 void setSwitchBinding(Binding switchBinding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchEntityResultMapping

public SwitchEntityResultMapping()
Method Detail

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 entities
message - the incoming message
entity - the entity being bound (may be null)
id - the id of the entity being bound
context - context object; datasource-specific
Throws:
BindingException


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.