org.apache.synapse.mediators.db
Class Statement

java.lang.Object
  extended by org.apache.synapse.mediators.db.Statement

public class Statement
extends Object

Encapsulates an SQL statement, one or more parameters for it and optionally some information about results that one would like to read.


Nested Class Summary
static class Statement.Parameter
           
 
Constructor Summary
Statement(String rawStatement)
           
 
Method Summary
 void addParameter(String propertyName, SynapseXPath xpath, String type)
           
 void addResult(String propertyName, String column)
           
 List<Statement.Parameter> getParameters()
           
 String getRawStatement()
           
 Map<String,String> getResultsMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statement

public Statement(String rawStatement)
Method Detail

getRawStatement

public String getRawStatement()

addParameter

public void addParameter(String propertyName,
                         SynapseXPath xpath,
                         String type)

addResult

public void addResult(String propertyName,
                      String column)

getParameters

public List<Statement.Parameter> getParameters()

getResultsMap

public Map<String,String> getResultsMap()


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.