org.mule.module.db.internal.result.statement
Class EagerStatementResultHandler

java.lang.Object
  extended by org.mule.module.db.internal.result.statement.AbstractMapStatementResultHandler
      extended by org.mule.module.db.internal.result.statement.EagerStatementResultHandler
All Implemented Interfaces:
StatementResultHandler

public class EagerStatementResultHandler
extends AbstractMapStatementResultHandler

Processes Statement results and then closes the statement.


Constructor Summary
EagerStatementResultHandler(ResultSetHandler resultSetHandler)
           
 
Method Summary
protected  Map<String,Object> createResultMap()
           
 Object processStatement(DbConnection connection, Statement statement, QueryTemplate queryTemplate, AutoGeneratedKeyStrategy autoGeneratedKeyStrategy)
          Processes the results from a statement execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EagerStatementResultHandler

public EagerStatementResultHandler(ResultSetHandler resultSetHandler)
Method Detail

processStatement

public Object processStatement(DbConnection connection,
                               Statement statement,
                               QueryTemplate queryTemplate,
                               AutoGeneratedKeyStrategy autoGeneratedKeyStrategy)
                        throws SQLException
Description copied from interface: StatementResultHandler
Processes the results from a statement execution

Specified by:
processStatement in interface StatementResultHandler
Overrides:
processStatement in class AbstractMapStatementResultHandler
Parameters:
connection - connection used to execute the statement. Non null
statement - executed statement. Non null
queryTemplate - executed query template. Non null
autoGeneratedKeyStrategy - strategy used to process auto generated keys. Non null
Returns:
a non null the results of the statement execution
Throws:
SQLException

createResultMap

protected Map<String,Object> createResultMap()
Specified by:
createResultMap in class AbstractMapStatementResultHandler


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.