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

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

public abstract class AbstractMapStatementResultHandler
extends Object
implements StatementResultHandler

Processes Statement results creating a map containing them.


Constructor Summary
AbstractMapStatementResultHandler(ResultSetHandler resultSetHandler)
           
 
Method Summary
protected abstract  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

AbstractMapStatementResultHandler

public AbstractMapStatementResultHandler(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
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 abstract Map<String,Object> createResultMap()


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