planetj.html
Class HTMLComparisonInput

java.lang.Object
  |
  +--planetj.html.HTMLElement
        |
        +--planetj.html.HTMLComparisonInput

public class HTMLComparisonInput
extends HTMLElement

Generates HTML input for parameters in an SQLStatement


Field Summary
static String className
           
static String GENERATING_PARAMETER_INPUTS
          Variable set in the request while inputs are being generated.
static String OLD_SQL
           
 
Fields inherited from class planetj.html.HTMLElement
DISABLED
 
Method Summary
 void clearValues(SQLContext context, javax.servlet.http.HttpServletRequest request)
          Deprecated. This method affects all display parameters in the context - not just the ones that are part of a specific HTMLComparison
 String generateInput(SQLContext context, int expressionIndex, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Generates input fields for all parameters in the SQLStatement contained in the SQLContext.
static String getParameterId(SQLContext context, int parameterNumber)
          Gets the parameter id to use for the specified SQLContext, expression index and parameter number.
 void loadSQLParameterValues(SQLContext context, javax.servlet.http.HttpServletRequest request)
          Deprecated. Use HTMLParameterInput.loadParameterValues() instead
static HTMLComparisonInput singleton()
           
 
Methods inherited from class planetj.html.HTMLElement
appendAttribute, appendAttribute, appendExtractableHiddenField, getId, isDisplayField, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

public static final String className

OLD_SQL

public static final String OLD_SQL
See Also:
Constant Field Values

GENERATING_PARAMETER_INPUTS

public static final String GENERATING_PARAMETER_INPUTS
Variable set in the request while inputs are being generated. It is removed when finished.

See Also:
Constant Field Values
Method Detail

clearValues

public void clearValues(SQLContext context,
                        javax.servlet.http.HttpServletRequest request)
                 throws CMException
Deprecated. This method affects all display parameters in the context - not just the ones that are part of a specific HTMLComparison

Gets the values of SQL parameters out of the request and puts them in the context.

CMException

generateInput

public String generateInput(SQLContext context,
                            int expressionIndex,
                            javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws CMException
Generates input fields for all parameters in the SQLStatement contained in the SQLContext. The output is generated as rows in a table (the table tags are not generated)

CMException

getParameterId

public static String getParameterId(SQLContext context,
                                    int parameterNumber)
Gets the parameter id to use for the specified SQLContext, expression index and parameter number.


loadSQLParameterValues

public void loadSQLParameterValues(SQLContext context,
                                   javax.servlet.http.HttpServletRequest request)
                            throws CMException
Deprecated. Use HTMLParameterInput.loadParameterValues() instead

Gets the values of SQL parameters out of the request and puts them in the context.

CMException

singleton

public static HTMLComparisonInput singleton()