|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.connector.basic.BasicExecution
com.metamatrix.connector.text.TextSynchExecution
public class TextSynchExecution
The essential part that executes the query. It keeps all the execution states.
Constructor Summary | |
---|---|
TextSynchExecution(IQuery query,
Connection txtConn,
RuntimeMetadata metadata)
Constructor. |
Method Summary | |
---|---|
void |
cancel()
Cancels the execution abnormally. |
void |
close()
Terminates the execution normally. |
void |
execute()
Execute the associated command. |
java.util.List |
next()
|
protected java.lang.Object |
submitRequest(java.lang.Object req)
Submit request and get back the metadata necessary for accessing the text file. |
protected java.lang.Object |
translateRequest(ICommand request)
Translate command. |
protected void |
translateResults(java.lang.Object response,
ICommand cmd)
Translate results. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextSynchExecution(IQuery query, Connection txtConn, RuntimeMetadata metadata)
cmd
- txtConn
- Method Detail |
---|
public void execute() throws ConnectorException
Execution
execute
in interface Execution
ConnectorException
public java.util.List next() throws ConnectorException, DataNotAvailableException
next
in interface ResultSetExecution
ConnectorException
DataNotAvailableException
public void close()
Execution
close
in interface Execution
public void cancel()
Execution
cancel
in interface Execution
protected java.lang.Object translateRequest(ICommand request) throws ConnectorException
request
- ICommand as request
ConnectorException
- if error occursprotected java.lang.Object submitRequest(java.lang.Object req)
req
-
protected void translateResults(java.lang.Object response, ICommand cmd) throws ConnectorException, ConnectorException
response
- cmd
-
ConnectorException
ConnectorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |