com.vaadin.data.util.sqlcontainer.query.generator
Class StatementHelper

java.lang.Object
  extended by com.vaadin.data.util.sqlcontainer.query.generator.StatementHelper
All Implemented Interfaces:
Serializable

public class StatementHelper
extends Object
implements Serializable

StatementHelper is a simple helper class that assists TableQuery and the query generators in filling a PreparedStatement. The actual statement is generated by the query generator methods, but the resulting statement and all the parameter values are stored in an instance of StatementHelper. This class will also fill the values with correct setters into the PreparedStatement on request.

See Also:
Serialized Form

Constructor Summary
StatementHelper()
           
 
Method Summary
 void addParameterValue(Object parameter)
           
 void addParameterValue(Object parameter, Class<?> type)
           
 String getQueryString()
           
 void setParameterValuesToStatement(PreparedStatement pstmt)
           
 void setQueryString(String queryString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementHelper

public StatementHelper()
Method Detail

setQueryString

public void setQueryString(String queryString)

getQueryString

public String getQueryString()

addParameterValue

public void addParameterValue(Object parameter)

addParameterValue

public void addParameterValue(Object parameter,
                              Class<?> type)

setParameterValuesToStatement

public void setParameterValuesToStatement(PreparedStatement pstmt)
                                   throws SQLException
Throws:
SQLException


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.