planetj.magic
Class SQLParameterRequest
java.lang.Object
planetj.magic.AbstractMagicRequest
planetj.magic.MagicRequest
planetj.magic.AbstractParameterRequest
planetj.magic.SQLParameterRequest
- All Implemented Interfaces:
- IFeature, IMagicRequest, java.io.Serializable
- public class SQLParameterRequest
- extends AbstractParameterRequest
- See Also:
- Serialized Form
Fields inherited from interface planetj.magic.IMagicRequest |
IS_COMPLETE, MAGIC_REQUEST, MAGIC_REQUEST_CLASS, MAGIC_REQUEST_PARAM1, MAGIC_REQUEST_RC, SAME_URI, TYPE, TYPE_PAGE, TYPE_SESSION, TYPE_STATIC, USER_REQUEST_ATTRIBUTES_STORED |
Methods inherited from class planetj.magic.AbstractMagicRequest |
addLinkedRequestAfter, addLinkedRequestBefore, appendUnsupportedHTMLMessage, changeMode, clone, clone, equals, executeAll, getAnchorName, getBaseField, getBaseRow, getBaseRowCollection, getCurrentURI, getDefaultEndNavigationGroup, getFailMessage, getFirstRequest, getId, getKey, getLastRequest, getMagicRequestParameter, getMagicServletURI, getMagicURI, getNextURI, getPleaseWaitJSP, getRequestAttribute, getRequestParameter, getRequestParameterValues, getSessionAttribute, getSharedSessionAttribute, getSuccessMessage, hasLinkedRequestsAfter, hasLinkedRequestsBefore, isApplicable, isCompleted, isEndNavigationGroup, isLoadParameterValuesFromRequest, isOverridePrimaryNavigation, isPleaseWait, isPopup, isRepeatable, isReturnToRequester, isSaveResults, isStartNewNavigationGroup, postexecute, postExecute, preexecute, preExecute, processPleaseWait, removeRequestAttribute, removeSessionAttribute, removeSharedSessionAttribute, setAnchorName, setBaseField, setBaseRow, setBaseRowCollection, setCompleted, setEndNavigationGroup, setFailMessage, setId, setLoadParameterValuesFromRequest, setNextURI, setNextURI, setNextURI, setNextURIs, setOverridePrimaryNavigation, setPopup, setRepeatable, setRequestGroupAttribute, setRequestPageAttribute, setRequestPersistentAttribute, setRequestTransientAttribute, setReturnToRequester, setRowEventListener, setSessionAttribute, setSessionSharedAttribute, setStartNewNavigationGroup, setSuccessMessage |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface planetj.magic.IMagicRequest |
addLinkedRequestAfter, addLinkedRequestBefore, executeAll, getBaseField, getBaseRow, getCurrentURI, getFirstRequest, getId, getKey, getLastRequest, getMagicRequestParameter, getMagicURI, getNextURI, getType, isCompleted, isEndNavigationGroup, isOverridePrimaryNavigation, isRepeatable, isReturnToRequester, isSaveResults, isStartNewNavigationGroup, postExecute, preExecute, setBaseField, setBaseRow, setBaseRowCollection, setEndNavigationGroup, setNextURI, setOverridePrimaryNavigation, setRepeatable, setRowEventListener, setStartNewNavigationGroup |
SQLParameterRequest
public SQLParameterRequest(SQLContext context,
HttpServletRequest req,
HttpServletResponse res)
- SQLContextRequest constructor
SQLParameterRequest
public SQLParameterRequest(java.lang.String id,
SQLContext context,
HttpServletRequest req,
HttpServletResponse res)
- SQLContextRequest constructor
execute
public IMagicRequest execute(HttpServletRequest request,
HttpServletResponse response,
DataEngineServlet servlet)
throws CMException
- Gets the SQL parameters out of the request, puts them into this request's SQLContext, and executes the
query contained in the SQLContext. The resulting RowCollection is stored in the session and HTTP
request (with the key IDataEngine.ROW_COLLECTION)
- Specified by:
execute
in interface IMagicRequest
- Specified by:
execute
in class AbstractMagicRequest
- Throws:
CMException
getDefaultPageType
public PageType getDefaultPageType(java.lang.String section)
- Get the PageType to use for the specified section when no PageType is explictly specified
- Overrides:
getDefaultPageType
in class AbstractMagicRequest
getFeatureLevel
public int getFeatureLevel()
- Gets the feature level for this feature
- Specified by:
getFeatureLevel
in interface IFeature
- Overrides:
getFeatureLevel
in class AbstractMagicRequest
getPleaseWaitOperation
public Operation getPleaseWaitOperation(ExecutingContext ec)
throws CMException
- Gets the Operation used to control the please wait functionality for this MR. (Null may be returned, in which case
this MR will not use the please wait functionality)
- Overrides:
getPleaseWaitOperation
in class AbstractMagicRequest
- Throws:
CMException
loadParameterValues
public void loadParameterValues(SQLContext context,
HttpServletRequest request)
throws CMException
- Override super execute select inorder to extract proper values.
- Throws:
CMException