Advertisement
Guest User

Untitled

a guest
Feb 19th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.59 KB | None | 0 0
  1. package org.jboss.teiid.connectors;
  2.  
  3. import org.jboss.teiid.connector.helloworld.HelloWorldConnection;
  4. import org.jboss.teiid.connector.helloworld.HelloWorldManagedConnectionFactory;
  5. import org.teiid.language.QueryExpression;
  6. import org.teiid.metadata.RuntimeMetadata;
  7. import org.teiid.translator.ExecutionContext;
  8. import org.teiid.translator.ExecutionFactory;
  9. import org.teiid.translator.ResultSetExecution;
  10. import org.teiid.translator.Translator;
  11. import org.teiid.translator.TranslatorException;
  12.  
  13.  
  14. @Translator(name="HelloWorld", description="Helloworld translator")
  15. public class HelloWorldExecutionFactory extends ExecutionFactory<HelloWorldManagedConnectionFactory, HelloWorldConnection> {
  16.     public HelloWorldExecutionFactory() {
  17.     }
  18.  
  19.     @Override
  20.     public void start() throws TranslatorException {
  21.         super.start();
  22.     }
  23.    
  24.     @Override
  25.     public ResultSetExecution createResultSetExecution(QueryExpression command,
  26.             ExecutionContext executionContext, RuntimeMetadata metadata,
  27.             HelloWorldConnection connection) throws TranslatorException {
  28.         return super.createResultSetExecution(command, executionContext, metadata,
  29.                 connection);
  30.     }
  31.    
  32.     @Override
  33.     public HelloWorldConnection getConnection(
  34.             HelloWorldManagedConnectionFactory factory,
  35.             ExecutionContext executionContext) throws TranslatorException {
  36.         return super.getConnection(factory, executionContext);
  37.     }
  38.    
  39.     @Override
  40.     public void closeConnection(HelloWorldConnection connection,
  41.             HelloWorldManagedConnectionFactory factory) {
  42.         // TODO Auto-generated method stub
  43.         super.closeConnection(connection, factory);
  44.     }
  45.    
  46.    
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement