com.metamatrix.connector.metadata.adapter
Class ObjectSynchExecution

java.lang.Object
  extended by org.teiid.connector.basic.BasicExecution
      extended by com.metamatrix.connector.metadata.adapter.ObjectSynchExecution
All Implemented Interfaces:
Execution, ResultSetExecution

public class ObjectSynchExecution
extends BasicExecution
implements ResultSetExecution

Adapter to expose the object processing logic via the standard connector API. Makes the batches coming from the objectSource match the batch sizes requested by the caller.


Constructor Summary
ObjectSynchExecution(IQuery command, RuntimeMetadata metadata, ObjectConnection connection)
           
 
Method Summary
 void cancel()
           
 void close()
           
 void execute()
           
 java.util.List next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSynchExecution

public ObjectSynchExecution(IQuery command,
                            RuntimeMetadata metadata,
                            ObjectConnection connection)
Method Detail

execute

public void execute()
             throws ConnectorException
Specified by:
execute in interface Execution
Throws:
ConnectorException

next

public java.util.List next()
                    throws ConnectorException,
                           DataNotAvailableException
Specified by:
next in interface ResultSetExecution
Throws:
ConnectorException
DataNotAvailableException

cancel

public void cancel()
            throws ConnectorException
Specified by:
cancel in interface Execution
Throws:
ConnectorException

close

public void close()
           throws ConnectorException
Specified by:
close in interface Execution
Throws:
ConnectorException


Copyright © 2009. All Rights Reserved.