View Javadoc

1   /*
2    * $Id: SqlStatementStrategy.java 20319 2010-11-24 14:53:41Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.transport.jdbc.sqlstrategy;
12  
13  /**
14   * Interface for classes implementing strategies for handling SQL statements.
15   *
16  * @see DefaultSqlStatementStrategyFactory
17   */
18  
19  import org.mule.api.MuleEvent;
20  import org.mule.api.MuleMessage;
21  import org.mule.api.endpoint.ImmutableEndpoint;
22  import org.mule.transport.jdbc.JdbcConnector;
23  
24  public interface SqlStatementStrategy 
25  {
26      
27      public MuleMessage executeStatement(JdbcConnector connector,
28                                           ImmutableEndpoint endpoint,
29                                           MuleEvent event,
30                                           long timeout) throws Exception;
31      
32  }